Bug 672931 - SELinux is preventing /usr/libexec/gdm-session-worker from 'create' accesses on the file .dmrc.G4PJPV.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'create' accesses ...
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:de3b5416b5e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-26 17:57 UTC by Oleg Tsarev
Modified: 2011-02-04 11:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-26 18:08:51 UTC
Type: ---


Attachments (Terms of Use)

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


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