Bug 1028740

Summary: SELinux is preventing /usr/bin/dbus-daemon from 'create' accesses on the netlink_selinux_socket .
Product: [Fedora] Fedora Reporter: Michael Chapman <redhat-bugzilla>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, kparal, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e08e679da17de136d94acb9a9d3f3e3331fcf1bd0614e354758bff62357c155f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-26 14:29:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Chapman 2013-11-10 11:06:24 UTC
Description of problem:
This SELinux alert prevented GDM from starting at boot. A similar SELinux alert for the "bind" permission was also generated.

Packages involved:

- dbus-1.6.12-1.fc19.x86_64
- gdm-3.8.4-2.fc19.x86_64
- selinux-policy-targeted-3.12.1-74.12.fc19.noarch
SELinux is preventing /usr/bin/dbus-daemon from 'create' accesses on the netlink_selinux_socket .

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that dbus-daemon should be allowed create access on the  netlink_selinux_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 dbus-daemon /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Objects                 [ netlink_selinux_socket ]
Source                        dbus-daemon
Source Path                   /usr/bin/dbus-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dbus-1.6.12-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.12.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.11.7-200.fc19.x86_64 #1 SMP Mon
                              Nov 4 14:09:03 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-11-10 21:46:14 EST
Last Seen                     2013-11-10 21:46:14 EST
Local ID                      fbb96d6f-0fff-4e20-a62b-6d1130e38915

Raw Audit Messages
type=AVC msg=audit(1384080374.97:129): avc:  denied  { create } for  pid=1733 comm="dbus-daemon" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=netlink_selinux_socket


type=SYSCALL msg=audit(1384080374.97:129): arch=x86_64 syscall=socket success=yes exit=EIO a0=10 a1=80003 a2=7 a3=7fff5110f6c0 items=0 ppid=1 pid=1733 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 ses=4294967295 tty=(none) comm=dbus-daemon exe=/usr/bin/dbus-daemon subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: dbus-daemon,xdm_t,xdm_t,netlink_selinux_socket,create

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.7-200.fc19.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2013-11-26 14:29:03 UTC
#============= xdm_t ==============

#!!!! This avc is allowed in the current policy
allow xdm_t self:netlink_selinux_socket create;

$ rpm -q selinux-policy 
selinux-policy-3.12.1-74.14.fc19.noarch