Advertisement
Guest User

/etc/apparmor.d/pam_binaries

a guest
Jan 5th, 2022
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #
  2. # This file contains the policy for the confined binaries that use
  3. # libpam-apparmor.
  4. #
  5. #include <tunables/global>
  6.  
  7. /bin/su {
  8. #include <abstractions/authentication>
  9. #include <abstractions/base>
  10. #include <abstractions/nameservice>
  11. # Include the file with all of our username/group to role mappings
  12. #include <pam/mappings>
  13. capability chown,
  14. capability setgid,
  15. capability setuid,
  16. owner /etc/environment r,
  17. owner /etc/shells r,
  18. owner /etc/default/locale r,
  19. owner @{HOMEDIRS}/*/.Xauthority rw,
  20. owner @{HOMEDIRS}/*/.Xauthority-c w,
  21. owner @{HOMEDIRS}/*/.Xauthority-l w,
  22. @{HOME}/.xauth* rw,
  23. owner /proc/sys/kernel/ngroups_max r,
  24. /usr/bin/xauth rix,
  25. owner /var/run/utmp rwk,
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement