logo

apparmor.d

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

shell (806B)


  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. profile shell /{,usr/}bin/*sh flags=(complain) {
  5. / rwlk,
  6. /** rwlkmpux,
  7. audit deny network,
  8. audit deny @{HOME}/.gnupg/{,**} mrwkl,
  9. audit deny @{HOME}/.ssh/{,**} mrwkl,
  10. audit deny @{HOME}/.mozilla/{,**} mrwkl,
  11. audit deny @{HOME}/.config/{,**} mrwkl,
  12. audit deny @{HOME}/.mutt** mrwkl,
  13. audit deny @{HOME}/.viminfo** mrwkl,
  14. allow @{HOME}/.ssh/agent.pid r,
  15. allow @{HOME}/.*shrc rwlkmpux,
  16. allow @{HOME}/.*profile rwlkmpux,
  17. allow @{HOME}/.*log{in,out} rwlkmpux,
  18. allow @{HOME}/.*history rwlkmpux,
  19. # bash
  20. allow @{HOME}/.inputrc mrk,
  21. allow @{HOME}/.bash* mrk,
  22. # zsh
  23. allow @{HOME}/.zshenv rwlkmpux,
  24. signal receive,
  25. }