Bug 722503

Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'write' accesses on the fifo_file /run/systemd/sessions/1.ref.
Product: [Fedora] Fedora Reporter: Jason D. Clinton <me>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl, nicolas.mailhot
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:89af4eb7963296a6ea8089c04017dafa0fb4ae447e9346b20fb01703c5545bd9
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-15 17:44:48 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 Jason D. Clinton 2011-07-15 14:42:39 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from 'write' accesses on the fifo_file /run/systemd/sessions/1.ref.

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

If you believe that gdm-session-worker should be allowed write access on the 1.ref fifo_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:init_var_run_t:s0
Target Objects                /run/systemd/sessions/1.ref [ fifo_file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-3.1.2-3.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-3.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              3.0-0.rc7.git0.1.fc16.x86_64 #1 SMP Tue Jul 12
                              12:57:40 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 15 Jul 2011 08:52:45 AM CDT
Last Seen                     Fri 15 Jul 2011 08:52:45 AM CDT
Local ID                      3a838c49-6748-4a87-ac7d-a1ce8745c980

Raw Audit Messages
type=AVC msg=audit(1310737965.847:62): avc:  denied  { write } for  pid=1395 comm="gdm-session-wor" path="/run/systemd/sessions/1.ref" dev=tmpfs ino=21630 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:init_var_run_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1310737965.847:62): arch=x86_64 syscall=recvmsg success=yes exit=156 a0=a a1=7ffff3ecdd50 a2=40000000 a3=0 items=0 ppid=1322 pid=1395 auid=500 uid=0 gid=501 euid=0 suid=0 fsuid=0 egid=501 sgid=501 fsgid=501 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)

Hash: gdm-session-wor,xdm_t,init_var_run_t,fifo_file,write

audit2allow

#============= xdm_t ==============
allow xdm_t init_var_run_t:fifo_file write;

audit2allow -R

#============= xdm_t ==============
allow xdm_t init_var_run_t:fifo_file write;

Comment 1 Daniel Walsh 2011-07-15 17:44:48 UTC
Fixed in selinux-policy-3.10.0-5.fc16