logo

apparmor.d

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

samba (1275B)


  1. # vim:syntax=apparmor
  2. # ------------------------------------------------------------------
  3. #
  4. # Copyright (C) 2009-2010 Canonical Ltd.
  5. #
  6. # This program is free software; you can redistribute it and/or
  7. # modify it under the terms of version 2 of the GNU General Public
  8. # License published by the Free Software Foundation.
  9. #
  10. # ------------------------------------------------------------------
  11. abi <abi/3.0>,
  12. /etc/samba/* r,
  13. /usr/lib*/ldb/*.so mr,
  14. /usr/lib*/ldb2/*.so mr,
  15. /usr/lib*/ldb2/modules/ldb/*.so mr,
  16. /usr/lib*/samba/ldb/*.so mr,
  17. /usr/share/samba/*.dat r,
  18. /usr/share/samba/codepages/{lowcase,upcase,valid}.dat r,
  19. /var/cache/samba/ w,
  20. /var/cache/samba/lck/* rwk,
  21. /var/lib/samba/** rwk,
  22. /var/log/samba/cores/ rw,
  23. /var/log/samba/cores/** rw,
  24. /var/log/samba/* rw,
  25. @{run}/{,lock/}samba/ w,
  26. @{run}/{,lock/}samba/*.tdb rwk,
  27. @{run}/{,lock/}samba/msg.{lock,sock}/ rwk,
  28. @{run}/{,lock/}samba/msg.{lock,sock}/[0-9]* rwk,
  29. /var/cache/samba/*.tdb rwk,
  30. /var/cache/samba/msg.lock/ rwk,
  31. /var/cache/samba/msg.lock/[0-9]* rwk,
  32. # required for clustering
  33. /var/lib/ctdb/** rwk,
  34. deny capability net_admin, # noisy setsockopt() calls from systemd
  35. # Include additions to the abstraction
  36. include if exists <abstractions/samba.d>