Bug 1514805

Summary: SELinux is preventing snapd from 'read' accesses on the directory /lost+found.
Product: [Fedora] Fedora Reporter: Predrag <predrag.zvijerac>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:99e3b90ebf957646f6b8d6f981f8e4b9c8a91a756c6fdb013b882f5c9312ed0e;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-20 12:35:37 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 Predrag 2017-11-18 17:25:36 UTC
Description of problem:
SELinux is preventing snapd from 'read' accesses on the directory /lost+found.

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

If you believe that snapd should be allowed read access on the lost+found directory 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 'snapd' --raw | audit2allow -M my-snapd
# semodule -X 300 -i my-snapd.pp

Additional Information:
Source Context                system_u:system_r:snappy_t:s0
Target Context                system_u:object_r:lost_found_t:s0
Target Objects                /lost+found [ dir ]
Source                        snapd
Source Path                   snapd
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.13.12-300.fc27.x86_64 #1 SMP Wed
                              Nov 8 16:38:01 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-11-16 21:51:29 CET
Last Seen                     2017-11-16 21:51:29 CET
Local ID                      d6131151-2c20-4f19-a622-8aa2089d5850

Raw Audit Messages
type=AVC msg=audit(1510865489.438:3181): avc:  denied  { read } for  pid=2316 comm="snapd" name="lost+found" dev="dm-3" ino=11 scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:object_r:lost_found_t:s0 tclass=dir permissive=1


Hash: snapd,snappy_t,lost_found_t,dir,read


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.13.12-300.fc27.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2017-11-20 12:35:37 UTC

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