Bug 1731492 - SELinux is preventing cp from 'setattr' accesses on the file user-dirs.locale.
Summary: SELinux is preventing cp from 'setattr' accesses on the file user-dirs.locale.
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: snapd
Version: 30
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Zygmunt Krynicki
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:b2a1669ae0f474497e9bb9ef7d3...
Depends On:
TreeView+ depends on / blocked
Reported: 2019-07-19 14:23 UTC by Tim Diillenberger
Modified: 2019-07-22 08:32 UTC (History)
8 users (show)

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

Attachments (Terms of Use)

Description Tim Diillenberger 2019-07-19 14:23:45 UTC
Description of problem:
SELinux is preventing cp from 'setattr' accesses on the file user-dirs.locale.

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

If you believe that cp should be allowed setattr access on the user-dirs.locale file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
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:config_home_t:s0
Target Objects                user-dirs.locale [ file ]
Source                        cp
Source Path                   cp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.3-40.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.1.17-300.fc30.x86_64 #1 SMP Wed
                              Jul 10 15:20:27 UTC 2019 x86_64 x86_64
Alert Count                   1
First Seen                    2019-07-19 08:50:18 CDT
Last Seen                     2019-07-19 08:50:18 CDT
Local ID                      30e093bc-74c8-4d9a-bd77-650cefc04f0d

Raw Audit Messages
type=AVC msg=audit(1563544218.227:300): avc:  denied  { setattr } for  pid=11177 comm="cp" name="user-dirs.locale" dev="dm-2" ino=35132683 scontext=system_u:system_r:snappy_t:s0 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=file permissive=1

Hash: cp,snappy_t,config_home_t,file,setattr

Version-Release number of selected component:

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.1.17-300.fc30.x86_64
type:           libreport

Potential duplicate: bug 1624565

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