Description of problem: Installed snapd (sudo dnf install snapd). During the installation process several SELinux denials are raised SELinux is preventing snapd from 'getattr' accesses on the lnk_file /var/lib/snapd/snap/core/3887/lib64/ld-linux-x86-64.so.2. ***** Plugin restorecon (99.5 confidence) suggests ************************ If you want to fix the label. /var/lib/snapd/snap/core/3887/lib64/ld-linux-x86-64.so.2 default label should be snappy_var_lib_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. Do # /sbin/restorecon -v /var/lib/snapd/snap/core/3887/lib64/ld-linux-x86-64.so.2 ***** Plugin catchall (1.49 confidence) suggests ************************** If you believe that snapd should be allowed getattr access on the ld-linux-x86-64.so.2 lnk_file 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:unlabeled_t:s0 Target Objects /var/lib/snapd/snap/core/3887/lib64/ld- linux-x86-64.so.2 [ lnk_file ] Source snapd Source Path snapd Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-283.24.fc27.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.14.16-300.fc27.x86_64 #1 SMP Wed Jan 31 19:24:27 UTC 2018 x86_64 x86_64 Alert Count 1 First Seen 2018-02-08 11:33:21 CET Last Seen 2018-02-08 11:33:21 CET Local ID c7808e5e-b876-4789-a5f0-98eda4452b05 Raw Audit Messages type=AVC msg=audit(1518086001.297:859): avc: denied { getattr } for pid=16556 comm="snapd" path="/var/lib/snapd/snap/core/3887/lib64/ld-linux-x86-64.so.2" dev="loop0" ino=2502 scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=lnk_file permissive=1 Hash: snapd,snappy_t,unlabeled_t,lnk_file,getattr Version-Release number of selected component: selinux-policy-3.13.1-283.24.fc27.noarch Additional info: component: selinux-policy reporter: libreport-2.9.3 hashmarkername: setroubleshoot kernel: 4.14.16-300.fc27.x86_64 type: libreport Potential duplicate: bug 1474775
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
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
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.
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.