Bug 700982 - SELinux is preventing /usr/libexec/gdm-session-worker from 'read' accesses on the fichier /home/Ymreth/.dmrc.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'read' accesses on...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:f602f5c7119...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-30 09:28 UTC by Willy Lellouch
Modified: 2011-06-22 03:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-02 10:21:45 UTC
Type: ---


Attachments (Terms of Use)

Description Willy Lellouch 2011-04-30 09:28:41 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from 'read' accesses on the fichier /home/Ymreth/.dmrc.

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

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

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

If you believe that gdm-session-worker should be allowed read 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/Ymreth/.dmrc [ file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Inconnu>
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 SAM-9000 2.6.35.12-90.fc14.i686 #1 SMP Fri
                              Apr 22 16:14:44 UTC 2011 i686 i686
Alert Count                   1
First Seen                    sam. 30 avril 2011 11:20:36 CEST
Last Seen                     sam. 30 avril 2011 11:20:36 CEST
Local ID                      7b785d1a-5c2d-4a2d-ac22-aec8849cd08c

Raw Audit Messages
type=AVC msg=audit(1304155236.701:22739): avc:  denied  { read } for  pid=3116 comm="gdm-session-wor" name=".dmrc" dev=dm-2 ino=15204935 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(1304155236.701:22739): arch=i386 syscall=open success=no exit=EACCES a0=8d03388 a1=8000 a2=0 a3=8c95640 items=0 ppid=3097 pid=3116 auid=500 uid=500 gid=0 euid=500 suid=500 fsuid=500 egid=0 sgid=0 fsgid=0 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,read

audit2allow

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

audit2allow -R

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

Comment 1 Miroslav Grepl 2011-05-02 10:21:45 UTC
*****  Plugin restorecon (99.5 confidence) suggests  *************************

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


Please reopen if this happens again.


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