Bug 691147 - SELinux is preventing /usr/libexec/polkit-1/polkitd from 'write' accesses on the sock_file log.
Summary: SELinux is preventing /usr/libexec/polkit-1/polkitd from 'write' accesses on ...
Keywords:
Status: CLOSED DUPLICATE of bug 691145
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:811c6d40d22...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-27 03:24 UTC by Horst H. von Brand
Modified: 2011-03-28 11:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-28 11:31:23 UTC
Type: ---


Attachments (Terms of Use)

Description Horst H. von Brand 2011-03-27 03:24:57 UTC
SELinux is preventing /usr/libexec/polkit-1/polkitd from 'write' accesses on the sock_file log.

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

If you believe that polkitd should be allowed write access on the log sock_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:device_t:s0
Target Objects                log [ sock_file ]
Source                        polkitd
Source Path                   /usr/libexec/polkit-1/polkitd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           polkit-0.101-4.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.1-6.fc15.x86_64
                              #1 SMP Wed Mar 23 22:43:31 UTC 2011 x86_64 x86_64
Alert Count                   8
First Seen                    Fri 25 Mar 2011 08:51:52 AM CLST
Last Seen                     Sun 27 Mar 2011 12:01:55 AM CLST
Local ID                      de5e4078-2fcf-4943-b673-df4bf124a6b2

Raw Audit Messages
type=AVC msg=audit(1301194915.853:1029): avc:  denied  { write } for  pid=1142 comm="polkitd" name="log" dev=devtmpfs ino=16533 scontext=system_u:system_r:policykit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1301194915.853:1029): arch=x86_64 syscall=connect success=no exit=EACCES a0=b a1=330c1997c0 a2=6e a3=0 items=0 ppid=1 pid=1142 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,device_t,sock_file,write

audit2allow

#============= policykit_t ==============
allow policykit_t device_t:sock_file write;

audit2allow -R

#============= policykit_t ==============
allow policykit_t device_t:sock_file write;

Comment 1 Miroslav Grepl 2011-03-28 11:31:23 UTC

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


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