Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Status
- $ sestatus
- SELinux status: enabled
- SELinuxfs mount: /selinux
- Current mode: enforcing
- Mode from config file: enforcing
- Policy version: 21
- Policy from config file: targeted
- $ getenforce
- Enforcing
- ## Disable
- # setenforce 0
- ## Enable
- # setenforce 1
- ## List policies
- # semodule -l
- aisexec 1.0.0
- amavis 1.1.0
- ...
- virt 1.2.1
- zosremote 1.0.0
- ## Modify policy (for example, to allow Phusion Passenger to function)
- # grep httpd /var/log/audit/audit.log | audit2allow -M passenger
- # semodule -i passenger.pp
- # setenforce 1
- ## Remove policy
- # semodule -r passenger
Add Comment
Please, Sign In to add comment