Bug 749829

Summary: SELinux is preventing plymouthd from 'search' accesses on the directory 1277.
Product: [Fedora] Fedora Reporter: Jim Walden <kb6tal>
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: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:55d0e731390363d458fecfc2de6d814a7361d66df8ec76577a9083e0693f1593
Fixed In Version: selinux-policy-3.9.16-48.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-04 02:38:15 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 Jim Walden 2011-10-28 16:19:07 UTC
SELinux is preventing plymouthd from 'search' accesses on the directory 1277.

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

If you believe that plymouthd should be allowed search access on the 1277 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:system_r:xdm_t:s0-s0:c0.c1023
Target Objects                1277 [ dir ]
Source                        plymouthd
Source Path                   plymouthd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-39.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.6-0.fc15.i686.PAE #1 SMP Tue
                              Oct 4 00:44:38 UTC 2011 i686 i686
Alert Count                   3
First Seen                    Fri 21 Oct 2011 07:03:20 PM MST
Last Seen                     Fri 21 Oct 2011 07:03:22 PM MST
Local ID                      1cca9a5b-a9ed-4f9e-b1cc-98af60d77b81

Raw Audit Messages
type=AVC msg=audit(1319249002.835:38): avc:  denied  { search } for  pid=837 comm="plymouthd" name="1277" dev=proc ino=18198 scontext=system_u:system_r:plymouthd_t:s0 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=dir


Hash: plymouthd,plymouthd_t,xdm_t,dir,search

audit2allow

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

audit2allow -R

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

Comment 1 Miroslav Grepl 2011-10-31 11:18:36 UTC
Fixed in selinux-policy-3.10.0-53.fc16

Comment 2 Fedora Update System 2011-11-16 16:19:53 UTC
selinux-policy-3.9.16-48.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-48.fc15

Comment 3 Fedora Update System 2011-11-17 23:38:17 UTC
Package selinux-policy-3.9.16-48.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-48.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16023/selinux-policy-3.9.16-48.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-12-04 02:38:15 UTC
selinux-policy-3.9.16-48.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.