Hitachi

JP1 Version 13 JP1/Integrated Management 3 - Manager Configuration Guide


2.18.8 Settings for SELinux (for UNIX)

This section describes the steps required to operate JP1/IM - Manager when SELinux of Linux 8 or later is enabled.

In enabling or disabling SELinux security-context, you use semanage fcontext command and restorecon command.

Organization of this subsection

(1) Setup for Auto-Start and Auto-Stop

If SELinux is enabled, the context type of jco_start and jco_stop SELinux security contexts must be set to bin_t.

Setup process is as follows:

# semanage fcontext -a -t bin_t '/etc/opt/jp1cons/jco_start'
# semanage fcontext -a -t bin_t '/etc/opt/jp1cons/jco_stop'
# restorecon -F /etc/opt/jp1cons/jco_start
# restorecon -F /etc/opt/jp1cons/jco_stop

(2) Setup for IM database

If SELinux is set to be enabled, SELinux security-context must be Setup for File under the directory where IM database is installed, but IM database configuration, updating, and deletion are executed in internal operation in each command. You do not need to manually setup Individually.

In addition, enabling and disabling of SELinux security contexts are performed regardless of SELinux's Enable disable Status, but you do not need to operate enabled or disabled in the same way if you change Enable or disable IM database during operation after building IM database.

If Setup of SELinux security-context fails, SELinux continues without Stopped in Error because the subsequent operation is OK even if it is in Disabled Status. After that, if you change SELinux to Enabled Status, it becomes Error when IM database is started (including when it is started internally by commands related to IM database). If this occurs, re-execute Setup of SELinux security context (Execution of jimdbupdate command) according to the handling of the error message.

(3) Setup for Intelligent Integrated Management Database

If SELinux is set to be enabled, SELinux security-context must be Setup for File under the directory where Intelligent Integrated Management Database is installed, but Intelligent Integrated Management Database configuration, updating, and deletion are executed in internal operation in each command. You do not need to manually setup Individually.

In addition, enabling and disabling of SELinux security contexts are performed regardless of SELinux's Enable disable Status, but you do not need to operate enabled or disabled in the same way if you change Enable or disable IM database during operation after building Intelligent Integrated Management Database.

If Setup of SELinux security-context fails, SELinux continues without Stopped in Error because the subsequent operation is OK even if it is in Disabled Status. If you change SELinux to Enabled Status, it will not become Error after that.