Bug 693146 - SELinux is preventing /usr/libexec/polkit-1/polkitd from 'search' accesses on the directory /var/run/ConsoleKit.
Summary: SELinux is preventing /usr/libexec/polkit-1/polkitd from 'search' accesses on...
Keywords:
Status: CLOSED ERRATA
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:c1e80c15e10...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-03 04:15 UTC by bdp
Modified: 2011-05-27 09:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-27 09:44:11 UTC
Type: ---


Attachments (Terms of Use)

Description bdp 2011-04-03 04:15:39 UTC
SELinux is preventing /usr/libexec/polkit-1/polkitd from 'search' accesses on the directory /var/run/ConsoleKit.

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

If you believe that polkitd should be allowed search access on the ConsoleKit 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 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:consolekit_var_run_t:s0
Target Objects                /var/run/ConsoleKit [ dir ]
Source                        polkitd
Source Path                   /usr/libexec/polkit-1/polkitd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           polkit-0.98-4.fc14
Target RPM Packages           ConsoleKit-0.4.2-3.fc14
Policy RPM                    selinux-policy-3.9.7-37.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.i686 #1 SMP Mon Feb 7
                              07:04:18 UTC 2011 i686 i686
Alert Count                   301
First Seen                    Sat 02 Apr 2011 03:26:26 PM EDT
Last Seen                     Sun 03 Apr 2011 12:12:19 AM EDT
Local ID                      2b0c782e-1214-454c-9045-c741d50359a3

Raw Audit Messages
type=AVC msg=audit(1301803939.925:9460): avc:  denied  { search } for  pid=1600 comm="polkitd" name="ConsoleKit" dev=dm-0 ino=19966 scontext=system_u:system_r:policykit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:consolekit_var_run_t:s0 tclass=dir


type=SYSCALL msg=audit(1301803939.925:9460): arch=i386 syscall=stat64 success=no exit=EACCES a0=c60071 a1=bfada350 a2=bf6ff4 a3=9dcaaa0 items=0 ppid=1 pid=1600 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,consolekit_var_run_t,dir,search

audit2allow

#============= policykit_t ==============
allow policykit_t consolekit_var_run_t:dir search;

audit2allow -R

#============= policykit_t ==============
allow policykit_t consolekit_var_run_t:dir search;

Comment 1 Miroslav Grepl 2011-05-27 09:44:11 UTC
Should be fixed in the latest release.


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