Guest User

systemctl and SELinux

a guest
Apr 13th, 2011
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. SELinux is preventing /bin/bash from execute access on the file /bin/systemctl.
  2.  
  3. ***** Plugin catchall (100. confidence) suggests ***************************
  4.  
  5. If you believe that bash should be allowed execute access on the systemctl file by default.
  6. Then you should report this as a bug.
  7. You can generate a local policy module to allow this access.
  8. Do
  9. allow this access for now by executing:
  10. # grep ck-system-stop /var/log/audit/audit.log | audit2allow -M mypol
  11. # semodule -i mypol.pp
  12.  
  13. Additional Information:
  14. Kontext zdroje system_u:system_r:consolekit_t:s0
  15. Kontext cíle system_u:object_r:systemd_systemctl_exec_t:s0
  16. Objekty cíle /bin/systemctl [ file ]
  17. Zdroj ck-system-stop
  18. Cesta zdroje /bin/bash
  19. Port <Neznámé>
  20. RPM balíčky zdroje bash-4.2.8-2.fc15
  21. RPM balíčky cíle systemd-units-24-1.fc15
  22. RPM politiky selinux-policy-3.9.16-14.fc15
  23. Selinux povolen True
  24. Typ politiky targeted
  25. Vynucovací režim Enforcing
  26. Název počítače lhota5.pilsfree.czf
  27. Platforma Linux lhota5.pilsfree.czf 2.6.38.2-9.fc15.x86_64
  28. #1 SMP Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64
  29. Počet upozornění 1
  30. Poprvé viděno St 13. duben 2011, 21:32:40 CEST
  31. Naposledy viděno St 13. duben 2011, 21:32:40 CEST
  32. Místní ID 6aad94fe-10ad-47a6-9010-1d87b2458220
  33.  
  34. Původní zprávy auditu
  35. type=AVC msg=audit(1302723160.362:58): avc: denied { execute } for pid=1864 comm="ck-system-stop" name="systemctl" dev=dm-0 ino=5187 scontext=system_u:system_r:consolekit_t:s0 tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file
  36.  
  37.  
  38. type=SYSCALL msg=audit(1302723160.362:58): arch=x86_64 syscall=faccessat success=no exit=EACCES a0=ffffffffffffff9c a1=1f1fc20 a2=1 a3=8 items=0 ppid=1 pid=1864 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ck-system-stop exe=/bin/bash subj=system_u:system_r:consolekit_t:s0 key=(null)
  39.  
  40. Hash: ck-system-stop,consolekit_t,systemd_systemctl_exec_t,file,execute
  41.  
  42. audit2allow
  43.  
  44. #============= consolekit_t ==============
  45. allow consolekit_t systemd_systemctl_exec_t:file execute;
  46.  
  47. audit2allow -R
  48.  
  49. #============= consolekit_t ==============
  50. allow consolekit_t systemd_systemctl_exec_t:file execute;
Advertisement
Add Comment
Please, Sign In to add comment