Bug 564276 - SELinux is preventing /usr/sbin/dnsmasq "dac_override" access .
Summary: SELinux is preventing /usr/sbin/dnsmasq "dac_override" access .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:c5dc4a2d4b4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-12 08:24 UTC by Sandro
Modified: 2010-03-04 00:14 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-92.fc12
Clone Of:
Environment:
Last Closed: 2010-03-04 00:14:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sandro 2010-02-12 08:24:19 UTC
Summary:

SELinux is preventing /usr/sbin/dnsmasq "dac_override" access .

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by dnsmasq. It is not expected that this access
is required by dnsmasq and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:dnsmasq_t:s0
Target Context                unconfined_u:system_r:dnsmasq_t:s0
Target Objects                None [ capability ]
Source                        dnsmasq
Source Path                   /usr/sbin/dnsmasq
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dnsmasq-2.51-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-84.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux gethen.penguinpee.nl
                              2.6.31.12-174.2.3.fc12.x86_64 #1 SMP Mon Jan 18
                              19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   13
First Seen                    Tue 26 Jan 2010 05:04:41 PM CET
Last Seen                     Fri 12 Feb 2010 09:18:50 AM CET
Local ID                      33307e45-60db-4a3f-8088-7988faf9fded
Line Numbers                  

Raw Audit Messages            

node=gethen.penguinpee.nl type=AVC msg=audit(1265962730.698:64069): avc:  denied  { dac_override } for  pid=4184 comm="dnsmasq" capability=1 scontext=unconfined_u:system_r:dnsmasq_t:s0 tcontext=unconfined_u:system_r:dnsmasq_t:s0 tclass=capability

node=gethen.penguinpee.nl type=SYSCALL msg=audit(1265962730.698:64069): arch=c000003e syscall=2 success=yes exit=10 a0=891540 a1=441 a2=1a0 a3=ffffffff items=0 ppid=4183 pid=4184 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="dnsmasq" exe="/usr/sbin/dnsmasq" subj=unconfined_u:system_r:dnsmasq_t:s0 key=(null)



Hash String generated from  catchall,dnsmasq,dnsmasq_t,dnsmasq_t,capability,dac_override
audit2allow suggests:

#============= dnsmasq_t ==============
allow dnsmasq_t self:capability dac_override;

Comment 1 Sandro 2010-02-12 08:32:28 UTC
I get this together with bug 564277 whenever I (re)start dnsmasq.

# /sbin/service dnsmasq restart

I use dnsmasq as a local name server and have it reload its configuration triggered by NetworkManager changing the network connection.

Comment 2 Miroslav Grepl 2010-02-12 16:26:49 UTC
Fixed in selinux-policy-3.6.32-90.fc12

Comment 3 Fedora Update System 2010-02-23 20:55:24 UTC
selinux-policy-3.6.32-92.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-92.fc12

Comment 4 Fedora Update System 2010-02-26 03:42:00 UTC
selinux-policy-3.6.32-92.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-2953

Comment 5 Fedora Update System 2010-03-04 00:10:47 UTC
selinux-policy-3.6.32-92.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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