Bug 1255419

Summary: SELinux is preventing /usr/sbin/console-kit-daemon from 'write' accesses on the directory /var/lib/dbus.
Product: [Fedora] Fedora Reporter: Paul Grabbe <pg7724>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:133e7215eeadcd7d83fdecf9151788608e4df1bcd4dd42c8c2da2ab8567a0470
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-27 16:49:06 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 Paul Grabbe 2015-08-20 14:22:09 UTC
Description of problem:
Alert appeared upon reboot and login (Cinnamon)
SELinux is preventing /usr/sbin/console-kit-daemon from 'write' accesses on the directory /var/lib/dbus.

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

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

Additional Information:
Source Context                system_u:system_r:consolekit_t:s0
Target Context                system_u:object_r:system_dbusd_var_lib_t:s0
Target Objects                /var/lib/dbus [ dir ]
Source                        console-kit-dae
Source Path                   /usr/sbin/console-kit-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ConsoleKit-0.4.5-9.fc21.x86_64
Target RPM Packages           dbus-1.8.20-1.fc21.x86_64
Policy RPM                    selinux-policy-3.13.1-105.20.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.5-100.fc21.x86_64 #1 SMP Tue
                              Aug 11 00:24:23 UTC 2015 x86_64 x86_64
Alert Count                   8
First Seen                    2015-07-21 16:05:01 EDT
Last Seen                     2015-08-20 10:15:09 EDT
Local ID                      28f32541-9f1e-4b84-8d5a-aa3c6e2e68ae

Raw Audit Messages
type=AVC msg=audit(1440080109.879:635): avc:  denied  { write } for  pid=1634 comm="console-kit-dae" name="dbus" dev="dm-0" ino=6029375 scontext=system_u:system_r:consolekit_t:s0 tcontext=system_u:object_r:system_dbusd_var_lib_t:s0 tclass=dir permissive=0


type=SYSCALL msg=audit(1440080109.879:635): arch=x86_64 syscall=open success=no exit=EACCES a0=2285800 a1=c1 a2=1a4 a3=22 items=0 ppid=1 pid=1634 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=console-kit-dae exe=/usr/sbin/console-kit-daemon subj=system_u:system_r:consolekit_t:s0 key=(null)

Hash: console-kit-dae,consolekit_t,system_dbusd_var_lib_t,dir,write

Version-Release number of selected component:
selinux-policy-3.13.1-105.20.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         4.1.5-100.fc21.x86_64
type:           libreport

Potential duplicate: bug 1126142

Comment 1 Miroslav Grepl 2015-08-27 16:49:06 UTC

*** This bug has been marked as a duplicate of bug 1126142 ***