logo

apparmor.d

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

usr.sbin.nscd (1563B)


  1. # ------------------------------------------------------------------
  2. #
  3. # Copyright (C) 2002-2005 Novell/SUSE
  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. include <tunables/global>
  13. profile nscd /usr/{bin,sbin}/nscd {
  14. include <abstractions/base>
  15. include <abstractions/consoles>
  16. include <abstractions/nameservice>
  17. include <abstractions/ssl_certs>
  18. deny capability block_suspend,
  19. capability net_bind_service,
  20. capability setgid,
  21. capability setuid,
  22. /etc/machine-id r,
  23. /etc/netgroup r,
  24. /etc/nscd.conf r,
  25. /usr/{bin,sbin}/nscd rmix,
  26. @{run}/.nscd_socket wl,
  27. @{run}/nscd/ rw,
  28. @{run}/nscd/db* rwl,
  29. @{run}/nscd/socket wl,
  30. /{var/cache,var/db,var/lib,var/run,run}/nscd/{passwd,group,services,hosts,netgroup} rw,
  31. @{run}/{nscd/,}nscd.pid rwl,
  32. /var/lib/libvirt/dnsmasq/ r,
  33. /var/lib/libvirt/dnsmasq/*.status r,
  34. /var/log/nscd.log rw,
  35. @{PROC}/@{pid}/cmdline r,
  36. @{PROC}/@{pid}/fd/ r,
  37. @{PROC}/@{pid}/fd/* r,
  38. @{PROC}/@{pid}/mounts r,
  39. # systemd-userdb
  40. /{etc,run,run/host,/usr/lib}/userdb/ r,
  41. /{etc,run,run/host,/usr/lib}/userdb/*.{user,user-privileged,group,group-privileged} r,
  42. # needed by unscd
  43. @{run}/systemd/notify w,
  44. # Site-specific additions and overrides. See local/README for details.
  45. include if exists <local/usr.sbin.nscd>
  46. }