RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2149948 - iptables creates AVCs on /sys/fs/cgroup
Summary: iptables creates AVCs on /sys/fs/cgroup
Keywords:
Status: CLOSED DUPLICATE of bug 2134820
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.8
Assignee: Zdenek Pytela
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-01 12:26 UTC by Renaud Métrich
Modified: 2022-12-02 08:53 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-02 08:53:44 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 1083 0 None Merged Allow iptables list cgroup directories 2022-12-01 12:26:24 UTC
Red Hat Issue Tracker RHELPLAN-141025 0 None None None 2022-12-01 12:31:33 UTC
Red Hat Knowledge Base (Solution) 6988677 0 None None None 2022-12-01 16:10:45 UTC

Description Renaud Métrich 2022-12-01 12:26:24 UTC
Description of problem:

A customer reports AVCs when iptables is executing, e.g.:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
type=PROCTITLE ... : proctitle=iptables -w 5 -W 100000 -S KUBE-PROXY-CANARY -t mangle 
type=EXECVE ... : argc=9 a0=iptables a1=-w a2=5 a3=-W a4=100000 a5=-S a6=KUBE-PROXY-CANARY a7=-t a8=mangle 
type=SYSCALL ... : arch=x86_64 syscall=execve success=yes exit=0 a0=0xc00efb61f8 a1=0xc00536e870 a2=0xc00536e8c0 a3=0x0 items=0 ppid=127049 pid=3581642 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=iptables exe=/usr/sbin/xtables-nft-multi subj=system_u:system_r:iptables_t:s0 key=(null) 
type=AVC ... : avc:  denied  { ioctl } for  pid=3581642 comm=iptables path=/sys/fs/cgroup dev="tmpfs" ino=1222 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=0 
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

Apparently this was a well-known issue on Fedora which was fixed by https://github.com/fedora-selinux/selinux-policy/pull/1083/files

Please backport this to RHEL8.


Version-Release number of selected component (if applicable):

selinux-policy-3.14.3-108.el8.noarch

How reproducible:

Always on customer system

Comment 1 Zdenek Pytela 2022-12-02 08:53:44 UTC
Fixed in RHEL 8.8.

*** This bug has been marked as a duplicate of bug 2134820 ***


Note You need to log in before you can comment on or make changes to this bug.