2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 13:58:22 +00:00

From: Jeff Mahoney <jeffm@suse.com>

Subject: apparmor-profiles: Add samba config files
References: bnc#679182 bnc#666450

Signed-off-by: Jeff Mahoney <jeffm@suse.com>

- updated to match trunk
- added changed path to nmbd profile (/var/cache/samba has moved to 
  /var/lib/samba on (at least) openSUSE 11.4), bnc#679182#c8
  For backward compability, it also allows /var/spool/samba.
- Note: The smbd profile already contains both locations.
by Christian Boltz <apparmor@cboltz.de>

updated according to the comments from Steve Beattie
by Christian Boltz <apparmor@cboltz.de>

Acked-By: Steve Beattie <sbeattie@ubuntu.com>
This commit is contained in:
Christian Boltz
2011-08-27 01:52:27 +02:00
parent f26df713c0
commit 66d51b575d
3 changed files with 6 additions and 8 deletions

View File

@@ -9,11 +9,11 @@
#
# ------------------------------------------------------------------
/etc/samba/smb.conf r,
/etc/samba/* r,
/usr/share/samba/*.dat r,
/var/lib/samba/**.tdb rwk,
/var/log/samba/cores/ rw,
/var/log/samba/cores/* w,
/var/log/samba/cores/** rw,
/var/log/samba/log.* w,
/{,var/}run/samba/*.tdb rw,

View File

@@ -8,12 +8,9 @@
capability net_bind_service,
/usr/sbin/nmbd mr,
/var/cache/samba/browse.dat* rw,
/var/lib/samba/wins.dat* rw,
/{,var/}run/samba/** rk,
/{,var/}run/samba/nmbd.pid rw,
/var/log/samba/cores/nmbd/ rw,
/var/log/samba/cores/nmbd/** rw,
/var/{cache,lib}/samba/browse.dat* rw,
/var/{cache,lib}/samba/wins.dat* rw,
/{,var/}run/samba/** rwk,
# Site-specific additions and overrides. See local/README for details.
#include <local/usr.sbin.nmbd>

View File

@@ -24,6 +24,7 @@
/etc/printcap r,
/proc/*/mounts r,
/usr/sbin/smbd mr,
/etc/samba/* rwk,
/var/cache/samba/** rwk,
/var/cache/samba/printing/printers.tdb mrw,
/var/lib/samba/** rwk,