Bug 1379866

Summary: SELinux is preventing memfd_test from 'create' accesses on the file 3.
Product: [Fedora] Fedora Reporter: Nivag <gavinflower>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9e89451de7fec3c261eb97a958a5d43ea22f73b1848cd8a0e243639d267bb412;
Fixed In Version: selinux-policy-3.13.1-191.16.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-29 12:59:21 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-09-27 23:44:11 UTC
Description of problem:
SELinux is preventing memfd_test from 'create' accesses on the file 3.

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

If you believe that memfd_test should be allowed create access on the 3 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 'memfd_test' --raw | audit2allow -M my-memfdtest
# semodule -X 300 -i my-memfdtest.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:object_r:unconfined_t:s0
Target Objects                3 [ file ]
Source                        memfd_test
Source Path                   memfd_test
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.7.4-200.fc24.x86_64 #1 SMP Thu
                              Sep 15 18:42:09 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-09-20 09:51:19 NZST
Last Seen                     2016-09-20 09:51:19 NZST
Local ID                      5b469575-60a2-4e62-ad1a-ccd62887f087

Raw Audit Messages
type=AVC msg=audit(1474321879.752:1278): avc:  denied  { create } for  pid=8164 comm="memfd_test" name="3" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0


Hash: memfd_test,unconfined_t,unconfined_t,file,create


Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.7.4-200.fc24.x86_64
type:           libreport