Bug 1131183 - SELinux is preventing /usr/sbin/fping from 'read' accesses on the fifo_file fifo_file.
Summary: SELinux is preventing /usr/sbin/fping from 'read' accesses on the fifo_file f...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: smokeping
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Terje Røsten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e880b918a2d535cb988ea76db09...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-18 15:46 UTC by Jeff Raber
Modified: 2016-07-19 12:01 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 12:01:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
SELinux Policy file generated by audit2allow for Smokeping (976 bytes, text/plain)
2014-08-18 17:24 UTC, Jeff Raber
no flags Details

Description Jeff Raber 2014-08-18 15:46:40 UTC
Description of problem:
Update to selinux-policy-targeted-3.12.1-74.29.fc19.noarch.rpm
Switch to enforcing mode (setenforce 1)
Try to access smokeping page (http://127.0.0.1/smokeping/sm.cgi)
Page will show: 'Internal Server Error', AVC issued.
SELinux is preventing /usr/sbin/fping from 'read' accesses on the fifo_file fifo_file.

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

If you believe that fping should be allowed read 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 fping /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:ping_t:s0
Target Context                system_u:system_r:httpd_t:s0
Target Objects                fifo_file [ fifo_file ]
Source                        fping
Source Path                   /usr/sbin/fping
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           fping-3.5-3.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.29.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.8-100.fc19.x86_64 #1 SMP Mon
                              Jun 16 21:53:59 UTC 2014 x86_64 x86_64
Alert Count                   3
First Seen                    2014-08-18 10:33:05 CDT
Last Seen                     2014-08-18 10:33:05 CDT
Local ID                      00dc26ad-5367-4a4c-ac6f-5539b6a82656

Raw Audit Messages
type=AVC msg=audit(1408375985.414:11515): avc:  denied  { read } for  pid=20187 comm="fping" path="pipe:[10762467]" dev="pipefs" ino=10762467 scontext=system_u:system_r:ping_t:s0 tcontext=system_u:system_r:httpd_t:s0 tclass=fifo_file


type=AVC msg=audit(1408375985.414:11515): avc:  denied  { write } for  pid=20187 comm="fping" path="pipe:[10762468]" dev="pipefs" ino=10762468 scontext=system_u:system_r:ping_t:s0 tcontext=system_u:system_r:httpd_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1408375985.414:11515): arch=x86_64 syscall=execve success=yes exit=0 a0=32628f0 a1=30ee750 a2=1e91140 a3=8 items=0 ppid=20184 pid=20187 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=fping exe=/usr/sbin/fping subj=system_u:system_r:ping_t:s0 key=(null)

Hash: fping,ping_t,httpd_t,fifo_file,read

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.8-100.fc19.x86_64
type:           libreport

Comment 1 Jeff Raber 2014-08-18 17:24:55 UTC
Created attachment 927996 [details]
SELinux Policy file generated by audit2allow for Smokeping

Trying to be proactive here. 

I switched to Permissive mode, and temporarily disabled 'dontaudit'.  Connected the the smokeping page and browsed around a little, then used audit2allow to generate a policy for smokeping.

Attached is the policy created by 'grep smokeping /var/log/audit/audit.log | audit2allow -M mypol', which seems to make smokeping work for me while in Enforcing mode.

Comment 2 Miroslav Grepl 2014-08-19 14:02:19 UTC
This is a leak file descriptor.

Comment 3 Terje Røsten 2014-10-30 18:54:10 UTC
New release 2.6.10 built:

  http://koji.fedoraproject.org/koji/buildinfo?buildID=589182

Did this  improve things regarding SELinux?

Comment 4 Jeff Raber 2014-10-30 20:47:21 UTC
Just updated and it does not seem to have changed the behavior in any way.

Comment 5 Fedora End Of Life 2015-01-09 21:29:09 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Jaroslav Reznik 2015-03-03 16:13:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 7 Fedora End Of Life 2016-07-19 12:01:59 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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