From aa6b86a1c3301435fbb5a28d02f6e10678342123 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 23 Dec 2013 22:15:47 +0100 Subject: [PATCH] samba (nmbd and smbd) need to create /var/run/samba and /var/cache/samba at startup (at least on systems where /var/run is on a tmpfs) References: https://bugzilla.novell.com/show_bug.cgi?id=856651 Acked-by: Steve Beattie for trunk and 2.8. Thanks! --- profiles/apparmor.d/abstractions/samba | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/apparmor.d/abstractions/samba b/profiles/apparmor.d/abstractions/samba index 89c407dfe..05442127a 100644 --- a/profiles/apparmor.d/abstractions/samba +++ b/profiles/apparmor.d/abstractions/samba @@ -12,9 +12,11 @@ /etc/samba/* r, /usr/share/samba/*.dat r, /usr/share/samba/codepages/{lowcase,upcase,valid}.dat r, + /var/cache/samba/ w, /var/lib/samba/**.tdb rwk, /var/log/samba/cores/ rw, /var/log/samba/cores/** rw, /var/log/samba/log.* w, + /{,var/}run/samba/ w, /{,var/}run/samba/*.tdb rw,