Bug 1514811 - SELinux is preventing snapd from 'read' accesses on the directory /etc/pki/tls/certs.
Summary: SELinux is preventing snapd from 'read' accesses on the directory /etc/pki/tl...
Keywords:
Status: CLOSED DUPLICATE of bug 1514800
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:340bcbe02d3e5663b010844e472...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-18 17:29 UTC by Predrag
Modified: 2019-04-29 09:17 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-20 12:36:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Predrag 2017-11-18 17:29:16 UTC
Description of problem:
SELinux is preventing snapd from 'read' accesses on the directory /etc/pki/tls/certs.

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

If you believe that snapd should be allowed read access on the certs 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:cert_t:s0
Target Objects                /etc/pki/tls/certs [ 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:44 CET
Last Seen                     2017-11-16 21:51:44 CET
Local ID                      2dc519ae-8f68-4207-9e3d-10db5a905617

Raw Audit Messages
type=AVC msg=audit(1510865504.778:3467): avc:  denied  { read } for  pid=5001 comm="snapd" name="certs" dev="dm-1" ino=1966809 scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=dir permissive=1


Hash: snapd,snappy_t,cert_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:36:23 UTC

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

Comment 2 Anatoli Babenia 2018-03-13 13:57:27 UTC
I am not sure this is a duplicate. Can you expand more on this specific message - why /etc/pki/tls/certs should not be readable?


Note You need to log in before you can comment on or make changes to this bug.