50.2. Administrator Control of SELinux
In addition to the tasks often performed by users in Section 50.1, “End User Control of SELinux”, SELinux administrators could be expected to perform a number of additional tasks. These tasks typically require root access to the system. Such tasks are significantly easier under the targeted policy. For example, there is no need to consider adding, editing, or deleting Linux users from the SELinux users, nor do you need to consider roles.
This section covers the types of tasks required of an administrator who maintains Red Hat Enterprise Linux running SELinux.
50.2.1. Viewing the Status of SELinux Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The
sestatus
command provides a configurable view into the status of SELinux. The simplest form of this command shows the following information:
The
-v
option includes information about the security contexts of a series of files that are specified in /etc/sestatus.conf
:
The
-b
displays the current state of booleans. You can use this in combination with grep or other tools to determine the status of particular booleans: