User Tools

Site Tools


selinux:check_that_selinux_is_not_denying_actions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

selinux:check_that_selinux_is_not_denying_actions [2016/07/11 10:40] – created peterselinux:check_that_selinux_is_not_denying_actions [2019/12/04 20:17] (current) – removed peter
Line 1: Line 1:
-===== SELinux - Check that SELinux is not denying actions ===== 
- 
-Type the following command to confirm that SELinux did not deny actions during the reboot: 
- 
-<code bash> 
-grep "SELinux is preventing" /var/log/messages 
-</code> 
- 
-If you get any output/error, try using the **chcon** command.  It can be used to change SELinux security context of a file.  However, it is recommended that you relabel the complete filesystem.  Type the following command to restore default security contexts for /home: 
- 
-<code bash> 
-restorecon -Rv -n /home 
-</code> 
- 
-You can run this on root (/) file system too: 
- 
-<code bash> 
-restorecon -Rv -n / 
-</code> 
- 
-Do not skip this step.  Type the following commands: 
- 
-<code bash> 
-# touch /.autorelabel 
-# reboot 
-</code> 
- 
-It will take some time to relabel the complete filesystem.  If you get any errors or common services mysqld or sshd failed, try the following solution (go to a single user mode): 
- 
-<code bash> 
-# init 1 
-# genhomedircon 
-# touch /.autorelabel 
-# reboot 
-</code> 
  
selinux/check_that_selinux_is_not_denying_actions.1468233639.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki