Bug 672931

Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'create' accesses on the file .dmrc.G4PJPV.
Product: [Fedora] Fedora Reporter: Oleg Tsarev <oleg>
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, web582
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:de3b5416b5e0a8a7c5eef6c7f1cdc17a5057890f22a47a938ac2ace44f83b72b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-26 18:08:51 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 Oleg Tsarev 2011-01-26 17:57:31 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from 'create' accesses on the file .dmrc.G4PJPV.

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

If you believe that gdm-session-worker should be allowed create access on the .dmrc.G4PJPV 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                system_u:object_r:home_root_t:s0
Target Objects                .dmrc.G4PJPV [ file ]
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-20.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                   3
First Seen                    Tue 25 Jan 2011 10:04:54 AM CST
Last Seen                     Tue 25 Jan 2011 10:04:54 AM CST
Local ID                      9e11eb80-7077-4fd3-9e81-64c86066714d

Raw Audit Messages
type=AVC msg=audit(1295971494.552:20): avc:  denied  { create } for  pid=2029 comm="gdm-session-wor" name=".dmrc.G4PJPV" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=file

gdm-session-wor,xdm_t,home_root_t,file,create
type=SYSCALL msg=audit(1295971494.552:20): arch=x86_64 syscall=open success=no exit=EACCES a0=1908550 a1=c2 a2=1b6 a3=0 items=0 ppid=1951 pid=2029 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=gdm-session-wor exe=/usr/libexec/gdm-session-worker subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
gdm-session-wor,xdm_t,home_root_t,file,create

#============= xdm_t ==============
#!!!! This avc is allowed in the current policy

allow xdm_t home_root_t:file create;

Comment 1 Daniel Walsh 2011-01-26 18:08:51 UTC
This looks like your home directories are mislabeled.

restorecon -R -v /home