e40d86fad0
- update usr.sbin.winbindd profile (bnc#870607) - restrict rw access to /var/cache/krb5rcache/ instead /var/tmp/ - update usr.sbin.winbindd profile (bnc#870607) - treat passdb.tdb.tmp as passdb.tdb - allow rw access to /var/tmp/ OBS-URL: https://build.opensuse.org/request/show/228512 OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=85
49 lines
1.3 KiB
Plaintext
49 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{,.tmp} 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/krb5rcache/* rw,
|
|
/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>
|
|
|
|
}
|