After installing Resource Orchestrator, use the following procedure to configure SELinux.
Execute the following commands.
When using Red Hat Enterprise Linux 6
# /usr/sbin/semanage fcontext -a -t unconfined_exec_t '/etc/rc\.d/init\.d/SCruiserAgent' <RETURN> |
When using Red Hat Enterprise Linux 7.0
# /usr/sbin/semanage fcontext -a -t unconfined_exec_t /opt/FJSVssagt/bin/SCruiserAgent <RETURN> |
The label is configured in the file.
Check if the label of each file is correct.
Execute the following commands.
# ls -Z file <RETURN> |
For file, specify the target file for label check.
Example
To check the label of /opt/FJSVssagt/jre6/bin/java
# ls -Z /opt/FJSVssagt/jre6/bin/java <RETURN> -rwxr-xr-x. root sys unconfined_u:object_r:bin_t:s0 /opt/FJSVssagt/jre6/bin/java |
The files and labels to check are as follows.
File | Label |
---|---|
/etc/init.d/SCruiserAgent | unconfined_exec_t |
/etc/init.d/scwagent | |
/etc/init.d/scwnaconfig-p1 | |
/opt/FJSVssagt/jre6/bin/java | bin_t |
File | Label |
---|---|
/opt/FJSVssagt/bin/SCruiserAgent | unconfined_exec_t |
/opt/systemcastwizard/scwagent | |
/opt/systemcastwizard/scwnaconfig-p1.sh | |
/opt/systemcastwizard/scwnaconfig-p2.sh | |
/opt/FJSVssagt/jre6/bin/java | bin_t |
Restart the agent.
For details on how to restart the agent, refer to "2.2 Starting and Stopping Agents" in the "Operation Guide VE".