Bug 710818

Summary: SELinux is preventing /usr/libexec/ck-get-x11-server-pid from 'open' accesses on the file database.
Product: [Fedora] Fedora Reporter: Daniel Demus <daniel>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:9a6dc7084cbd23d1ac22d1f5cc713eb7728b111f96cdd321a855782383837ac4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-05 07:52:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Daniel Demus 2011-06-05 00:28:54 UTC
SELinux is preventing /usr/libexec/ck-get-x11-server-pid from 'open' accesses on the file database.

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

If you believe that ck-get-x11-server-pid should be allowed open access on the database file 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 ck-get-x11-serv /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                unconfined_u:object_r:var_run_t:s0
Target Objects                database [ file ]
Source                        ck-get-x11-serv
Source Path                   /usr/libexec/ck-get-x11-server-pid
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ConsoleKit-x11-0.4.5-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-26.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.6-27.fc15.x86_64 #1 SMP
                              Sun May 15 17:23:28 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Sun 05 Jun 2011 02:26:21 CEST
Last Seen                     Sun 05 Jun 2011 02:26:21 CEST
Local ID                      461cda38-127e-44b5-a799-e12ed724f35f

Raw Audit Messages
type=AVC msg=audit(1307233581.568:59): avc:  denied  { open } for  pid=1484 comm="ck-get-x11-serv" name="database" dev=tmpfs ino=19893 scontext=system_u:system_r:consolekit_t:s0 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1307233581.568:59): arch=x86_64 syscall=open success=yes exit=EINTR a0=7ffff1e66fa0 a1=0 a2=1b6 a3=ffffffffffffffab items=0 ppid=1483 pid=1484 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ck-get-x11-serv exe=/usr/libexec/ck-get-x11-server-pid subj=system_u:system_r:consolekit_t:s0 key=(null)

Hash: ck-get-x11-serv,consolekit_t,var_run_t,file,open

audit2allow

#============= consolekit_t ==============
allow consolekit_t var_run_t:file open;

audit2allow -R

#============= consolekit_t ==============
allow consolekit_t var_run_t:file open;

Comment 1 Miroslav Grepl 2011-06-05 07:52:13 UTC

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