Bug 715157

Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'unlink' accesses on the file /home/Bruce/.dmrc.
Product: [Fedora] Fedora Reporter: Bruce Martin <brucemartin10>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, lucashby, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:4f2fd5a109192363cccfda1d0ebd4abb12ece546738d8593db7ba9bd1c836164
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-22 15:00:38 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:56:38 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from 'unlink' 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 unlink 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                   1
First Seen                    Tue 21 Jun 2011 11:50:07 PM EDT
Last Seen                     Tue 21 Jun 2011 11:50:07 PM EDT
Local ID                      37fad8ee-1a95-4c53-8650-98209ef56614

Raw Audit Messages
type=AVC msg=audit(1308714607.839:73578): avc:  denied  { unlink } for  pid=4672 comm="gdm-session-wor" name=".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:73578): arch=x86_64 syscall=rename success=no exit=EACCES a0=19d7840 a1=19d66f0 a2=1a32280 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,unlink

audit2allow

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

audit2allow -R

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

Comment 1 Daniel Walsh 2011-06-22 15:00:38 UTC

*** This bug has been marked as a duplicate of bug 715155 ***