Bug 693051

Summary: SELinux is preventing polkitd from 'getattr' accesses on the file /var/run/ConsoleKit/database.
Product: [Fedora] Fedora Reporter: Fabien Archambault <marbolangos>
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: dwalsh, maxim.prohorenko, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:4cd106989ae62ac61be909a752431a3a671bd624e6a53333685898772f057c1b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-04 07:42:10 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 Fabien Archambault 2011-04-02 08:49:39 UTC
SELinux is preventing polkitd from 'getattr' accesses on the file /var/run/ConsoleKit/database.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/var/run/ConsoleKit/database default label should be consolekit_var_run_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /var/run/ConsoleKit/database

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that polkitd should be allowed getattr 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 polkitd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:policykit_t:s0-s0:c0.c1023
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                /var/run/ConsoleKit/database [ file ]
Source                        polkitd
Source Path                   polkitd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64
                              #1 SMP Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 02 Apr 2011 10:44:56 AM CEST
Last Seen                     Sat 02 Apr 2011 10:44:56 AM CEST
Local ID                      7f7e2a0f-bbd8-4b07-807f-aa9e78147a2b

Raw Audit Messages
type=AVC msg=audit(1301733896.38:283): avc:  denied  { getattr } for  pid=928 comm="polkitd" path="/var/run/ConsoleKit/database" dev=tmpfs ino=37461 scontext=system_u:system_r:policykit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file


Hash: polkitd,policykit_t,tmpfs_t,file,getattr

audit2allow

#============= policykit_t ==============
allow policykit_t tmpfs_t:file getattr;

audit2allow -R

#============= policykit_t ==============
allow policykit_t tmpfs_t:file getattr;

Comment 1 Miroslav Grepl 2011-04-04 07:42:10 UTC

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