Bug 692703

Summary: SELinux is preventing systemd-readahe from 'write' accesses on the arquivo /usr/sbin/console-kit-daemon.
Product: [Fedora] Fedora Reporter: Alessandra <alessandra.sol>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:fba9888ffdc013b17359a5561cfb5ba8b0fbcc27073916c2057850cda31f93d6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-31 21:23:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alessandra 2011-03-31 21:17:40 UTC
SELinux is preventing systemd-readahe from 'write' accesses on the arquivo /usr/sbin/console-kit-daemon.

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

If you believe that systemd-readahe should be allowed write access on the console-kit-daemon 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:consolekit_exec_t:s0
Target Objects                /usr/sbin/console-kit-daemon [ file ]
Source                        systemd-readahe
Source Path                   systemd-readahe
Port                          <Desconhecido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           ConsoleKit-0.4.3-3.fc15
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux alessandra.sol
                              2.6.38-0.rc5.git1.1.fc15.x86_64 #1 SMP Thu Feb 17
                              01:49:02 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Qui 31 Mar 2011 17:49:32 BRT
Last Seen                     Qui 31 Mar 2011 17:49:32 BRT
Local ID                      e5986a76-2d91-40da-be96-2f3512c4dbbf

Raw Audit Messages
type=AVC msg=audit(1301604572.901:258): avc:  denied  { write } for  pid=408 comm="systemd-readahe" path="/usr/sbin/console-kit-daemon" dev=dm-1 ino=538135 scontext=system_u:system_r:readahead_t:s0 tcontext=system_u:object_r:consolekit_exec_t:s0 tclass=file


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

audit2allow

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

audit2allow -R

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

Comment 1 Daniel Walsh 2011-03-31 21:23:59 UTC
yum update