Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1599204 - SELinux is preventing snapd from 'write' accesses on the dossier /var/cache/snapd.
Summary: SELinux is preventing snapd from 'write' accesses on the dossier /var/cache/s...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: snapd
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zygmunt Krynicki
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:818b2010bcea9f69b3ba0f79b06...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-09 08:21 UTC by Arthur S.
Modified: 2018-09-21 22:21 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Arthur S. 2018-07-09 08:21:31 UTC
Description of problem:
SELinux is preventing snapd from 'write' accesses on the dossier /var/cache/snapd.

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

Si vous pensez que snapd devrait être autorisé à accéder write sur snapd directory par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# 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:var_t:s0
Target Objects                /var/cache/snapd [ dir ]
Source                        snapd
Source Path                   snapd
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           snapd-2.32.4-1.fc28.x86_64
Policy RPM                    selinux-policy-3.14.1-32.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.17.2-200.fc28.x86_64 #1 SMP Mon
                              Jun 18 20:09:31 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-07-06 17:08:14 CEST
Last Seen                     2018-07-06 17:08:14 CEST
Local ID                      fdf9904a-84df-40d9-ad54-bc414d9d6636

Raw Audit Messages
type=AVC msg=audit(1530889694.350:435): avc:  denied  { write } for  pid=10146 comm="snapd" name="snapd" dev="sda5" ino=6557391 scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=dir permissive=1


Hash: snapd,snappy_t,var_t,dir,write

Version-Release number of selected component:
selinux-policy-3.14.1-32.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.17.3-200.fc28.x86_64
type:           libreport

Potential duplicate: bug 1520031


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