Bug 1928550

Summary: SELinux is preventing gnome-shell from 'watch' accesses on the directory /var/lib/AccountsService/icons.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, plautrba, vmojzis, vondruch, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:900a82866f02a3765d0e9f0d3d4a6cf28c8ad2e9edf74ec63def104bda1141a9;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-05 14:46:50 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 2021-02-14 20:13:43 UTC
Description of problem:
SELinux is preventing gnome-shell from 'watch' accesses on the directory /var/lib/AccountsService/icons.

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

If you believe that gnome-shell should be allowed watch access on the icons directory 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 'gnome-shell' --raw | audit2allow -M my-gnomeshell
# semodule -X 300 -i my-gnomeshell.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:accountsd_var_lib_t:s0
Target Objects                /var/lib/AccountsService/icons [ dir ]
Source                        gnome-shell
Source Path                   gnome-shell
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           accountsservice-0.6.55-6.fc34.x86_64
SELinux Policy RPM            selinux-policy-targeted-3.14.8-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-3.14.8-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.11.0-0.rc7.20210212git291009f656
                              e8.151.fc35.x86_64 #1 SMP Fri Feb 12 13:02:28 UTC
                              2021 x86_64 x86_64
Alert Count                   3
First Seen                    2021-02-15 01:01:38 +05
Last Seen                     2021-02-15 01:04:22 +05
Local ID                      b88113bf-59b3-4d06-b749-e1a5c393a0a0

Raw Audit Messages
type=AVC msg=audit(1613333062.707:566): avc:  denied  { watch } for  pid=1580 comm="gnome-shell" path="/var/lib/AccountsService/icons" dev="nvme0n1p2" ino=203546450 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:accountsd_var_lib_t:s0 tclass=dir permissive=1


Hash: gnome-shell,xdm_t,accountsd_var_lib_t,dir,watch

Version-Release number of selected component:
selinux-policy-targeted-3.14.8-1.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.11.0-0.rc7.20210212git291009f656e8.151.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2021-03-05 14:46:50 UTC

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