Bug 715155

Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'getattr' accesses on the file /home/Bruce/.dmrc.
Product: [Fedora] Fedora Reporter: Bruce Martin <brucemartin10>
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: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:015b5841f7af461ab9290565ce4e9aaec20f41a8d71250a3bb90e561d24a4c7b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-22 15:00:01 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 Bruce Martin 2011-06-22 03:53:44 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from 'getattr' accesses on the file /home/Bruce/.dmrc.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/home/Bruce/.dmrc default label should be xdm_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/Bruce/.dmrc

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that gdm-session-worker should be allowed getattr access on the .dmrc 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 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_dir_t:s0
Target Objects                /home/Bruce/.dmrc [ file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-2.32.1-2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.13-92.fc14.x86_64 #1 SMP Sat May 21
                              17:26:25 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Tue 21 Jun 2011 11:49:52 PM EDT
Last Seen                     Tue 21 Jun 2011 11:50:07 PM EDT
Local ID                      20bcfab1-af25-4c28-a633-d8940568ff85

Raw Audit Messages
type=AVC msg=audit(1308714607.839:73579): avc:  denied  { getattr } for  pid=4672 comm="gdm-session-wor" path="/home/Bruce/.dmrc" dev=dm-2 ino=3672975 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=SYSCALL msg=audit(1308714607.839:73579): arch=x86_64 syscall=stat success=no exit=EACCES a0=1a30720 a1=7fff474e06c0 a2=7fff474e06c0 a3=1 items=0 ppid=4642 pid=4672 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4 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_dir_t,file,getattr

audit2allow

#============= xdm_t ==============
allow xdm_t user_home_dir_t:file getattr;

audit2allow -R

#============= xdm_t ==============
allow xdm_t user_home_dir_t:file getattr;

Comment 1 Daniel Walsh 2011-06-22 15:00:01 UTC
restorecon -R -v /home

You have a labeling issue.

Comment 2 Daniel Walsh 2011-06-22 15:00:23 UTC
*** Bug 715156 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2011-06-22 15:00:38 UTC
*** Bug 715157 has been marked as a duplicate of this bug. ***