logo

apparmor.d

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

private-files (1660B)


  1. # vim:syntax=apparmor
  2. # privacy-violations contains rules for common files that you want to
  3. # explicitly deny access
  4. abi <abi/3.0>,
  5. # privacy violations (don't audit files under $HOME otherwise get a
  6. # lot of false positives when reading contents of directories)
  7. deny @{HOME}/.*history mrwkl,
  8. deny @{HOME}/.fetchmail* mrwkl,
  9. deny @{HOME}/.mutt** mrwkl,
  10. deny @{HOME}/.viminfo* mrwkl,
  11. deny @{HOME}/.*~ mrwkl,
  12. deny @{HOME}/.*.swp mrwkl,
  13. deny @{HOME}/.*~1~ mrwkl,
  14. deny @{HOME}/.*.bak mrwkl,
  15. # special attention to (potentially) executable files
  16. audit deny @{HOME}/bin/{,**} wl,
  17. audit deny @{HOME}/.config/ w,
  18. audit deny @{HOME}/.config/autostart/{,**} wl,
  19. audit deny @{HOME}/.config/upstart/{,**} wl,
  20. audit deny @{HOME}/.init/{,**} wl,
  21. audit deny @{HOME}/.kde{,4}/ w,
  22. audit deny @{HOME}/.kde{,4}/Autostart/{,**} wl,
  23. audit deny @{HOME}/.kde{,4}/env/{,**} wl,
  24. audit deny @{HOME}/.local/{,share/} w,
  25. audit deny @{HOME}/.local/share/thumbnailers/{,**} wl,
  26. audit deny @{HOME}/.pki/ w,
  27. audit deny @{HOME}/.pki/nssdb/{,*.so{,.[0-9]*}} wl,
  28. # don't allow reading/updating of run control files
  29. deny @{HOME}/.*rc mrk,
  30. audit deny @{HOME}/.*rc wl,
  31. # bash
  32. deny @{HOME}/.bash* mrk,
  33. audit deny @{HOME}/.bash* wl,
  34. deny @{HOME}/.inputrc mrk,
  35. audit deny @{HOME}/.inputrc wl,
  36. # sh/dash/csh/tcsh/pdksh/zsh
  37. deny @{HOME}/.{,z}profile* mrk,
  38. audit deny @{HOME}/.{,z}profile* wl,
  39. deny @{HOME}/.{,z}log{in,out} mrk,
  40. audit deny @{HOME}/.{,z}log{in,out} wl,
  41. deny @{HOME}/.zshenv mrk,
  42. audit deny @{HOME}/.zshenv wl,
  43. # Include additions to the abstraction
  44. include if exists <abstractions/private-files.d>