Bug 1185577 - SELinux is preventing /usr/sbin/load_policy from 'write' accesses on the fifo_file fifo_file.
Summary: SELinux is preventing /usr/sbin/load_policy from 'write' accesses on the fifo...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a490dd60c22ee78695573ebe3c1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-24 22:02 UTC by Adam Williamson
Modified: 2015-02-20 09:14 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-113.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-20 09:14:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2015-01-24 22:02:51 UTC
Description of problem:
Saw on resume of a system running today's Rawhide.
SELinux is preventing /usr/sbin/load_policy from 'write' accesses on the fifo_file fifo_file.

*****  Plugin leaks (86.2 confidence) suggests   *****************************

If you want to ignore load_policy trying to write access the fifo_file fifo_file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/sbin/load_policy /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (14.7 confidence) suggests   **************************

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

Additional Information:
Source Context                system_u:system_r:load_policy_t:s0
Target Context                system_u:system_r:sssd_t:s0
Target Objects                fifo_file [ fifo_file ]
Source                        load_policy
Source Path                   /usr/sbin/load_policy
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           policycoreutils-2.3-14.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-104.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              3.19.0-0.rc5.git2.1.1aw.fc22.x86_64 #1 SMP Fri Jan
                              23 00:36:00 UTC 2015 x86_64 x86_64
Alert Count                   46
First Seen                    2015-01-12 18:00:28 PST
Last Seen                     2015-01-24 14:02:08 PST
Local ID                      4d17b490-bad0-4067-9a83-5d990b617cac

Raw Audit Messages
type=AVC msg=audit(1422136928.120:748): avc:  denied  { write } for  pid=5104 comm="load_policy" path="pipe:[126315]" dev="pipefs" ino=126315 scontext=system_u:system_r:load_policy_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=fifo_file permissive=0


type=AVC msg=audit(1422136928.120:748): avc:  denied  { read } for  pid=5104 comm="load_policy" path="pipe:[16336]" dev="pipefs" ino=16336 scontext=system_u:system_r:load_policy_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=fifo_file permissive=0


type=AVC msg=audit(1422136928.120:748): avc:  denied  { write } for  pid=5104 comm="load_policy" path="pipe:[16336]" dev="pipefs" ino=16336 scontext=system_u:system_r:load_policy_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=fifo_file permissive=0


type=AVC msg=audit(1422136928.120:748): avc:  denied  { read } for  pid=5104 comm="load_policy" path="pipe:[21606]" dev="pipefs" ino=21606 scontext=system_u:system_r:load_policy_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=fifo_file permissive=0


type=AVC msg=audit(1422136928.120:748): avc:  denied  { write } for  pid=5104 comm="load_policy" path="pipe:[21606]" dev="pipefs" ino=21606 scontext=system_u:system_r:load_policy_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=fifo_file permissive=0


type=AVC msg=audit(1422136928.120:748): avc:  denied  { write } for  pid=5104 comm="load_policy" path="pipe:[126315]" dev="pipefs" ino=126315 scontext=system_u:system_r:load_policy_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=fifo_file permissive=0


type=AVC msg=audit(1422136928.120:748): avc:  denied  { read } for  pid=5104 comm="load_policy" path="pipe:[126316]" dev="pipefs" ino=126316 scontext=system_u:system_r:load_policy_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=fifo_file permissive=0


type=SYSCALL msg=audit(1422136928.120:748): arch=x86_64 syscall=execve success=yes exit=0 a0=7f6f5a76a040 a1=7f6f5b411b80 a2=0 a3=58c items=0 ppid=5103 pid=5104 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=load_policy exe=/usr/sbin/load_policy subj=system_u:system_r:load_policy_t:s0 key=(null)

Hash: load_policy,load_policy_t,sssd_t,fifo_file,write

Version-Release number of selected component:
selinux-policy-3.13.1-104.fc22.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.19.0-0.rc5.git2.1.1aw.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2015-02-20 09:14:22 UTC
commit dcc509c96231e46dba0e9e04d2b4c601f5f12161
Author: Miroslav Grepl <mgrepl>
Date:   Tue Dec 2 15:11:42 2014 +0100

    Allow load_policy to rw inherited sssd pipes because of selinux_child.


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