Guest User

Untitled

a guest
Jul 16th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. ## Status
  2. $ sestatus
  3. SELinux status: enabled
  4. SELinuxfs mount: /selinux
  5. Current mode: enforcing
  6. Mode from config file: enforcing
  7. Policy version: 21
  8. Policy from config file: targeted
  9.  
  10. $ getenforce
  11. Enforcing
  12.  
  13. ## Disable
  14. # setenforce 0
  15.  
  16. ## Enable
  17. # setenforce 1
  18.  
  19. ## List policies
  20. # semodule -l
  21. aisexec 1.0.0
  22. amavis 1.1.0
  23. ...
  24. virt 1.2.1
  25. zosremote 1.0.0
  26.  
  27. ## Modify policy (for example, to allow Phusion Passenger to function)
  28. # grep httpd /var/log/audit/audit.log | audit2allow -M passenger
  29. # semodule -i passenger.pp
  30. # setenforce 1
  31.  
  32. ## Remove policy
  33. # semodule -r passenger
Add Comment
Please, Sign In to add comment