Bug 1398869

Summary: SELinux is preventing systemd from 'unlink' accesses on the file httpd_lua_shm.910.
Product: [Fedora] Fedora Reporter: Nivag <gavinflower>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f5192e1e2decb305c614d4ebd6a1554643f061bc5aee024d37ec2e41584ebb3c;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-30 13:16:12 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 Nivag 2016-11-26 21:06:50 UTC
Description of problem:
just issues systemctl stop httpd.service 
and just after it returned, the error was reported
SELinux is preventing systemd from 'unlink' accesses on the file httpd_lua_shm.910.

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

If you believe that systemd should be allowed unlink access on the httpd_lua_shm.910 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 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:httpd_tmp_t:s0
Target Objects                httpd_lua_shm.910 [ file ]
Source                        systemd
Source Path                   systemd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.9.0-0.rc6.git2.1.fc26.x86_64 #1
                              SMP Wed Nov 23 16:51:44 UTC 2016 x86_64 x86_64
Alert Count                   3
First Seen                    2016-11-16 18:30:51 NZDT
Last Seen                     2016-11-27 10:04:37 NZDT
Local ID                      afa767c7-42fa-4e2f-8270-d52f4d254660

Raw Audit Messages
type=AVC msg=audit(1480194277.971:251): avc:  denied  { unlink } for  pid=1 comm="systemd" name="httpd_lua_shm.910" dev="tmpfs" ino=21017 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:httpd_tmp_t:s0 tclass=file permissive=0


Hash: systemd,init_t,httpd_tmp_t,file,unlink


Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.9.0-0.rc6.git2.1.fc26.x86_64
type:           libreport

Potential duplicate: bug 1380931

Comment 1 Lukas Vrabec 2016-11-30 13:16:12 UTC

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