mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +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:
parent
f26df713c0
commit
66d51b575d
@ -9,11 +9,11 @@
|
|||||||
#
|
#
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
/etc/samba/smb.conf r,
|
/etc/samba/* r,
|
||||||
/usr/share/samba/*.dat r,
|
/usr/share/samba/*.dat r,
|
||||||
/var/lib/samba/**.tdb rwk,
|
/var/lib/samba/**.tdb rwk,
|
||||||
/var/log/samba/cores/ rw,
|
/var/log/samba/cores/ rw,
|
||||||
/var/log/samba/cores/* w,
|
/var/log/samba/cores/** rw,
|
||||||
/var/log/samba/log.* w,
|
/var/log/samba/log.* w,
|
||||||
/{,var/}run/samba/*.tdb rw,
|
/{,var/}run/samba/*.tdb rw,
|
||||||
|
|
||||||
|
@ -8,12 +8,9 @@
|
|||||||
capability net_bind_service,
|
capability net_bind_service,
|
||||||
|
|
||||||
/usr/sbin/nmbd mr,
|
/usr/sbin/nmbd mr,
|
||||||
/var/cache/samba/browse.dat* rw,
|
/var/{cache,lib}/samba/browse.dat* rw,
|
||||||
/var/lib/samba/wins.dat* rw,
|
/var/{cache,lib}/samba/wins.dat* rw,
|
||||||
/{,var/}run/samba/** rk,
|
/{,var/}run/samba/** rwk,
|
||||||
/{,var/}run/samba/nmbd.pid rw,
|
|
||||||
/var/log/samba/cores/nmbd/ rw,
|
|
||||||
/var/log/samba/cores/nmbd/** rw,
|
|
||||||
|
|
||||||
# Site-specific additions and overrides. See local/README for details.
|
# Site-specific additions and overrides. See local/README for details.
|
||||||
#include <local/usr.sbin.nmbd>
|
#include <local/usr.sbin.nmbd>
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
/etc/printcap r,
|
/etc/printcap r,
|
||||||
/proc/*/mounts r,
|
/proc/*/mounts r,
|
||||||
/usr/sbin/smbd mr,
|
/usr/sbin/smbd mr,
|
||||||
|
/etc/samba/* rwk,
|
||||||
/var/cache/samba/** rwk,
|
/var/cache/samba/** rwk,
|
||||||
/var/cache/samba/printing/printers.tdb mrw,
|
/var/cache/samba/printing/printers.tdb mrw,
|
||||||
/var/lib/samba/** rwk,
|
/var/lib/samba/** rwk,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user