Bug 722503 - SELinux is preventing /usr/libexec/gdm-session-worker from 'write' accesses on the fifo_file /run/systemd/sessions/1.ref.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'write' accesses o...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:89af4eb7963...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-15 14:42 UTC by Jason D. Clinton
Modified: 2011-07-18 18:03 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-15 17:44:48 UTC
Type: ---


Attachments (Terms of Use)

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


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