logo

apparmor.d

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

usr.sbin.smbd (2156B)


  1. abi <abi/3.0>,
  2. include <tunables/global>
  3. profile smbd /usr/{bin,sbin}/smbd {
  4. include <abstractions/authentication>
  5. include <abstractions/base>
  6. include <abstractions/consoles>
  7. include <abstractions/cups-client>
  8. include <abstractions/nameservice>
  9. include <abstractions/openssl>
  10. include <abstractions/samba>
  11. include <abstractions/user-tmp>
  12. include <abstractions/wutmp>
  13. capability audit_write,
  14. capability dac_override,
  15. capability dac_read_search,
  16. capability fowner,
  17. capability lease,
  18. capability net_bind_service,
  19. capability setgid,
  20. capability setuid,
  21. capability sys_admin,
  22. capability sys_resource,
  23. capability sys_tty_config,
  24. signal send set=term peer=samba-bgqd,
  25. /etc/mtab r,
  26. /etc/netgroup r,
  27. /etc/printcap r,
  28. /etc/samba/* rwk,
  29. @{PROC}/@{pid}/mounts r,
  30. @{PROC}/sys/kernel/core_pattern r,
  31. /usr/lib*/samba/vfs/*.so mr,
  32. /usr/lib*/samba/auth/*.so mr,
  33. /usr/lib*/samba/charset/*.so mr,
  34. /usr/lib*/samba/gensec/*.so mr,
  35. /usr/lib*/samba/pdb/*.so mr,
  36. /usr/lib*/samba/{,samba/}samba-bgqd Px -> samba-bgqd,
  37. /usr/lib*/samba/{,samba/}samba-dcerpcd Px -> samba-dcerpcd,
  38. /usr/lib*/samba/{lowcase,upcase,valid}.dat r,
  39. /usr/lib/@{multiarch}/samba/*.so{,.[0-9]*} mr,
  40. /usr/lib/@{multiarch}/samba/**/ r,
  41. /usr/lib/@{multiarch}/samba/**/*.so{,.[0-9]*} mr,
  42. /usr/share/samba/** r,
  43. /usr/{bin,sbin}/smbd mr,
  44. /usr/{bin,sbin}/smbldap-useradd Px,
  45. /var/cache/samba/** rwk,
  46. /var/{cache,lib}/samba/printing/printers.tdb mrw,
  47. /var/lib/nscd/netgroup r,
  48. /var/lib/samba/** rwk,
  49. /var/lib/sss/pubconf/kdcinfo.* r,
  50. @{run}/dbus/system_bus_socket rw,
  51. @{run}/{,samba/}smbd.pid rwk,
  52. @{run}/samba/** rk,
  53. @{run}/samba/ncalrpc/ rw,
  54. @{run}/samba/ncalrpc/** rw,
  55. /var/spool/samba/** rw,
  56. @{HOMEDIRS}/** lrwk,
  57. /var/lib/samba/usershares/{,**} lrwk,
  58. # Permissions for all configured shares (file autogenerated by
  59. # update-apparmor-samba-profile on service startup on Debian and openSUSE)
  60. include if exists <samba/smbd-shares>
  61. include if exists <local/usr.sbin.smbd-shares>
  62. # Site-specific additions and overrides. See local/README for details.
  63. include if exists <local/usr.sbin.smbd>
  64. }