logo

apparmor.d

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/apparmor.d.git

bin.su (532B)


  1. # Copyright 2020 Haelwenn (lanodan) Monnier <contact+apparmor.d@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. #include <tunables/global>
  4. /bin/su {
  5. #include <abstractions/base>
  6. #include <abstractions/nameservice>
  7. #include <abstractions/authentication>
  8. #include <abstractions/consoles>
  9. audit deny network,
  10. /bin/su mr,
  11. /{usr/,}bin/*sh rmpx,
  12. /usr/bin/xauth rmpx,
  13. /etc/environment r,
  14. /etc/shells r,
  15. /run/utmp rk,
  16. capability setuid,
  17. capability setgid,
  18. @{PROC}/@{pid}/loginuid r,
  19. }