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 1373220 - avc denial: comm="iptables.init" name="plymouth"
Summary: avc denial: comm="iptables.init" name="plymouth"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks: 1420851
TreeView+ depends on / blocked
 
Reported: 2016-09-05 14:04 UTC by Petr Sklenar
Modified: 2021-06-10 11:30 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-3.13.1-175.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 12:22:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2912781 0 None None None 2017-02-07 15:12:54 UTC
Red Hat Product Errata RHBA-2018:0763 0 None None None 2018-04-10 12:23:31 UTC

Description Petr Sklenar 2016-09-05 14:04:37 UTC
Description of problem:
there is avc denial during starting iptables , but its there rarely.

Version-Release number of selected component (if applicable):
iptables-1.4.21-17.el7.s390x
selinux-policy-3.13.1-96.el7.noarch

How reproducible:
rarely

Steps to Reproduce:
1. start iptables + ip6tables +  firewalld


Actual results:
time->Sun Sep  4 01:34:54 2016
type=SYSCALL msg=audit(1472949294.909:1707): arch=80000016 syscall=300 success=no exit=-13 a0=ffffffffffffff9c a1=90ea45b0 a2=1 a3=200 items=0 ppid=1 pid=45704 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iptables.init" exe="/usr/bin/bash" subj=system_u:system_r:iptables_t:s0 key=(null)
type=AVC msg=audit(1472949294.909:1707): avc:  denied  { execute } for  pid=45704 comm="iptables.init" name="plymouth" dev="dm-0" ino=613888 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:plymouth_exec_t:s0 tclass=file
Fail: AVC messages found.

Expected results:
no denial

Additional info:

Comment 7 feehans 2017-01-17 18:30:53 UTC
We're getting similar errors. Note that this is on a CentOS 7.3.1611 system, so I probably shouldn't report here. But I have also opened a bug with CentOS:

https://bugs.centos.org/view.php?id=12648

Here are the errors we get:

type=AVC msg=audit(1484222790.149:1385018): avc:  denied  { setattr } for  pid=10803 comm="chmod" name="iptables.save" dev="dm-0" ino=35288115 scontext=system_u:system_r:iptables_t:s0 tcontext=unconfined_u:object_r:etc_runtime_t:s0 tclass=file

type=AVC msg=audit(1484222790.150:1385019): avc:  denied  { execute } for  pid=10790 comm="iptables.init" name="plymouth" dev="dm-0" ino=67870175 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:plymouth_exec_t:s0 tclass=file

type=AVC msg=audit(1484222790.221:1385042): avc:  denied  { unlink } for  pid=10860 comm="rm" name="ip6tables" dev="tmpfs" ino=17162 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:var_lock_t:s0 tclass=file

type=AVC msg=audit(1484222790.240:1385045): avc:  denied  { read } for  pid=10862 comm="ip6tables.init" name="modprobe.d" dev="dm-0" ino=34095125 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:modules_conf_t:s0 tclass=dir

For us this happens only on reboot and it is consistently reproducible. It started on the first reboot after updating to 7.3.1611.

Comment 8 Zdenek Pytela 2017-02-07 14:09:52 UTC
the legacy commands iptables.init and ip6tables.init are part of the iptables-services-1.4.21-17.el7.x86_64 package
they are sourcing /etc/init.d/functions which executes plymouth commands

similar to bz1419957

Comment 16 errata-xmlrpc 2018-04-10 12:22:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0763


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