Bug 1458590

Summary: SELinux is preventing httpd from 'open' accesses on the fifo_file fifo_file.
Product: [Fedora] Fedora Reporter: Mike Goodwin <mike>
Component: container-selinuxAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: amurdaca, dominick.grift, dwalsh, fkluknav, jchaloup, jlebon, lsm5, lvrabec, mgrepl, plautrba, pmoore, ssekidde, tn
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8a5bf8b33be52224c3169a73d3803c1ce79dbbde0540cbbed82e8f65b94dd172;
Fixed In Version: container-selinux-2.18-1.fc26 container-selinux-2.18-1.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-13 13:35:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike Goodwin 2017-06-04 16:13:18 UTC
Description of problem:
`docker run httpd` 

Trying to run official docker container for apache. Same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1456963
SELinux is preventing httpd from 'open' accesses on the fifo_file fifo_file.

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

If you believe that httpd should be allowed open 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:
# ausearch -c 'httpd' --raw | audit2allow -M my-httpd
# semodule -X 300 -i my-httpd.pp

Additional Information:
Source Context                system_u:system_r:container_t:s0:c787,c949
Target Context                system_u:system_r:container_runtime_t:s0-s0:c0.c10
                              23
Target Objects                fifo_file [ fifo_file ]
Source                        httpd
Source Path                   httpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.16.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.3-200.fc25.x86_64 #1 SMP Thu
                              May 25 19:03:07 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-06-04 12:11:56 EDT
Last Seen                     2017-06-04 12:11:56 EDT
Local ID                      bf3d995f-8be2-47b5-8682-6e4ddf172082

Raw Audit Messages
type=AVC msg=audit(1496592716.733:11405): avc:  denied  { open } for  pid=3145 comm="httpd" path="pipe:[6674380]" dev="pipefs" ino=6674380 scontext=system_u:system_r:container_t:s0:c787,c949 tcontext=system_u:system_r:container_runtime_t:s0-s0:c0.c1023 tclass=fifo_file permissive=0


Hash: httpd,container_t,container_runtime_t,fifo_file,open

Version-Release number of selected component:
selinux-policy-3.13.1-225.16.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.3-200.fc25.x86_64
type:           libreport

Comment 1 Fedora Update System 2017-06-06 12:57:49 UTC
container-selinux-2.17-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-483d4b64eb

Comment 2 Fedora Update System 2017-06-06 12:58:16 UTC
container-selinux-2.17-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6d722cd191

Comment 3 Fedora Update System 2017-06-06 19:05:52 UTC
container-selinux-2.17-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6d722cd191

Comment 4 Fedora Update System 2017-06-06 20:58:41 UTC
container-selinux-2.18-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-78ffa38344

Comment 5 Fedora Update System 2017-06-06 20:59:08 UTC
container-selinux-2.18-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e756e8fdde

Comment 6 Fedora Update System 2017-06-07 07:34:59 UTC
container-selinux-2.18-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-78ffa38344

Comment 7 Fedora Update System 2017-06-07 23:10:50 UTC
container-selinux-2.18-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e756e8fdde

Comment 8 Fedora Update System 2017-06-13 13:35:27 UTC
container-selinux-2.18-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2017-06-15 09:23:15 UTC
container-selinux-2.18-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.