SELinux enabled Redhat System may affect WebSphere Service Registry and Repository installation to complete

Technote (troubleshooting)


Problem(Abstract)

SELinux enabled on Redhat system will cause WebSphere Service Registry and Repository (WSRR) install to fail.

Symptom

On Redhat enterprise Linux, when SELinux is enabled, the installation manager will terminate the installation with errors. The error logs under <INSTALLATION_MANAGER_HOME>/logs will show following errors:

IOException caught when attempting to close the output stream while executing the command {0} in {1}
java.io.IOException: Bad file descriptor


Command: /opt/IBM/WSRR/WSRR80/ServiceRegistry/properties/install/script/relabel_linux.sh /opt/IBM/WSRR/WSRR80/ServiceRegistry
Description : Running relabel linux script
Return code : 1
StdOut :
StdErr : /usr/bin/chcon: failed to change context of /opt/IBM/WSRR/WSRR80/ServiceRegistry/java/jre/bin/classic to system_u:object_r:java_exec_t: Operation not supported
usr/bin/chcon: failed to change context of /opt/IBM/WSRR/WSRR80/ServiceRegistry/java/jre/bin/classic/libjvm.so to system_u:object_r:java_exec_t: Operation not supported
.........


Cause

When installing WSRR, the installation process will use 'chcon' to set Java security context and library security context for all WSRR embedded JRE and library files. This operation may fail if SELinux is set to enforcing. So it reports "Operation not supported"

Environment

Redhat Enterprise 5 and Redhat Enterprise 6

Resolving the problem

Open /etc/selinux/config file, change SELinux from enforcing to permissive or disabled

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted


Reboot System and rerun the installation.

Related information

Preparing Linux System for installation

Product Alias/Synonym

WSRR

Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Service Registry and Repository
Installation

Software version:

7.5, 7.5.0.1, 7.5.0.2, 7.5.0.3, 8.0, 8.0.0.1

Operating system(s):

Linux, Linux/x86

Software edition:

All Editions

Reference #:

1620234

Modified date:

2013-01-03

Translate my page

Machine Translation

Content navigation