Bug 876977 - SELinux is preventing /usr/sbin/dnsmasq from 'read' accesses on the directory /etc/NetworkManager/dnsmasq.d.
Summary: SELinux is preventing /usr/sbin/dnsmasq from 'read' accesses on the directory...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4130673080920933b5596abeaec...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-15 13:02 UTC by Michal Schmidt
Modified: 2012-11-19 09:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-19 09:27:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-15 13:02 UTC, Michal Schmidt
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-15 13:03 UTC, Michal Schmidt
no flags Details

Description Michal Schmidt 2012-11-15 13:02:53 UTC
Description of problem:
Shortly after installing today's updates, which include this NetworkManager change:

* St lis 14 2012 Jiří Klimeš <jklimes> - 0.9.6.4-2
- spec: create /etc/NetworkManager/dnsmasq.d (rh #873621)


Additional info:
libreport version: 2.0.18
kernel:         3.6.6-1.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/dnsmasq from 'read' accesses on the directory /etc/NetworkManager/dnsmasq.d.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that dnsmasq should be allowed read access on the dnsmasq.d directory by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep dnsmasq /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:dnsmasq_t:s0
:Target Context                system_u:object_r:NetworkManager_etc_t:s0
:Target Objects                /etc/NetworkManager/dnsmasq.d [ dir ]
:Source                        dnsmasq
:Source Path                   /usr/sbin/dnsmasq
:Port                          <Neznámé>
:Host                          (removed)
:Source RPM Packages           dnsmasq-2.63-1.fc17.x86_64
:Target RPM Packages           NetworkManager-0.9.6.4-2.fc17.x86_64
:Policy RPM                    selinux-policy-3.10.0-159.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.6-1.fc17.x86_64 #1 SMP Mon Nov
:                              5 21:59:35 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-11-15 12:40:11 CET
:Last Seen                     2012-11-15 12:40:11 CET
:Local ID                      26e5f384-5d95-4a35-96d8-0c4d3ed0feb3
:
:Raw Audit Messages
:type=AVC msg=audit(1352979611.365:177): avc:  denied  { read } for  pid=27552 comm="dnsmasq" name="dnsmasq.d" dev="dm-0" ino=311995 scontext=system_u:system_r:dnsmasq_t:s0 tcontext=system_u:object_r:NetworkManager_etc_t:s0 tclass=dir
:
:
:type=AVC msg=audit(1352979611.365:177): avc:  denied  { open } for  pid=27552 comm="dnsmasq" path="/etc/NetworkManager/dnsmasq.d" dev="dm-0" ino=311995 scontext=system_u:system_r:dnsmasq_t:s0 tcontext=system_u:object_r:NetworkManager_etc_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1352979611.365:177): arch=x86_64 syscall=openat success=yes exit=ESRCH a0=ffffffffffffff9c a1=7f8bf0 a2=90800 a3=0 items=1 ppid=832 pid=27552 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=dnsmasq exe=/usr/sbin/dnsmasq subj=system_u:system_r:dnsmasq_t:s0 key=(null)
:
:type=CWD msg=audit(1352979611.365:177): cwd=/
:
:type=PATH msg=audit(1352979611.365:177): item=0 name=/etc/NetworkManager/dnsmasq.d inode=311995 dev=fd:00 mode=040755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:NetworkManager_etc_t:s0
:
:Hash: dnsmasq,dnsmasq_t,NetworkManager_etc_t,dir,read
:
:audit2allow
:
:#============= dnsmasq_t ==============
:allow dnsmasq_t NetworkManager_etc_t:dir { read open };
:
:audit2allow -R
:
:#============= dnsmasq_t ==============
:allow dnsmasq_t NetworkManager_etc_t:dir { read open };
:


Potential duplicate bug: 870795

Comment 1 Michal Schmidt 2012-11-15 13:02:59 UTC
Created attachment 645624 [details]
File: type

Comment 2 Michal Schmidt 2012-11-15 13:03:05 UTC
Created attachment 645625 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-11-15 14:46:08 UTC
Yup needs a back port.

Comment 4 Miroslav Grepl 2012-11-19 09:27:55 UTC
It already has been fixed.

commit 67246907ab9c50956069383eb93dc64987faa3d9
Author: Miroslav Grepl <mgrepl>
Date:   Mon Nov 12 10:53:13 2012 +0100

    Allow dnsmasq to read /etc/NetworkManager


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