Bug 1928563 - 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 ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 34
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:900a82866f02a3765d0e9f0d3d4...
: 1928550 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-14 21:31 UTC by Pat Kelly
Modified: 2021-03-29 00:16 UTC (History)
16 users (show)

Fixed In Version: selinux-policy-3.14.7-28.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-29 00:16:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pat Kelly 2021-02-14 21:31:42 UTC
Description of problem:
This alert started happeniing as soon as the system was rebooted after setroubleshoot was installed. Installing setrouble shoot was the only change made to the system after the WS Bets 0214 was installed. This is on a bare metal system.
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.7-20.fc34.noarch
Local Policy RPM              selinux-policy-targeted-3.14.7-20.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.11.0-0.rc7.149.fc34.x86_64 #1
                              SMP Mon Feb 8 16:23:47 UTC 2021 x86_64 x86_64
Alert Count                   3
First Seen                    2021-02-14 16:10:25 EST
Last Seen                     2021-02-14 16:10:33 EST
Local ID                      3bac62cb-d0f9-450d-9c51-5cf9cbaf8f1f

Raw Audit Messages
type=AVC msg=audit(1613337033.540:631): avc:  denied  { watch } for  pid=1037 comm="gmain" path="/var/lib/AccountsService/icons" dev="sda2" ino=155654 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:accountsd_var_lib_t:s0 tclass=dir permissive=0


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

Version-Release number of selected component:
selinux-policy-targeted-3.14.7-20.fc34.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.11.0-0.rc7.149.fc34.x86_64
type:           libreport

Potential duplicate: bug 1928550

Comment 1 Vasco Rodrigues 2021-02-26 16:19:40 UTC
Similar problem has been detected:

Starting session

hashmarkername: setroubleshoot
kernel:         5.11.0-156.fc34.x86_64
package:        selinux-policy-targeted-3.14.7-23.fc34.noarch
reason:         SELinux is preventing gnome-shell from 'watch' accesses on the directory /var/lib/AccountsService/icons.
type:           libreport

Comment 2 Pat Kelly 2021-02-26 16:26:02 UTC
Similar problem has been detected:

Second reboot after install. I had been installing additional software,

hashmarkername: setroubleshoot
kernel:         5.11.1-300.fc34.x86_64
package:        selinux-policy-targeted-3.14.7-23.fc34.noarch
reason:         SELinux is preventing gnome-shell from 'watch' accesses on the directory /var/lib/AccountsService/icons.
type:           libreport

Comment 3 Pat Kelly 2021-03-05 14:01:09 UTC
Similar problem has been detected:

I have setroubleshoot loaded and this shows up when the desktop first comes up on any restart.

hashmarkername: setroubleshoot
kernel:         5.11.2-300.fc34.x86_64
package:        selinux-policy-targeted-3.14.7-24.fc34.noarch
reason:         SELinux is preventing gnome-shell from 'watch' accesses on the directory /var/lib/AccountsService/icons.
type:           libreport

Comment 4 Zdenek Pytela 2021-03-05 14:46:49 UTC
*** Bug 1928550 has been marked as a duplicate of this bug. ***

Comment 5 CharlieI 2021-03-16 12:06:23 UTC
Similar problem has been detected:

Occurred straight after boot

hashmarkername: setroubleshoot
kernel:         5.11.3-300.fc34.x86_64
package:        selinux-policy-targeted-3.14.7-22.fc34.noarch
reason:         SELinux is preventing gnome-shell from 'watch' accesses on the directory /var/lib/AccountsService/icons.
type:           libreport

Comment 6 CharlieI 2021-03-19 09:59:16 UTC
Similar problem has been detected:

Happened at boot

hashmarkername: setroubleshoot
kernel:         5.11.7-300.fc34.x86_64
package:        selinux-policy-targeted-3.14.7-25.fc34.noarch
reason:         SELinux is preventing gnome-shell from 'watch' accesses on the directory /var/lib/AccountsService/icons.
type:           libreport

Comment 7 CharlieI 2021-03-24 20:17:55 UTC
Similar problem has been detected:

Happened after latest update,

hashmarkername: setroubleshoot
kernel:         5.11.8-300.fc34.x86_64
package:        selinux-policy-targeted-3.14.7-26.fc34.noarch
reason:         SELinux is preventing gnome-shell from 'watch' accesses on the directory /var/lib/AccountsService/icons.
type:           libreport

Comment 8 Zdenek Pytela 2021-03-24 20:42:13 UTC
I've submitted a Fedora PR to address the issue:
https://github.com/fedora-selinux/selinux-policy/pull/658

Comment 9 António 2021-03-26 10:16:47 UTC
Similar problem has been detected:

SELinux notification after logging into GNOME.

hashmarkername: setroubleshoot
kernel:         5.11.7-300.fc34.x86_64
package:        selinux-policy-targeted-3.14.7-25.fc34.noarch
reason:         SELinux is preventing gnome-shell from 'watch' accesses on the directório /var/lib/AccountsService/icons.
type:           libreport

Comment 10 Fedora Update System 2021-03-26 14:55:18 UTC
FEDORA-2021-15b81d905c has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-15b81d905c

Comment 11 Nicolas Berrehouc 2021-03-26 20:14:23 UTC
Similar problem has been detected:

After upgrading from F33 to F34 Beta.

hashmarkername: setroubleshoot
kernel:         5.11.9-300.fc34.x86_64
package:        selinux-policy-targeted-3.14.7-27.fc34.noarch
reason:         SELinux is preventing gnome-shell from 'watch' accesses on the dossier /var/lib/AccountsService/icons.
type:           libreport

Comment 12 Fedora Update System 2021-03-27 02:01:07 UTC
FEDORA-2021-15b81d905c has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-15b81d905c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-15b81d905c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Nicolas Berrehouc 2021-03-27 12:18:58 UTC
Similar problem has been detected:

After upgrade from F33 to F34 Beta.

Same problem with SELinux update https://bodhi.fedoraproject.org/updates/FEDORA-2021-15b81d905c .

hashmarkername: setroubleshoot
kernel:         5.11.9-300.fc34.x86_64
package:        selinux-policy-targeted-3.14.7-27.fc34.noarch
reason:         SELinux is preventing gnome-shell from 'watch' accesses on the dossier /var/lib/AccountsService/icons.
type:           libreport

Comment 14 Fedora Update System 2021-03-29 00:16:57 UTC
FEDORA-2021-15b81d905c has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


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