View Issue Details

IDProjectCategoryView StatusLast Update
0016659CentOS-7selinux-policypublic2019-10-26 18:15
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0016659: SELinux is preventing /usr/bin/cp from 'getattr' accesses on the file /home/knuteinar/snap/krita/52/.config/user-dirs.locale.
DescriptionDescription of problem:
Trying to install and open Krita. Using snap and snapstore. It installs, but will not open ... Spinning wheel, then nothing.
SELinux is preventing /usr/bin/cp from 'getattr' accesses on the file /home/knuteinar/snap/krita/52/.config/user-dirs.locale.

***** Plugin restorecon (99.5 confidence) suggests ************************

If you want to fix the label.
/home/knuteinar/snap/krita/52/.config/user-dirs.locale default label should be snappy_home_t.
Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
# /sbin/restorecon -v /home/knuteinar/snap/krita/52/.config/user-dirs.locale

***** Plugin catchall (1.49 confidence) suggests **************************

If you believe that cp should be allowed getattr 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 -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 /home/knuteinar/snap/krita/52/.config/user-
                              dirs.locale [ file ]
Source cp
Source Path /usr/bin/cp
Port <Unknown>
Host (removed)
Source RPM Packages tar-1.26-35.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-252.el7.1.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name (removed)
Platform Linux (removed) 3.10.0-1062.4.1.el7.x86_64 #1 SMP
                              Fri Oct 18 17:15:30 UTC 2019 x86_64 x86_64
Alert Count 4
First Seen 2019-10-24 18:06:04 CEST
Last Seen 2019-10-26 19:58:37 CEST
Local ID 57e6e1cc-e21a-4679-9892-ee205a8f7a02

Raw Audit Messages
type=AVC msg=audit(1572112717.435:351): avc: denied { getattr } for pid=12587 comm="tar" path="/home/knuteinar/snap/krita/52/.config/user-dirs.locale" dev="dm-2" ino=134302427 scontext=system_u:system_r:snappy_t:s0 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=file permissive=1

type=SYSCALL msg=audit(1572112717.435:351): arch=x86_64 syscall=newfstatat success=yes exit=0 a0=6 a1=16a1dcf a2=7ffc485468b8 a3=100 items=0 ppid=12586 pid=12587 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm=tar exe=/usr/bin/tar subj=system_u:system_r:snappy_t:s0 key=(null)

Hash: cp,snappy_t,config_home_t,file,getattr

Version-Release number of selected component:
Additional Informationreporter: libreport-
hashmarkername: setroubleshoot
kernel: 3.10.0-1062.4.1.el7.x86_64
reproducible: Not sure how to reproduce the problem
type: libreport
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-10-26 18:15 magpie New Issue