Top
Systemwalker Service Quality Coordinator Reference Guide
Systemwalker

1.12 sqcSetSELinux (SELinux Support Setup Command)

Function

This command performs the setup or removal for the support of environment where SELinux (Security-Enhanced Linux) is enabled.

Note

Do not execute multiple sqcSetSELinux command simultaneously.

Point

If SELinux (Security-Enhanced Linux) has been enabled at the time of installation, this command will be executed automatically, the setup of support for Linux environment will be performed. So it's unnecessary to execute this command again.

Execute this command if you enable SELinux(Security-Enhanced Linux) after installation.

Privileges required for execution

[Linux]

The privileges of a system administrator (superuser) are required to execute this command.


Execution environment

This command can be executed on Enterprise Manager, Manager, Proxy Manager, and Agent.


Syntax

[Linux]

/opt/FJSVssqc/bin/sqcSetSELinux.sh -s

/opt/FJSVssqc/bin/sqcSetSELinux.sh -u



Options

-s

Perform setup for the support of Linux environment where SELinux is enabled.

-u

Remove the setup for the support of Linux environment where SELinux is enabled.


Return values

Normal termination: 0

Abnormal termination: above 0

Execution results/Output format

Normal termination

The following normal completion message will be sent to standard output.

Command succeeded.

Example of execution

# /opt/FJSVssqc/bin/sqcSetSELinux.sh -s

Command succeeded.

Abnormal termination

An error message will be sent to standard error output:

ERROR: Failed to execute "/usr/sbin/semodule".

Command failed.

The error numbers, content, and action corresponding to the error messages are as shown below.

Message

Content

Corrective measure

Usage : sqcSetSELinux.sh -s | -u

There is syntax error.

Try the command again with correct syntax.

ERROR: The command can only be executed by the root.

This command can only be executed with the privileges of a system administrator.

Execute the again with the privileges of a system administrator(super user).

INFO: It is not SELinux environment.("<command name>" not found)

The necessary module for SELinux is not found.("<command>" not found).

After you have enable SELinux normally, make sure the command is present and try again.

WARNING: The operation setting of SELinux is not set.

The setting for SELinux has not been made.

The setting for SELinux has been removed or has not been made. So nothing is necessary.

ERROR: Failed to execute "< command executed>".

The execution of the command failed. "<executed command>"

Make sure the failed command can be executed and try again.

WARNING: It has already been defined.

The setup has been done.

The setup has been done. So nothing is necessary.

INFO: SELinux function is disabled.

SELinux is not enabled.

SELinux is not enabled so nothing can be done.

ERROR: Failed to compile the policy module of SELinux.

The compilation of SELinux policy module failed.

Correct the problem indicated by the message and try again.

Example of execution

# /opt/FJSVssqc/bin/sqcSetSELinux.sh -s

ERROR: Failed to execute "/usr/sbin/semodule".

Command failed.


Usage Example

Perform the setting for the support of Linux environment where SELinux is enabled.

[Linux]

# /opt/FJSVssqc/bin/sqcSetSELinux.sh -s

Remove the setting for the support of Linux environment where SELinux is enabled.

[Linux]

# /opt/FJSVssqc/bin/sqcSetSELinux.sh -u