Bug 1367670

Summary: SELinux is preventing restorecon from 'write' accesses on the fifo_file /var/tmp/dracut.c9KOpH/systemd-cat.
Product: [Fedora] Fedora Reporter: Hubert Kario <hkario>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: bugzilla, dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:13e9b4f47ae3f5c3fa7c567e7bce3510e3660d12cffb74fbc9eff0890210b334;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-23 15:03:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Hubert Kario 2016-08-17 07:58:29 UTC
Description of problem:
SELinux is preventing restorecon from 'write' accesses on the fifo_file /var/tmp/dracut.c9KOpH/systemd-cat.

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

If you believe that restorecon should be allowed write access on the systemd-cat 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:object_r:kdumpctl_tmp_t:s0
Target Objects                /var/tmp/dracut.c9KOpH/systemd-cat [ fifo_file ]
Source                        restorecon
Source Path                   restorecon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-191.10.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.6.6-300.fc24.x86_64 #1 SMP Wed
                              Aug 10 21:07:35 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-08-09 23:30:59 CEST
Last Seen                     2016-08-17 09:56:49 CEST
Local ID                      dca8d7a0-f18a-4261-ba8a-1a6fc19a983e

Raw Audit Messages
type=AVC msg=audit(1471420609.974:240): avc:  denied  { write } for  pid=21633 comm="restorecon" path="/var/tmp/dracut.c9KOpH/systemd-cat" dev="dm-2" ino=604750 scontext=system_u:system_r:setfiles_t:s0 tcontext=system_u:object_r:kdumpctl_tmp_t:s0 tclass=fifo_file permissive=1


Hash: restorecon,setfiles_t,kdumpctl_tmp_t,fifo_file,write

Version-Release number of selected component:
selinux-policy-3.13.1-191.10.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.6.6-300.fc24.x86_64
type:           libreport

Potential duplicate: bug 1311534

Comment 1 Lukas Vrabec 2016-08-23 15:03:57 UTC

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