Skip to content

Commit a1914b9

Browse files
Ignore some harmless AVC denials
Signed-off-by: Max Chernoff <[email protected]>
1 parent 0d8b09e commit a1914b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

container.te

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,10 @@ allow container_t tmpfs_t:filesystem remount;
16531653
allow userdomain container_runtime_t:tcp_socket { bind create getopt listen setopt };
16541654
allow userdomain container_runtime_t:udp_socket { bind create getopt listen setopt };
16551655

1656+
# When shutting down, systemd will stop the container before the socket unit, so
1657+
# ignore any AVC denials from systemd trying to accept the socket
1658+
dontaudit userdomain container_runtime_t:tcp_socket accept;
1659+
16561660
# Allow systemd to kill containers (needed for when stopping a Quadlet service
16571661
# times out)
16581662
allow userdomain container_runtime_t:process { sigkill signal signull };
@@ -1661,3 +1665,9 @@ allow userdomain container_t:process { sigkill signal signull };
16611665
# Needed for "podman build" to work as a confined user
16621666
allow userdomain container_ro_file_t:dir mounton;
16631667
allow userdomain self:capability setuid;
1668+
1669+
# Harmless AVC denial
1670+
dontaudit container_runtime_t self:process2 nnp_transition;
1671+
1672+
# Ignore containers trying to chown stdin/stdout/stderr
1673+
dontaudit container_t container_runtime_t:fifo_file setattr;

0 commit comments

Comments
 (0)