fix(profile): update ufw.

fix #537
This commit is contained in:
Alexandre Pujol 2024-10-01 18:15:51 +01:00
parent cee1e9a3f2
commit 7033a13bc2
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 13 additions and 3 deletions

View File

@ -16,10 +16,16 @@ profile ufw @{exec_path} {
capability dac_read_search, capability dac_read_search,
capability net_admin, capability net_admin,
capability net_raw,
capability sys_ptrace,
network netlink raw,
network inet dgram, network inet dgram,
network inet raw,
network inet6 dgram, network inet6 dgram,
network inet6 raw,
network netlink raw,
ptrace read,
@{exec_path} mr, @{exec_path} mr,
@ -27,14 +33,16 @@ profile ufw @{exec_path} {
@{bin}/cat ix, @{bin}/cat ix,
@{bin}/env r, @{bin}/env r,
@{bin}/python3.@{int} ix, @{bin}/python3.@{int} ix,
@{bin}/sysctl ix,
@{bin}/xtables-legacy-multi ix, @{bin}/xtables-legacy-multi ix,
@{bin}/xtables-nft-multi ix, @{bin}/xtables-nft-multi ix,
@{lib}/ufw/ufw-init ix, @{lib}/ufw/ufw-init ix,
/etc/default/ufw r, /etc/default/ufw rw,
/etc/ufw/ rw, /etc/ufw/ rw,
/etc/ufw/** rwk, /etc/ufw/** rwk,
@{run}/xtables.lock rwk,
owner @{run}/ufw.lock rwk, owner @{run}/ufw.lock rwk,
owner @{tmp}/@{word8} rw, owner @{tmp}/@{word8} rw,
@ -45,9 +53,10 @@ profile ufw @{exec_path} {
@{PROC}/@{pid}/fd/ r, @{PROC}/@{pid}/fd/ r,
@{PROC}/@{pid}/net/ip_tables_names r, @{PROC}/@{pid}/net/ip_tables_names r,
@{PROC}/@{pid}/stat r, @{PROC}/@{pid}/stat r,
@{PROC}/sys/net/ipv{4,6}/** rw,
@{PROC}/sys/kernel/modprobe r,
include if exists <local/ufw> include if exists <local/ufw>
} }
# vim:syntax=apparmor # vim:syntax=apparmor

View File

@ -382,6 +382,7 @@ tracker-writeback complain
udev-dmi-memory-id complain udev-dmi-memory-id complain
udisksctl complain udisksctl complain
udisksd attach_disconnected,complain udisksd attach_disconnected,complain
ufw complain
update-grub complain update-grub complain
update-secureboot-policy complain update-secureboot-policy complain
userdbctl complain userdbctl complain