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

Also adjust the signal rules in the dovecot-common and apache2-common
abstractions to match the profile names, and to really do that
(peer=...{bin,sbin}... didn't work, the correct syntax would have been
peer=...\{bin,sbin\}...)
This fixes the regression introduced by !149 / commit
4200932d8f
35 lines
1,002 B
Text
35 lines
1,002 B
Text
#include <tunables/global>
|
|
|
|
profile nmbd /usr/{bin,sbin}/nmbd {
|
|
#include <abstractions/base>
|
|
#include <abstractions/nameservice>
|
|
#include <abstractions/samba>
|
|
|
|
capability net_bind_service,
|
|
|
|
@{PROC}/sys/kernel/core_pattern r,
|
|
|
|
/usr/{bin,sbin}/nmbd mr,
|
|
|
|
/var/cache/samba/gencache.tdb rwk,
|
|
/var/cache/samba/gencache_notrans.tdb rwk,
|
|
/var/cache/samba/names.tdb rwk,
|
|
/var/{cache,lib}/samba/browse.dat* rw,
|
|
/var/{cache,lib}/samba/gencache.dat rw,
|
|
/var/{cache,lib}/samba/wins.dat* rw,
|
|
/var/{cache,lib}/samba/smb_krb5/ rw,
|
|
/var/{cache,lib}/samba/smb_krb5/krb5.conf* rw,
|
|
/var/{cache,lib}/samba/smb_tmp_krb5.* rw,
|
|
/var/{cache,lib}/samba/sync.* rw,
|
|
/var/{cache,lib}/samba/unexpected rw,
|
|
/var/cache/samba/msg/ rw,
|
|
/var/cache/samba/msg/* w,
|
|
/var/cache/samba/msg.lock/{,*} rwk,
|
|
|
|
/{,var/}run/nmbd.pid rwk,
|
|
/{,var/}run/samba/** rwk,
|
|
/{,var/}run/systemd/notify w,
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
#include <local/usr.sbin.nmbd>
|
|
}
|