Bug 693912

Summary: SELinux is preventing /sbin/plymouthd from 'search' accesses on the diretório run.
Product: [Fedora] Fedora Reporter: Cássio Magno <kenmatrix>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA 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:0ceb16cb2224f34d6242c25062e22695dc7a27ae98f5aeb172bcf022ca55dada
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-06 07:58:39 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 Cássio Magno 2011-04-05 21:41:25 UTC
SELinux is preventing /sbin/plymouthd from 'search' accesses on the diretório run.

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

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

Additional Information:
Source Context                system_u:system_r:plymouthd_t:s0
Target Context                system_u:object_r:etc_runtime_t:s0
Target Objects                run [ dir ]
Source                        plymouthd
Source Path                   /sbin/plymouthd
Port                          <Desconhecido>
Host                          (removed)
Source RPM Packages           plymouth-0.8.4-0.20110209.2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              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                    Ter 05 Abr 2011 14:44:10 BRT
Last Seen                     Ter 05 Abr 2011 14:44:10 BRT
Local ID                      151db31e-3d26-4dbb-b16e-4a24b8c9ea1e

Raw Audit Messages
type=AVC msg=audit(1302025450.142:491): avc:  denied  { search } for  pid=2507 comm="plymouthd" name="run" dev=sda3 ino=4194305 scontext=system_u:system_r:plymouthd_t:s0 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=dir


type=SYSCALL msg=audit(1302025450.142:491): arch=x86_64 syscall=open success=no exit=EACCES a0=e05930 a1=241 a2=1b6 a3=7fff095ede00 items=0 ppid=1 pid=2507 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=plymouthd exe=/sbin/plymouthd subj=system_u:system_r:plymouthd_t:s0 key=(null)

Hash: plymouthd,plymouthd_t,etc_runtime_t,dir,search

audit2allow

#============= plymouthd_t ==============
allow plymouthd_t etc_runtime_t:dir search;

audit2allow -R

#============= plymouthd_t ==============
allow plymouthd_t etc_runtime_t:dir search;

Comment 1 Miroslav Grepl 2011-04-06 07:58:39 UTC
Please update your system.