Bug 1194478 - 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 ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
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-02-19 22:47 UTC by Adam Williamson
Modified: 2015-03-09 08:29 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-114.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-09 08:29:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2015-02-19 22:47:24 UTC
Description of problem:
Just appeared on boot of today's F22.
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-15.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-112.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.20.0-0.rc0.git7.2.fc23.x86_64 #1
                              SMP Tue Feb 17 16:52:19 UTC 2015 x86_64 x86_64
Alert Count                   202
First Seen                    2015-01-12 18:00:28 PST
Last Seen                     2015-02-19 14:46:47 PST
Local ID                      4d17b490-bad0-4067-9a83-5d990b617cac

Raw Audit Messages
type=AVC msg=audit(1424386007.808:728): avc:  denied  { write } for  pid=3481 comm="load_policy" path="pipe:[61012]" dev="pipefs" ino=61012 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(1424386007.808:728): avc:  denied  { read } for  pid=3481 comm="load_policy" path="pipe:[16122]" dev="pipefs" ino=16122 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(1424386007.808:728): avc:  denied  { write } for  pid=3481 comm="load_policy" path="pipe:[16122]" dev="pipefs" ino=16122 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(1424386007.808:728): avc:  denied  { read } for  pid=3481 comm="load_policy" path="pipe:[18162]" dev="pipefs" ino=18162 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(1424386007.808:728): avc:  denied  { write } for  pid=3481 comm="load_policy" path="pipe:[18162]" dev="pipefs" ino=18162 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(1424386007.808:728): avc:  denied  { write } for  pid=3481 comm="load_policy" path="pipe:[61012]" dev="pipefs" ino=61012 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(1424386007.808:728): avc:  denied  { read } for  pid=3481 comm="load_policy" path="pipe:[61013]" dev="pipefs" ino=61013 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(1424386007.808:728): arch=x86_64 syscall=execve success=yes exit=0 a0=7f3758f53040 a1=7f3759c00de0 a2=0 a3=58c items=0 ppid=3480 pid=3481 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-112.fc22.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.20.0-0.rc0.git7.2.fc23.x86_64
type:           libreport

Potential duplicate: bug 1185577

Comment 1 Miroslav Grepl 2015-02-20 09:14:05 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.

Comment 2 Fedora Update System 2015-02-25 19:07:01 UTC
selinux-policy-3.13.1-114.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-114.fc22

Comment 3 Fedora Update System 2015-02-26 17:42:24 UTC
Package selinux-policy-3.13.1-114.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-114.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2668/selinux-policy-3.13.1-114.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-03-09 08:29:09 UTC
selinux-policy-3.13.1-114.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


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