Bug 671048

Summary: SELinux is preventing /usr/libexec/gdm-session-worker from read, write access on the directory /root.
Product: [Fedora] Fedora Reporter: kang.junghan
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, kang.junghan, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:8cce07b188420b28afd90172ebf52e5fe7a97e4564c2410db0a9f48a8261cc5d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-20 09:03:17 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 kang.junghan 2011-01-20 03:09:09 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from read, write access on the directory /root.

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

If you believe that gdm-session-worker should be allowed read write access on the root directory 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:admin_home_t:s0
Target Objects                /root [ dir ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <알려지지 않음>
Host                          (removed)
Source RPM Packages           gdm-2.32.0-1.fc14
Target RPM Packages           filesystem-2.4.35-1.fc14
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.i686 #1 SMP Thu
                              Dec 23 16:17:40 UTC 2010 i686 i686
Alert Count                   2
First Seen                    2011년 01월 20일 (목) 오후 11시 21분 47초
Last Seen                     2011년 01월 21일 (금) 오전 12시 08분 32초
Local ID                      f8e6bb0e-d7a1-4deb-a991-63b371c9db09

Raw Audit Messages
type=AVC msg=audit(1295536112.403:70): avc:  denied  { read write } for  pid=5529 comm="gdm-session-wor" name="root" dev=sda2 ino=307 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir

gdm-session-wor,xdm_t,admin_home_t,dir,read,write
type=SYSCALL msg=audit(1295536112.403:70): arch=i386 syscall=access success=no exit=EACCES a0=a04cf80 a1=7 a2=59f27c a3=a0aab08 items=0 ppid=5511 pid=5529 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 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,admin_home_t,dir,read,write

#============= xdm_t ==============
#!!!! The source type 'xdm_t' can write to a 'dir' of the following types:
# pcscd_var_run_t, xkb_var_lib_t, xdm_rw_etc_t, xdm_home_t, pam_var_console_t, cgroup_t, var_lock_t, root_t, tmp_t, var_t, user_home_dir_t, locale_t, var_auth_t, user_fonts_t, user_tmpfs_t, xdm_spool_t, tmpfs_t, fonts_cache_t, user_tmp_t, auth_cache_t, xdm_tmpfs_t, var_spool_t, var_lib_t, var_run_t, xdm_tmp_t, xserver_log_t, var_log_t, xdm_log_t, gnome_home_type, pam_var_run_t, xdm_var_lib_t, xdm_var_run_t, gconf_home_t

allow xdm_t admin_home_t:dir { read write };

Comment 1 Miroslav Grepl 2011-01-20 09:03:17 UTC

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