SELinux and AppArmor¶
Mandatory access control: why a service gets "Permission denied" although the file permissions are right, and how to fix it properly instead of switching the protection off.
SELinux: status and mode¶
-
Show the SELinux mode.
-
Switch between enforcing and permissive.
-
The full SELinux status.
SELinux: fixing denials¶
-
File labels, ports and booleans permanently.
-
Reset file labels.
-
Switch ready-made exceptions.
-
Explain denials, create modules.
AppArmor¶
-
Loaded profiles and protected processes.
-
Switch profiles between complain and enforce.
From other chapters¶
-
ausearch -m AVC -ts recentfinds the SELinux denials. Covered in the chapter Logs. -
ls -Zshows the SELinux label of files. Covered in the chapter Navigation. -
ps -eZshows the SELinux domain of processes. Covered in the chapter Processes. -
journalctl -kshows AppArmor denials in the kernel log. Covered in the chapter systemd.