Bug 1028740 - SELinux is preventing /usr/bin/dbus-daemon from 'create' accesses on the netlink_selinux_socket .
SELinux is preventing /usr/bin/dbus-daemon from 'create' accesses on the netl...
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
19
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:e08e679da17de136d94acb9a9d3...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-10 06:06 EST by Michael Chapman
Modified: 2013-11-26 09:29 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-26 09:29:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael Chapman 2013-11-10 06:06:24 EST
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 09:29:03 EST
#============= 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

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