Bug 675435

Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'write' accesses on the directory /home/users/centaur.
Product: [Fedora] Fedora Reporter: Per Nystrom <centaur>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:1ae358bb25bba41df25ade48cf47812bd32ad21f40e13a99d3ad4bf459244d2c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-07 11:07: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:

Description Per Nystrom 2011-02-05 16:38:19 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from 'write' accesses on the directory /home/users/centaur.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to enable polyinstantiated directory support.
Then you must tell SELinux about this by enabling the 'allow_polyinstantiation' boolean.
Do
setsebool -P allow_polyinstantiation 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that gdm-session-worker should be allowed write access on the centaur 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 gdm-session-wor /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                /home/users/centaur [ dir ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-2.32.0-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-28.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23
                              16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   17
First Seen                    Thu 27 Jan 2011 09:55:28 AM PST
Last Seen                     Sat 05 Feb 2011 08:35:09 AM PST
Local ID                      a5903d2d-847f-4b85-a572-49f7c2ff35c0

Raw Audit Messages
type=AVC msg=audit(1296923709.79:39777): avc:  denied  { write } for  pid=5674 comm="gdm-session-wor" name="centaur" dev=dm-3 ino=57364 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1296923709.79:39777): arch=x86_64 syscall=open success=no exit=EACCES a0=b25200 a1=c2 a2=1b6 a3=5858585858582e63 items=0 ppid=5644 pid=5674 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=3 comm=gdm-session-wor exe=/usr/libexec/gdm-session-worker subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gdm-session-wor,xdm_t,user_home_t,dir,write

audit2allow

#============= xdm_t ==============
#!!!! This avc can be allowed using the boolean 'allow_polyinstantiation'

allow xdm_t user_home_t:dir write;

audit2allow -R

#============= xdm_t ==============
#!!!! This avc can be allowed using the boolean 'allow_polyinstantiation'

allow xdm_t user_home_t:dir write;

Comment 1 Miroslav Grepl 2011-02-07 11:07:48 UTC
You need to tell SELinux to label /home/users as /home using

# semanage fcontext -a -e /home /home/users
# restorecon -R -v  /home/users