Bug 1558850

Summary: SELinux is preventing systemd from 'getattr' accesses on the lnk_file /var/lib/snapd/snap/core/current.
Product: [Fedora] Fedora Reporter: Anass Ahmed <anass.1430>
Component: snapdAssignee: Zygmunt Krynicki <me>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dwalsh, lvrabec, me, mgrepl, ngompa13, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b53b93bdd7c695502f7e1bbb738e294e9dd30ae51d150327faeec2cbc81b7d01;VARIANT_ID=workstation;
Fixed In Version: snapd-2.35-1.fc28 snapd-2.35-1.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-30 04:55:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anass Ahmed 2018-03-21 06:50:14 UTC
Description of problem:
SELinux is preventing systemd from 'getattr' accesses on the lnk_file /var/lib/snapd/snap/core/current.

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

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

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:snappy_var_lib_t:s0
Target Objects                /var/lib/snapd/snap/core/current [ lnk_file ]
Source                        systemd
Source Path                   systemd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-14.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.0-0.rc5.git0.2.fc28.x86_64 #1
                              SMP Wed Mar 14 14:22:27 UTC 2018 x86_64 x86_64
Alert Count                   4
First Seen                    2018-03-21 05:19:14 EET
Last Seen                     2018-03-21 08:26:40 EET
Local ID                      347e54a9-cd27-4ba9-ac50-c71c3edfc036

Raw Audit Messages
type=AVC msg=audit(1521613600.892:516): avc:  denied  { getattr } for  pid=1 comm="systemd" path="/var/lib/snapd/snap/core/current" dev="sda2" ino=1182484 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:snappy_var_lib_t:s0 tclass=lnk_file permissive=0


Hash: systemd,init_t,snappy_var_lib_t,lnk_file,getattr

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.16.0-0.rc5.git0.2.fc28.x86_64
type:           libreport

Comment 1 Fedora Update System 2018-08-25 21:43:32 UTC
snapd-glib-1.43-1.fc28 snapd-2.35-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5d4624b7af

Comment 2 Fedora Update System 2018-08-25 21:44:40 UTC
snapd-glib-1.43-1.fc27 snapd-2.35-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-14918a503a

Comment 3 Fedora Update System 2018-08-26 22:51:56 UTC
snapd-2.35-1.fc27, snapd-glib-1.43-1.fc27 has been pushed to the Fedora 27 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-14918a503a

Comment 4 Fedora Update System 2018-08-27 00:26:41 UTC
snapd-2.35-1.fc28, snapd-glib-1.43-1.fc28 has been pushed to the Fedora 28 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-5d4624b7af

Comment 5 Fedora Update System 2018-08-30 04:55:58 UTC
snapd-2.35-1.fc28, snapd-glib-1.43-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2018-09-06 02:31:19 UTC
snapd-2.35-1.fc27, snapd-glib-1.43-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.