Bug 880624 - SELinux is preventing /usr/sbin/dnsmasq from 'name_bind' accesses on the tcp_socket .
Summary: SELinux is preventing /usr/sbin/dnsmasq from 'name_bind' accesses on the tcp_...
Keywords:
Status: CLOSED CURRENTRELEASE
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:2d5159b3d929d6c53dbad49008b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-27 12:54 UTC by Graham Rogers
Modified: 2013-01-07 04:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-07 04:01:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-27 12:54 UTC, Graham Rogers
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-27 12:54 UTC, Graham Rogers
no flags Details

Description Graham Rogers 2012-11-27 12:54:06 UTC
Description of problem:
Using blueman attempting to enable the NAP service

Additional info:
libreport version: 2.0.18
kernel:         3.6.7-4.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/dnsmasq from 'name_bind' accesses on the tcp_socket .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that dnsmasq should be allowed name_bind access on the  tcp_socket 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:blueman_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:dns_port_t:s0
:Target Objects                 [ tcp_socket ]
:Source                        dnsmasq
:Source Path                   /usr/sbin/dnsmasq
:Port                          53
:Host                          (removed)
:Source RPM Packages           dnsmasq-2.63-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.7-4.fc17.x86_64 #1 SMP Tue Nov
:                              20 19:40:01 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    2012-11-27 12:49:13 GMT
:Last Seen                     2012-11-27 12:49:15 GMT
:Local ID                      8bbff3e9-baed-43e5-b250-c15af99f16f4
:
:Raw Audit Messages
:type=AVC msg=audit(1354020555.172:119): avc:  denied  { name_bind } for  pid=6337 comm="dnsmasq" src=53 scontext=system_u:system_r:blueman_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dns_port_t:s0 tclass=tcp_socket
:
:
:type=SYSCALL msg=audit(1354020555.172:119): arch=x86_64 syscall=bind success=yes exit=0 a0=c a1=25d8620 a2=1c a3=7fffa97495bc items=0 ppid=1 pid=6337 auid=4294967295 uid=99 gid=40 euid=99 suid=99 fsuid=99 egid=40 sgid=40 fsgid=40 tty=(none) ses=4294967295 comm=dnsmasq exe=/usr/sbin/dnsmasq subj=system_u:system_r:blueman_t:s0-s0:c0.c1023 key=(null)
:
:Hash: dnsmasq,blueman_t,dns_port_t,tcp_socket,name_bind
:
:audit2allow
:
:#============= blueman_t ==============
:allow blueman_t dns_port_t:tcp_socket name_bind;
:
:audit2allow -R
:
:#============= blueman_t ==============
:allow blueman_t dns_port_t:tcp_socket name_bind;
:

Comment 1 Graham Rogers 2012-11-27 12:54:09 UTC
Created attachment 652662 [details]
File: type

Comment 2 Graham Rogers 2012-11-27 12:54:11 UTC
Created attachment 652663 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-11-27 15:24:56 UTC
F18 has

optional_policy(`
	dnsmasq_domtrans(blueman_t)
	dnsmasq_read_pid_files(blueman_t)
')

Comment 4 Miroslav Grepl 2012-11-29 07:00:54 UTC
Backported.

commit 7cc1fb6aba667b04549fadebd64be1900588ff30
Author: Miroslav Grepl <mgrepl>
Date:   Thu Nov 29 07:59:37 2012 +0100

    Allow blueman to transition to ifconfig, dnsmasq

Comment 5 Fedora Update System 2012-12-17 18:42:34 UTC
selinux-policy-3.10.0-165.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-165.fc17

Comment 6 Fedora Update System 2012-12-18 02:38:21 UTC
Package selinux-policy-3.10.0-165.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-165.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-165.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-01-05 06:43:03 UTC
Package selinux-policy-3.10.0-166.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2013-01-07 04:01:52 UTC
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 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.