[apparmor] [patch] smbd: changed cachedir in openSUSE

Christian Boltz apparmor at cboltz.de
Sun Aug 10 20:01:54 UTC 2014


Hello,

openSUSE now compiles samba --with-cachedir=/var/lib/samba (instead of 
the default /var/cache/samba). This patch updates the smbd profile to 
match this change.

References: https://bugzilla.novell.com/show_bug.cgi?id=869787

I propose this patch for trunk and the 2.8 branch.


=== modified file 'profiles/apparmor.d/usr.sbin.smbd'
--- profiles/apparmor.d/usr.sbin.smbd   2014-02-14 01:15:03 +0000
+++ profiles/apparmor.d/usr.sbin.smbd   2014-08-10 19:57:54 +0000
@@ -34,7 +34,7 @@
   /usr/sbin/smbd mr,
   /usr/sbin/smbldap-useradd Px,
   /var/cache/samba/** rwk,
-  /var/cache/samba/printing/printers.tdb mrw,
+  /var/{cache,lib}/samba/printing/printers.tdb mrw,
   /var/lib/samba/** rwk,
   /var/lib/sss/pubconf/kdcinfo.* r,
   /{,var/}run/cups/cups.sock rw,




Regards,

Christian Boltz
-- 
If nothing else, the 15 years I've been online have impressed upon me
the ability of people to be offensive in new and inventive ways.
[Joe 'Zonker' Brockmeier in opensuse-marketing]




More information about the AppArmor mailing list