Bug 1619567

Summary: SELinux is preventing systemd-user-ru from 'unlink' accesses on the lnk_file .flatpak-cache.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bugzilla, dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:26169c0c66560f7d9bf47493543eb5eafb5a0443dfb275e9c3d0a33dcef3c4dd;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-12 15:02:51 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 Mikhail 2018-08-21 08:28:48 UTC
Description of problem:
SELinux is preventing systemd-user-ru from 'unlink' accesses on the lnk_file .flatpak-cache.

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

If you believe that systemd-user-ru should be allowed unlink access on the .flatpak-cache 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-user-ru' --raw | audit2allow -M my-systemduserru
# semodule -X 300 -i my-systemduserru.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                unconfined_u:object_r:user_tmp_t:s0
Target Objects                .flatpak-cache [ lnk_file ]
Source                        systemd-user-ru
Source Path                   systemd-user-ru
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-32.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              4.18.0-0.rc8.git2.1.local.fc29.x86_64 #1 SMP Sat
                              Aug 11 23:44:36 +05 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-08-20 21:47:39 +05
Last Seen                     2018-08-20 21:47:39 +05
Local ID                      ffdf359a-7698-4a53-9386-853d8aeabefd

Raw Audit Messages
type=AVC msg=audit(1534783659.747:33786): avc:  denied  { unlink } for  pid=6991 comm="systemd-user-ru" name=".flatpak-cache" dev="tmpfs" ino=41800522 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=lnk_file permissive=0


Hash: systemd-user-ru,init_t,user_tmp_t,lnk_file,unlink

Version-Release number of selected component:
selinux-policy-3.14.2-32.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.19.0-0.rc0.git3.1.fc30.x86_64
type:           libreport

Potential duplicate: bug 1613635

Comment 1 Chris Murphy 2018-09-12 15:02:51 UTC

*** This bug has been marked as a duplicate of bug 1613635 ***