Bug 1928567

Summary: SELinux is preventing accounts-daemon from 'watch' accesses on the adresář /etc/gdm.
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
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, mikhail.v.gavrilov, mmalik, modehnal, omosnace, plautrba, pnemade, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:78c389d65513eb781f21f0d916cb00129c6bf8539fc4c6ace973602dbc3079b6;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-22 09:34:27 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 Vít Ondruch 2021-02-14 21:45:06 UTC
Description of problem:
SELinux is preventing accounts-daemon from 'watch' accesses on the adresář /etc/gdm.

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

Pokud jste přesvědčeni, že má accounts-daemon mít ve výchozím stavu přístup watch na gdm directory.
Then měli byste tento problém nahlásit jako chybu.
Abyste přístup povolili, můžete vygenerovat lokální modul pravidel.
Do
prozatím tento přístup povolíte příkazy:
# ausearch -c 'accounts-daemon' --raw | audit2allow -M my-accountsdaemon
# semodule -X 300 -i my-accountsdaemon.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                        accounts-daemon
Source Path                   accounts-daemon
Port                          <Neznámé>
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                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.10.15-200.fc33.x86_64 #1 SMP Wed
                              Feb 10 17:46:55 UTC 2021 x86_64 x86_64
Alert Count                   13
First Seen                    2021-02-14 22:43:43 CET
Last Seen                     2021-02-14 22:44:31 CET
Local ID                      0c91cfbb-0d9b-4e47-8344-8e78ccae73b0

Raw Audit Messages
type=AVC msg=audit(1613339071.513:620): avc:  denied  { watch } for  pid=756 comm="gmain" path="/etc/gdm" dev="nvme0n1p3" ino=120164 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:xdm_etc_t:s0 tclass=dir permissive=0


Hash: accounts-daemon,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.10.15-200.fc33.x86_64
type:           libreport

Comment 1 Vít Ondruch 2021-02-14 21:54:20 UTC
This is triggered like every 5 seconds :(

Comment 2 Parag Nemade 2021-02-16 03:07:50 UTC
true

Comment 3 Michal Odehnal 2021-02-17 12:20:33 UTC
I am seeing this on RHEL-9 also with selinux-policy-3.14.7-20.el9.noarch

Comment 4 Zdenek Pytela 2021-02-22 09:34:27 UTC

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