update apparmor profiles

Signed-off-by: Alexandre Pujol <alexandre@pujol.io>
This commit is contained in:
Mikhail Morfikov 2021-12-08 12:59:46 +01:00 committed by Alexandre Pujol
parent 44aca3ba51
commit 3430e3df90
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
56 changed files with 146 additions and 45 deletions

View file

@ -71,11 +71,14 @@ profile dpkg @{exec_path} {
/etc/dpkg/dpkg.cfg r,
owner @{PROC}/@{pid}/fd/ r,
@{PROC}/sys/kernel/random/boot_id r,
owner /tmp/apt-dpkg-install-*/ r,
/var/log/dpkg.log w,
@{run}/systemd/userdb/ r,
# For shell pwd
/root/ r,
@ -103,9 +106,15 @@ profile dpkg @{exec_path} {
/var/local/** rwl -> /var/local/**,
/var/spool/ r,
/var/spool/** rwl -> /var/spool/**,
# Fixme when more transitions will be available (#FIXME#)
/var/www/ r,
/var/www/** rwl,
# To create log and cache dirs
/var/log/**/ rw,
/var/cache/**/ rw,
# To create dirs under var
/var/*.dpkg-new/ rw,
/var/*/ rw,
# file_inherit
owner /dev/tty[0-9]* rw,