Then you need to change the label on file1 to public_content_t or public_content_rw_t. If you want to treat file1 as public content # /sbin/restorecon -v /var/www/html/file1 var/www/html/file1 default label should be httpd_sys_content_t. SELinux is preventing httpd from getattr access on the file /var/www/html/file1. This command only works on the local machine, and presents the same information as the sealert GUI: Oct 21 10:23:35 localhost polkitd: Unregistered Authentication Agent for unix-session:c1 (system bus name :1.80, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.utf8)Īs suggested, run the sealert -l 32eee32b-21ca-4846-a22f-0ba050206786 command to view the complete message. Oct 21 10:22:44 localhost.localdomain polkitd: Acquired the name 1 on the system bus Oct 21 10:23:10 localhost polkitd: Registered Authentication Agent for unix-session:c1 (system bus name :1.49, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Oct 21 10:22:44 localhost.localdomain polkitd: Finished loading, compiling and executing 5 rules Oct 21 10:22:44 localhost.localdomain polkitd: Loading rules from directory /usr/share/polkit-1/rules.d Oct 21 10:22:44 localhost.localdomain polkitd: Loading rules from directory /etc/polkit-1/rules.d Oct 21 10:22:42 localhost.localdomain polkitd: Started polkitd version 0.112
~]# journalctl _SELINUX_CONTEXT=system_u:system_r:policykit_t:s0 For example, the following command lists all logs logged under the system_u:system_r:policykit_t:s0 label: It is possible to use journalctl for listing all logs related to a particular SELinux label. Booleans for Users Executing Applications Confining Existing Linux Users: semanage login
#OPENSUSE WARNING GREP OPTIONS IS DEPRECATED MANUAL#
Generating Manual Pages: sepolicy manpage Understanding Domain Transitions: sepolicy transition Generating SELinux Policy Modules: sepolicy generate Creating a User With a Specific MLS Range Prioritizing and Disabling SELinux Policy Modules Permanent Changes in SELinux States and Modes SELinux User's and Administrator's Guide.