Bug 704736 - SELinux is preventing /usr/libexec/polkit-1/polkitd from 'getattr' accesses on the fichier /var/run/ConsoleKit/database.
Summary: SELinux is preventing /usr/libexec/polkit-1/polkitd from 'getattr' accesses o...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:695e80452c8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-14 13:55 UTC by pierrebugzillareport
Modified: 2011-05-16 08:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-16 08:58:13 UTC
Type: ---


Attachments (Terms of Use)

Description pierrebugzillareport 2011-05-14 13:55:05 UTC
SELinux is preventing /usr/libexec/polkit-1/polkitd from 'getattr' accesses on the fichier /var/run/ConsoleKit/database.

*****  Plugin catchall (100. 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:var_run_t:s0
Target Objects                /var/run/ConsoleKit/database [ file ]
Source                        polkitd
Source Path                   /usr/libexec/polkit-1/polkitd
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           polkit-0.98-5.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-91.fc14.i686 #1 SMP Tue May 3
                              13:36:36 UTC 2011 i686 i686
Alert Count                   1
First Seen                    sam. 14 mai 2011 11:26:00 CEST
Last Seen                     sam. 14 mai 2011 11:26:00 CEST
Local ID                      c2afe475-57d7-4839-9095-7a885930eba2

Raw Audit Messages
type=AVC msg=audit(1305365160.582:29): avc:  denied  { getattr } for  pid=1397 comm="polkitd" path="/var/run/ConsoleKit/database" dev=sda5 ino=506039 scontext=system_u:system_r:policykit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1305365160.582:29): arch=i386 syscall=stat64 success=yes exit=0 a0=b9d051 a1=bfc1bcd0 a2=612ff4 a3=97cdaa0 items=0 ppid=1 pid=1397 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=polkitd exe=/usr/libexec/polkit-1/polkitd subj=system_u:system_r:policykit_t:s0-s0:c0.c1023 key=(null)

Hash: polkitd,policykit_t,var_run_t,file,getattr

audit2allow

#============= policykit_t ==============
#!!!! This avc is allowed in the current policy

allow policykit_t var_run_t:file getattr;

audit2allow -R

#============= policykit_t ==============
#!!!! This avc is allowed in the current policy

allow policykit_t var_run_t:file getattr;

Comment 1 Miroslav Grepl 2011-05-16 08:58:13 UTC
Execute

# restorecon -R -v /var/run/ConsoleKit


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