1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
# -*- apparmor -*-
abi <abi/3.0>,
include <tunables/global>
profile laurel /usr/sbin/laurel flags=(attach_disconnected, complain) {
include <abstractions/base>
include <abstractions/nameservice>
capability chown,
capability dac_read_search,
capability fowner,
capability fsetid,
capability setgid,
capability setpcap,
capability setuid,
# connect to local services for name lookups etc.
network unix stream,
# Access various information in /proc/$PID/
ptrace read,
capability sys_ptrace,
@{PROC}/ r,
@{PROC}/@{pid}/cgroup r,
@{PROC}/@{pid}/comm r,
@{PROC}/@{pid}/environ r,
@{PROC}/@{pid}/stat r,
# Re-exec
/usr/sbin/laurel mrix,
signal receive set=(term,hup,int,kill),
# Configuration and log files
/etc/laurel/config.toml r,
/var/log/laurel/ rw,
owner /var/log/laurel/* rw,
# Workarounds for suspected Ubuntu / Azure AD issues
@{run}/samba/winbindd/pipe rw,
/etc/aadpasswd r,
include if exists <abstractions/openssl>
include if exists <local/laurel>
}
|