Bug 1731197

Summary: SELinux is preventing stroke from 'write' accesses on the fifo_file fifo_file.
Product: [Fedora] Fedora Reporter: Jakub Pisarczyk <pisarz77>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 30CC: dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7a69c252a57a477f572b8e27df73d8777446d64dcf01db26c47f300a0e97bf77;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.14.3-41.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-21 15:28:22 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 Jakub Pisarczyk 2019-07-18 15:13:07 UTC
Description of problem:
trying to connect with gnome network manager with l2tp. It happen after removing libreswan and installing strongswan
SELinux is preventing stroke from 'write' accesses on the fifo_file fifo_file.

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

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

Additional Information:
Source Context                system_u:system_r:ipsec_t:s0
Target Context                system_u:system_r:l2tpd_t:s0
Target Objects                fifo_file [ fifo_file ]
Source                        stroke
Source Path                   stroke
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.3-40.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.1.17-300.fc30.x86_64 #1 SMP Wed
                              Jul 10 15:20:27 UTC 2019 x86_64 x86_64
Alert Count                   3
First Seen                    2019-07-18 17:01:36 CEST
Last Seen                     2019-07-18 17:07:26 CEST
Local ID                      991cfd39-7d4f-4f63-a9e5-5475eb30b4aa

Raw Audit Messages
type=AVC msg=audit(1563462446.515:1387): avc:  denied  { write } for  pid=4436 comm="stroke" path="pipe:[438849]" dev="pipefs" ino=438849 scontext=system_u:system_r:ipsec_t:s0 tcontext=system_u:system_r:l2tpd_t:s0 tclass=fifo_file permissive=1


Hash: stroke,ipsec_t,l2tpd_t,fifo_file,write

Version-Release number of selected component:
selinux-policy-3.14.3-40.fc30.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.1.17-300.fc30.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-07-18 15:21:30 UTC
commit 284f16f52766e0877ffb804231134d45d31ed732 (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec>
Date:   Thu Jul 18 17:21:03 2019 +0200

    Allow ipsec_t domain to read/write  l2tpd pipe BZ(1731197)

Comment 2 Fedora Update System 2019-07-19 08:01:37 UTC
FEDORA-2019-b156bd756a has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b156bd756a

Comment 3 Fedora Update System 2019-07-20 00:59:58 UTC
selinux-policy-3.14.3-41.fc30 has been pushed to the Fedora 30 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-2019-b156bd756a

Comment 4 Fedora Update System 2019-07-21 15:28:22 UTC
selinux-policy-3.14.3-41.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.