Skip to content

Commit 10cc7ec

Browse files
committed
Dontaudit dac_override for iptables_t
There are AVCs observed during rootless docker 'systemctl --user restart docker.service', but no functional impact. Minimal steps to reproduce: > sudo modprobe ip_tables > # creates /proc/net/ip_tables_names > systemctl --user restart docker.service > # reproduces the AVCs ---- type=PROCTITLE msg=audit(..) : proctitle=/sbin/iptables --wait -t filter -n -L DOCKER-USER type=PATH msg=audit(..) : item=0 name=/proc/net/ip_tables_names inode=4026532558 dev=00:17 mode=file,440 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:proc_net_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 type=CWD msg=audit(..) : cwd=/home/user3 type=SYSCALL msg=audit(07/14/25 10:50:08.851:653) : arch=x86_64 syscall=openat success=no exit=EACCES(Permission denied) a0=AT_FDCWD a1=0x55916df27b70 a2=O_RDONLY a3=0x0 items=1 ppid=4831 pid=4979 auid=user3 uid=user3 gid=user3 euid=user3 suid=user3 fsuid=user3 egid=user3 sgid=user3 fsgid=user3 tty=(none) ses=12 comm=iptables exe=/usr/sbin/xtables-nft-multi subj=unconfined_u:unconfined_r:iptables_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(..) : avc: denied { dac_override } for pid=4979 comm=iptables capability=dac_override scontext=unconfined_u:unconfined_r:iptables_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:iptables_t:s0-s0:c0.c1023 tclass=cap_userns permissive=0 ---- Fixes: bsc#1246348 Signed-off-by: Robert Frohl <[email protected]>
1 parent 4637aaa commit 10cc7ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

container.te

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ optional_policy(`
465465
container_append_file(iptables_t)
466466
allow iptables_t container_runtime_domain:fifo_file rw_fifo_file_perms;
467467
allow iptables_t container_file_type:dir list_dir_perms;
468+
dontaudit iptables_t self:cap_userns dac_override;
468469
')
469470

470471
optional_policy(`

0 commit comments

Comments
 (0)