logo

apparmor.d

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

user-files (935B)


  1. # vim:syntax=apparmor
  2. abi <abi/3.0>,
  3. # Allow read to all files user has DAC access to and write access to all
  4. # files owned by the user in $HOME.
  5. @{HOME}/ r,
  6. @{HOME}/** r,
  7. owner @{HOME}/** w,
  8. # Do not allow read and/or write to particularly sensitive/problematic files
  9. include <abstractions/private-files>
  10. audit deny @{HOME}/.ssh/{,**} mrwkl,
  11. audit deny @{HOME}/.gnome2_private/{,**} mrwkl,
  12. audit deny @{HOME}/.kde{,4}/{,share/,share/apps/} w,
  13. audit deny @{HOME}/.kde{,4}/share/apps/kwallet/{,**} mrwkl,
  14. audit deny @{HOME}/.local/share/kwalletd/{,**} mrwkl,
  15. # Comment this out if using gpg plugin/addons
  16. audit deny @{HOME}/.gnupg/{,**} mrwkl,
  17. # Allow read to all files user has DAC access to and write for files the user
  18. # owns on removable media and filesystems.
  19. /media/** r,
  20. /mnt/** r,
  21. /srv/** r,
  22. /net/** r,
  23. owner /media/** w,
  24. owner /mnt/** w,
  25. owner /srv/** w,
  26. owner /net/** w,