Bug 1928550 - SELinux is preventing gnome-shell from 'watch' accesses on the directory /var/lib/AccountsService/icons.
Summary: SELinux is preventing gnome-shell from 'watch' accesses on the directory /var...
Keywords:
Status: CLOSED DUPLICATE of bug 1928563
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:900a82866f02a3765d0e9f0d3d4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-14 20:13 UTC by Mikhail
Modified: 2021-03-05 14:46 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-03-05 14:46:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.