Bug 1007270

Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'getattr' accesses on the file /run/mount/utab.
Product: [Fedora] Fedora Reporter: Milan Kerslager <milan.kerslager>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8e6624f0d6b27a8afceb07d6ee37c40c7406e939e4dea10253bc600865c7f473
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-12 09:36:34 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 Milan Kerslager 2013-09-12 08:21:23 UTC
Description of problem:
Normal GUI use.
SELinux is preventing /usr/libexec/gdm-session-worker from 'getattr' accesses on the file /run/mount/utab.

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

If you believe that gdm-session-worker should be allowed getattr access on the utab 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:mount_var_run_t:s0
Target Objects                /run/mount/utab [ file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           gdm-3.8.4-2.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.1.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.10.10-200.fc19.x86_64 #1 SMP Thu
                              Aug 29 19:05:45 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-09-10 13:57:52 CEST
Last Seen                     2013-09-10 13:58:25 CEST
Local ID                      72694dbf-5935-41f7-9c97-748916f2762d

Raw Audit Messages
type=AVC msg=audit(1378814305.173:453): avc:  denied  { getattr } for  pid=1673 comm="gdm-session-wor" path="/run/mount/utab" dev="tmpfs" ino=7446 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mount_var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1378814305.173:453): arch=x86_64 syscall=lstat success=yes exit=0 a0=7f98a9f881fe a1=7fffdad1c760 a2=7fffdad1c760 a3=0 items=0 ppid=1354 pid=1673 auid=500 uid=0 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 ses=1 tty=(none) 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,mount_var_run_t,file,getattr

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.10-200.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-09-12 09:36:34 UTC

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