07a11c242d
- add apparmor-profiles-samba-create-dirs.diff to allow samba to mkdir /var/run/samba and /var/cache/samba (bnc#856651) - add abstractions/samba to usr.sbin.winbindd profile - add capabilities ipc_lock and setuid to usr.sbin.winbindd profile (bnc#851131) - update dovecot profiles to support dovecot 2.x, and add profiles for the parts of dovecot that were not covered yet (bnc#851984) NOTE: Please adjust /etc/apparmor.d/tunables/dovecot to your needs. - %restart_on_update (in parser %postun) is "translated" to stop/start by the systemd wrapper, which removes AppArmor protection from running processes. Fixed by using a custom script instead (bnc#853019) NOTE: The %postun from the previously installed apparmor-parser package will remove AppArmor protection from running processes a last time. Run aa-status to get a list of processes you need to restart, or reboot your computer. - reload profiles in %post of the apparmor-profiles package OBS-URL: https://build.opensuse.org/request/show/212635 OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=69
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
#include <tunables/global>
|
|
|
|
/usr/sbin/winbindd {
|
|
#include <abstractions/base>
|
|
#include <abstractions/nameservice>
|
|
#include <abstractions/samba>
|
|
|
|
deny capability block_suspend,
|
|
|
|
capability ipc_lock,
|
|
capability setuid,
|
|
|
|
/etc/samba/dhcp.conf r,
|
|
/etc/samba/passdb.tdb rwk,
|
|
/etc/samba/secrets.tdb rwk,
|
|
/proc/sys/kernel/core_pattern r,
|
|
/tmp/.winbindd/ w,
|
|
/tmp/krb5cc_* rwk,
|
|
/usr/lib*/samba/idmap/*.so mr,
|
|
/usr/lib*/samba/nss_info/*.so mr,
|
|
/usr/lib*/samba/pdb/*.so mr,
|
|
/usr/sbin/winbindd mr,
|
|
/usr/share/samba/codepages/{lowcase,upcase,valid}.dat r,
|
|
/var/cache/samba/*.tdb rwk,
|
|
/var/cache/samba/netsamlogon_cache.tdb rw,
|
|
|
|
/var/lib/samba/smb_krb5/krb5.conf.* rw,
|
|
/var/lib/samba/smb_tmp_krb5.* rw,
|
|
/var/lib/samba/**.tdb rwk,
|
|
|
|
/var/lib/samba/winbindd_cache.tdb* rwk,
|
|
/var/lib/samba/winbindd_privileged/pipe w,
|
|
/var/log/samba/cores/ rw,
|
|
/var/log/samba/cores/winbindd/ rw,
|
|
/var/log/samba/cores/winbindd/** rw,
|
|
/var/log/samba/log.wb-* w,
|
|
/var/log/samba/log.winbindd rw,
|
|
/var/log/samba/log.winbindd-idmap w,
|
|
/var/log/samba/log.winbindd-dc-connect a,
|
|
/{var/,}run/samba/winbindd.pid rwk,
|
|
/{var/,}run/samba/winbindd/ rw,
|
|
/{var/,}run/samba/winbindd/pipe w,
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
#include <local/usr.sbin.winbindd>
|
|
|
|
}
|