Bug 675435 - SELinux is preventing /usr/libexec/gdm-session-worker from 'write' accesses on the directory /home/users/centaur.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'write' accesses o...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:1ae358bb25b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-05 16:38 UTC by Per Nystrom
Modified: 2011-02-07 11:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-07 11:07:48 UTC
Type: ---


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.