Bug 669675

Summary: SELinux is preventing systemd-readahe from 'write' accesses on the file /usr/libexec/polkit-1/polkitd.
Product: [Fedora] Fedora Reporter: satellitgo
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:895e1bc6bdaf0d35f9d574943fc826d7aff5d763cb97c3628c34b7175ca5ec6c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-14 14:13:48 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 satellitgo 2011-01-14 11:59:50 UTC
SELinux is preventing systemd-readahe from 'write' accesses on the file /usr/libexec/polkit-1/polkitd.

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

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

Additional Information:
Source Context                system_u:system_r:readahead_t:s0
Target Context                system_u:object_r:policykit_exec_t:s0
Target Objects                /usr/libexec/polkit-1/polkitd [ file ]
Source                        systemd-readahe
Source Path                   systemd-readahe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           polkit-0.98-5.fc15
Policy RPM                    selinux-policy-3.9.12-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-2.fc15.i686 #1
                              SMP Fri Jan 7 15:46:20 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Fri 14 Jan 2011 08:49:17 AM EST
Last Seen                     Fri 14 Jan 2011 08:49:17 AM EST
Local ID                      770b1b67-2350-4dbe-a991-7e00a5fce745

Raw Audit Messages
type=AVC msg=audit(1295012957.866:150): avc:  denied  { write } for  pid=444 comm="systemd-readahe" path="/usr/libexec/polkit-1/polkitd" dev=dm-0 ino=17971 scontext=system_u:system_r:readahead_t:s0 tcontext=system_u:object_r:policykit_exec_t:s0 tclass=file


Hash: systemd-readahe,readahead_t,policykit_exec_t,file,write

audit2allow

#============= readahead_t ==============
allow readahead_t policykit_exec_t:file write;

audit2allow -R

#============= readahead_t ==============
allow readahead_t policykit_exec_t:file write;

Comment 1 Daniel Walsh 2011-01-14 14:13:48 UTC

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