Bug 722500

Summary: SELinux is preventing dbus-daemon from 'write' accesses on the fifo_file /run/systemd/sessions/2.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, eblake, mgrepl, nicolas.mailhot
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:23b077a45f6c79f17ceded58ba1c866b21eeb22db5d183ca07cac0b5e11b73f2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-15 17:44:21 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:05 UTC
SELinux is preventing dbus-daemon from 'write' accesses on the fifo_file /run/systemd/sessions/2.ref.

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

If you believe that dbus-daemon should be allowed write access on the 2.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 dbus-daemon /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:init_var_run_t:s0
Target Objects                /run/systemd/sessions/2.ref [ fifo_file ]
Source                        dbus-daemon
Source Path                   dbus-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
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                   2
First Seen                    Fri 15 Jul 2011 08:52:45 AM CDT
Last Seen                     Fri 15 Jul 2011 09:01:01 AM CDT
Local ID                      752c0735-2b28-4080-b61c-d0a6d324e9f6

Raw Audit Messages
type=AVC msg=audit(1310738461.797:71): avc:  denied  { write } for  pid=1030 comm="dbus-daemon" path="/run/systemd/sessions/2.ref" dev=tmpfs ino=22496 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:init_var_run_t:s0 tclass=fifo_file


Hash: dbus-daemon,system_dbusd_t,init_var_run_t,fifo_file,write

audit2allow

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

audit2allow -R

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

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