Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1697227

Summary: avc: denied { search, write } for comm="dnsmasq" name="NetworkManager"
Product: Red Hat Enterprise Linux 7 Reporter: Martin Pitt <mpitt>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.7CC: lvrabec, mmalik, plautrba, ssekidde, vbenes, vmojzis, zpytela
Target Milestone: rcKeywords: AutoVerified
Target Release: 7.8   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-253.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 19:10:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Pitt 2019-04-08 06:43:09 UTC
Description of problem: This is very similar to bug 1598506. When NetworkManager runs dnsmasq on current RHEL 7.7 nightlies (this also affects RHEL 8.0 and 8.1!), this SELinux error commonly appears:

kernel: type=1400 audit(1554705338.120:4): avc:  denied  { search } for  pid=2377 comm="dnsmasq" name="NetworkManager" dev="dm-0" ino=25516457 scontext=system_u:system_r:dnsmasq_t:s0 tcontext=system_u:object_r:NetworkManager_var_lib_t:s0 tclass=dir permissive=0


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

selinux-policy-3.13.1-242.el7.noarch
dnsmasq-2.76-9.el7.x86_64
NetworkManager-1.18.0-0.2.20190404git9a8fe5f339.el7.x86_64

How reproducible: Always (in our Cockpit tests)

Comment 2 Martin Pitt 2019-04-08 06:44:46 UTC
This also often appears, so it's search and write:

audit: type=1400 audit(0): avc: denied { write } for pid=0 comm="dnsmasq" name="NetworkManager" dev="dm-0" ino=0 scontext=system_u:system_r:dnsmasq_t:s0 tcontext=system_u:object_r:NetworkManager_var_lib_t:s0 tclass=dir permissive=0

Comment 6 Zdenek Pytela 2019-04-18 14:37:27 UTC
*** Bug 1698429 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2020-03-31 19:10:44 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-2020:1007