Bug 1928546 - SELinux is preventing gmain from 'watch' accesses on the directory /etc/gdm.
Summary: SELinux is preventing gmain from 'watch' accesses on the directory /etc/gdm.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f4707e2b593ca94abd25e9e7df4...
: 1928565 1928567 1933687 (view as bug list)
Depends On:
Blocks: F34BetaFreezeException 1933842 1939027 1939028
TreeView+ depends on / blocked
 
Reported: 2021-02-14 20:12 UTC by Mikhail
Modified: 2021-03-15 13:35 UTC (History)
19 users (show)

Fixed In Version: selinux-policy-3.14.7-23 selinux-policy-3.14.8-4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1933842 (view as bug list)
Environment:
Last Closed: 2021-03-09 16:00:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2021-02-14 20:12:09 UTC
Description of problem:
SELinux is preventing gmain from 'watch' accesses on the directory /etc/gdm.

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

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

Additional Information:
Source Context                system_u:system_r:accountsd_t:s0
Target Context                system_u:object_r:xdm_etc_t:s0
Target Objects                /etc/gdm [ dir ]
Source                        gmain
Source Path                   gmain
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           gdm-3.38.2.1-2.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                   7
First Seen                    2021-02-15 00:58:45 +05
Last Seen                     2021-02-15 01:04:16 +05
Local ID                      4a9d749f-a48c-4607-a0a4-91a5a7f2e7e6

Raw Audit Messages
type=AVC msg=audit(1613333056.869:163): avc:  denied  { watch } for  pid=1196 comm="accounts-daemon" path="/etc/gdm" dev="nvme0n1p2" ino=201326735 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:xdm_etc_t:s0 tclass=dir permissive=1


Hash: gmain,accountsd_t,xdm_etc_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 Ian Laurie 2021-02-15 07:30:56 UTC
Similar problem has been detected:

Logged into GNOME.

hashmarkername: setroubleshoot
kernel:         5.11.0-0.rc7.20210212git291009f656e8.151.fc35.x86_64
package:        selinux-policy-targeted-3.14.8-1.fc35.noarch
reason:         SELinux is preventing gmain from 'watch' accesses on the directory /etc/gdm.
type:           libreport

Comment 2 Zdenek Pytela 2021-02-22 09:34:27 UTC
*** Bug 1928567 has been marked as a duplicate of this bug. ***

Comment 3 Parag Nemade 2021-02-22 10:29:29 UTC
Hopefully this will be fixed soon.

Comment 4 Zdenek Pytela 2021-02-22 22:13:10 UTC
Problem isolated: accountsd_t is able to manage files of the xdm_etc_t type, but not directories.

Comment 5 Pavel Raiskup 2021-02-23 19:52:43 UTC
This is F34 problem too, perhaps candidate for CommonBugs tag?

Comment 6 Zdenek Pytela 2021-02-23 20:06:28 UTC
I've submitted a Fedora PR to address the issue:
https://github.com/fedora-selinux/selinux-policy/pull/613

Comment 7 Zdenek Pytela 2021-02-23 20:40:51 UTC
*** Bug 1928565 has been marked as a duplicate of this bug. ***

Comment 8 Zdenek Pytela 2021-03-01 14:09:32 UTC
*** Bug 1933687 has been marked as a duplicate of this bug. ***

Comment 9 Fedora Blocker Bugs Application 2021-03-01 15:44:42 UTC
Proposed as a Freeze Exception for 34-beta by Fedora user sgallagh using the blocker tracking app because:

 This is causing a significant performance issue as one CPU ends up running at 100% processing SELinux AVCs. It will leave a very bad impression on anyone trying out the Beta.

Comment 10 Geoffrey Marr 2021-03-01 21:25:22 UTC
Discussed during the 2021-03-01 blocker review meeting: [0]

The decision to classify this bug as an "AcceptedFreezeException (Beta)" was made as it is a noticeable issue that cannot be fixed with an update.

[0] https://meetbot.fedoraproject.org/fedora-blocker-review/2021-03-01/f34-blocker-review.2021-03-01-17.01.txt

Comment 12 Peter Larsen 2021-03-04 14:15:25 UTC
Similar problem has been detected:

First boot after F34 upgrade. System has active sssd/freeipa.

hashmarkername: setroubleshoot
kernel:         5.10.19-200.fc33.x86_64
package:        selinux-policy-targeted-3.14.7-22.fc34.noarch
reason:         SELinux is preventing accounts-daemon from 'watch' accesses on the directory /etc/gdm.
type:           libreport


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