Bug 693051 - SELinux is preventing polkitd from 'getattr' accesses on the file /var/run/ConsoleKit/database.
Summary: SELinux is preventing polkitd from 'getattr' accesses on the file /var/run/Co...
Keywords:
Status: CLOSED DUPLICATE of bug 692459
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:4cd106989ae...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-02 08:49 UTC by Fabien Archambault
Modified: 2011-04-07 07:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-04 07:42:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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