Bug 1578982 - SELinux is preventing cp from 'create' accesses on the directory 62.
Summary: SELinux is preventing cp from 'create' accesses on the directory 62.
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:5b1e4a5163ec5f5c8df293d0a1d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-16 17:52 UTC by Mohamed Ramadan
Modified: 2018-09-18 13:21 UTC (History)
9 users (show)

Fixed In Version: snapd-2.35-1.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-18 06:20:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mohamed Ramadan 2018-05-16 17:52:10 UTC
Description of problem:
SELinux is preventing cp from 'create' accesses on the directory 62.

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

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

Additional Information:
Source Context                system_u:system_r:snappy_t:s0
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                62 [ dir ]
Source                        cp
Source Path                   cp
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.16.8-300.fc28.x86_64 #1 SMP Wed
                              May 9 20:23:40 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-05-16 19:49:14 EET
Last Seen                     2018-05-16 19:49:14 EET
Local ID                      2eabf6e3-1c5d-4243-9927-4b0494b9933b

Raw Audit Messages
type=AVC msg=audit(1526492954.885:971): avc:  denied  { create } for  pid=17058 comm="cp" name="62" scontext=system_u:system_r:snappy_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir permissive=1


Hash: cp,snappy_t,user_home_t,dir,create


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

Comment 1 Fedora Update System 2018-09-09 06:33:24 UTC
snapd-2.35-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d6660293c6

Comment 2 Fedora Update System 2018-09-09 20:23:11 UTC
snapd-2.35-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d6660293c6

Comment 3 Fedora Update System 2018-09-18 06:20:26 UTC
snapd-2.35-1.fc29 has been pushed to the Fedora 29 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.