mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-06 17:31:01 +01:00

Samba 4.2 needs some more permissions for nmbd and winbindd. To avoid overcomplicated profiles, change abstractions/samba to allow /var/lib/samba/** rwk, (instead of **.tdb rwk) - this change already fixes the nmbd profile. winbindd additionally needs some more write permissions in /etc/samba/ (and also in /var/lib/samba/, which is covered by the abstractions/samba change and also results in some profile cleanup) References: https://bugzilla.opensuse.org/show_bug.cgi?id=921098 and https://bugzilla.opensuse.org/show_bug.cgi?id=923201 Acked-by: Seth Arnold <seth.arnold@canonical.com>
24 lines
748 B
Text
24 lines
748 B
Text
# vim:syntax=apparmor
|
|
# ------------------------------------------------------------------
|
|
#
|
|
# Copyright (C) 2009-2010 Canonical Ltd.
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
# License published by the Free Software Foundation.
|
|
#
|
|
# ------------------------------------------------------------------
|
|
|
|
/etc/samba/* r,
|
|
/usr/share/samba/*.dat r,
|
|
/usr/share/samba/codepages/{lowcase,upcase,valid}.dat r,
|
|
/var/cache/samba/ w,
|
|
/var/lib/samba/** 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,
|
|
|
|
# required for clustering
|
|
/var/lib/ctdb/** rwk,
|