profiles: update samba profiles

- allow smbd to load new shared libraries
- allow winbindd to read and write new kerberos cache location

Based on a patch by "Samuel Cabrero" <scabrero@suse.com>

(cherry picked from commit 23b5f29b80)

References: https://bugzilla.opensuse.org/show_bug.cgi?id=1092099

Acked-by: Steve Beattie <steve@nxnw.org>
PR: https://gitlab.com/apparmor/apparmor/merge_requests/121
This commit is contained in:
Christian Boltz 2018-05-09 21:00:30 +02:00 committed by Steve Beattie
parent 8c2371a7cd
commit 3ae5be33e2
Failed to generate hash of commit
2 changed files with 3 additions and 1 deletions

View file

@ -28,8 +28,9 @@
@{PROC}/@{pid}/mounts r,
@{PROC}/sys/kernel/core_pattern r,
/usr/lib*/samba/vfs/*.so mr,
/usr/lib*/samba/auth/*.so mr,
/usr/lib*/samba/charset/*.so mr,
/usr/lib*/samba/auth/script.so mr,
/usr/lib*/samba/gensec/*.so mr,
/usr/lib*/samba/pdb/*.so mr,
/usr/lib*/samba/{lowcase,upcase,valid}.dat r,
/usr/sbin/smbd mr,

View file

@ -34,6 +34,7 @@
/{var/,}run/samba/winbindd.pid rwk,
/{var/,}run/samba/winbindd/ rw,
/{var/,}run/samba/winbindd/pipe w,
/{var/,}run/user/*/krb5cc/* rwk,
# Site-specific additions and overrides. See local/README for details.
#include <local/usr.sbin.winbindd>