Bug 1030654 - SELinux is preventing /usr/bin/dbus-daemon from 'bind' accesses on the netlink_selinux_socket .
SELinux is preventing /usr/bin/dbus-daemon from 'bind' accesses on the netlin...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-11-14 16:13 EST by Kamil Páral
Modified: 2013-11-26 04:43 EST (History)
4 users (show)

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

Attachments (Terms of Use)

  None (edit)
Description Kamil Páral 2013-11-14 16:13:43 EST
Description of problem:
No idea how this happened.
SELinux is preventing /usr/bin/dbus-daemon from 'bind' accesses on the netlink_selinux_socket .

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

If you believe that dbus-daemon should be allowed bind 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.
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                          <Neznámé>
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                   3
First Seen                    2013-11-10 10:45:05 CET
Last Seen                     2013-11-14 21:37:19 CET
Local ID                      d0109cb2-5443-4feb-8070-5751e523b48f

Raw Audit Messages
type=AVC msg=audit(1384461439.29:592): avc:  denied  { bind } for  pid=27121 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(1384461439.29:592): arch=x86_64 syscall=bind success=yes exit=0 a0=5 a1=7fffa890b000 a2=c a3=7fffa890adc0 items=0 ppid=1 pid=27121 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,bind

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

Potential duplicate: bug 989788
Comment 1 Daniel Walsh 2013-11-18 13:09:55 EST
This is allowed in F20.
Comment 2 Lukas Vrabec 2013-11-26 04:43:31 EST
$ sesearch -A -s xdm_t -t xdm_t -c netlink_selinux_socket
Found 1 semantic av rules:
   allow xdm_t xdm_t : netlink_selinux_socket { ioctl read write create getattr setattr lock append bind connect getopt setopt shutdown } ;

$ rpm -q selinux-policy

It's also allowed in F19.

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