Bug 1763877

Summary: SELinux is preventing restorecon from 'read' accesses on the fifo_file fifo_file.
Product: [Fedora] Fedora Reporter: Dmitriy Braginets <zp.babu>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 31CC: dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f6977d1eed5cd1866c54806a1e9546bcbe3825d4cab3d08d35d61474ce146dce;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-23 11:40:46 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 Dmitriy Braginets 2019-10-21 19:44:26 UTC
Description of problem:
It's happen every boot
SELinux is preventing restorecon from 'read' accesses on the fifo_file fifo_file.

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

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

Additional Information:
Source Context                system_u:system_r:setfiles_t:s0
Target Context                system_u:system_r:unconfined_service_t:s0
Target Objects                fifo_file [ fifo_file ]
Source                        restorecon
Source Path                   restorecon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.4-37.fc31.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.3.5-300.fc31.x86_64 #1 SMP Tue
                              Oct 8 13:07:42 UTC 2019 x86_64 x86_64
Alert Count                   5
First Seen                    2019-10-21 22:39:01 EEST
Last Seen                     2019-10-21 22:39:01 EEST
Local ID                      e27cb36b-46d8-43b6-9243-1c7f244282c6

Raw Audit Messages
type=AVC msg=audit(1571686741.379:391): avc:  denied  { read } for  pid=5088 comm="restorecon" path="pipe:[123347]" dev="pipefs" ino=123347 scontext=system_u:system_r:setfiles_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=fifo_file permissive=0


Hash: restorecon,setfiles_t,unconfined_service_t,fifo_file,read

Version-Release number of selected component:
selinux-policy-3.14.4-37.fc31.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.11.1
hashmarkername: setroubleshoot
kernel:         5.3.5-300.fc31.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-10-22 19:17:45 UTC
Hi Dmitriy, 

Do you see also some functionality issues or just see the SELinux denial? 

Thanks,
Lukas.

Comment 2 Dmitriy Braginets 2019-10-23 06:25:34 UTC
(In reply to Lukas Vrabec from comment #1)
> Hi Dmitriy, 
> 
> Do you see also some functionality issues or just see the SELinux denial? 
> 
> Thanks,
> Lukas.

Hi!

I didn't see any functionality issues. Only SELinux alert.

Comment 3 Lukas Vrabec 2019-10-23 11:40:46 UTC

*** This bug has been marked as a duplicate of bug 1754219 ***