Bug 1576603 - SELinux is preventing snapd from 'remove_name' accesses on the directory names.by1VJ714k18y~.
Summary: SELinux is preventing snapd from 'remove_name' accesses on the directory name...
Keywords:
Status: CLOSED ERRATA
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:f228ec4e54f99c61dd83d0b7a57...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-09 22:56 UTC by Rafael Machado
Modified: 2018-07-01 22:36 UTC (History)
8 users (show)

Fixed In Version: snapd-2.33.1-1.fc27 snapd-2.33.1-1.fc28
Clone Of:
Environment:
Last Closed: 2018-07-01 22:21:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rafael Machado 2018-05-09 22:56:55 UTC
Description of problem:
SELinux is preventing snapd from 'remove_name' accesses on the directory names.by1VJ714k18y~.

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

If you believe that snapd should be allowed remove_name access on the names.by1VJ714k18y~ 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:var_t:s0
Target Objects                names.by1VJ714k18y~ [ dir ]
Source                        snapd
Source Path                   snapd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-24.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.6-302.fc28.x86_64 #1 SMP Wed
                              May 2 00:07:06 UTC 2018 x86_64 x86_64
Alert Count                   13
First Seen                    2018-05-03 18:00:31 -03
Last Seen                     2018-05-09 19:55:14 -03
Local ID                      079f7ed5-d25c-4f30-bdee-73bb9a330c9a

Raw Audit Messages
type=AVC msg=audit(1525906514.465:282): avc:  denied  { remove_name } for  pid=3023 comm="snapd" name="names.by1VJ714k18y~" dev="dm-0" ino=1442000 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,remove_name

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

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

Potential duplicate: bug 1543378

Comment 1 Fedora Update System 2018-06-23 22:26:46 UTC
snapd-2.33.1-1.fc28 snapd-glib-1.41-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-942eec912c

Comment 2 Fedora Update System 2018-06-23 22:26:56 UTC
snapd-2.33.1-1.fc27 snapd-glib-1.41-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1330056acb

Comment 3 Fedora Update System 2018-07-01 22:21:37 UTC
snapd-2.33.1-1.fc27, snapd-glib-1.41-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2018-07-01 22:36:16 UTC
snapd-2.33.1-1.fc28, snapd-glib-1.41-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


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