Bug 2278611

Summary: SELinux is preventing key.dns_resolve from 'setattr' accesses on the key Unbekannt.
Product: [Fedora] Fedora Reporter: Julian Sikorski <belegdol>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: belegdol, dwalsh, knazekovan, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8b79d98636048ec83c726f4a7fefa63725a0f88fe1b2372549514598a9266bb2;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-07 08:30:00 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:
Attachments:
Description Flags
File: description
none
File: os_info none

Description Julian Sikorski 2024-05-02 11:04:59 UTC
Description of problem:
This happens after a resume sometimes. I have samba shares mounted, and I use desk-changer gnome-shell extension to change wallpapers using pictures stored on these shares.
SELinux is preventing key.dns_resolve from 'setattr' accesses on the key Unbekannt.

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

Wenn Sie denken, dass es key.dns_resolve standardmäßig erlaubt sein sollte, setattr Zugriff auf Unbekannt key zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'key.dns_resolve' --raw | audit2allow -M my-keydnsresolve
# semodule -X 300 -i my-keydnsresolve.pp

Additional Information:
Source Context                system_u:system_r:keyutils_dns_resolver_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                Unbekannt [ key ]
Source                        key.dns_resolve
Source Path                   key.dns_resolve
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-40.17-1.fc40.noarch
Local Policy RPM              selinux-policy-targeted-40.17-1.fc40.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.8.8-300.fc40.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Apr 27 17:53:31 UTC 2024
                              x86_64
Alert Count                   12
First Seen                    2024-03-26 13:29:32 CET
Last Seen                     2024-05-02 13:02:43 CEST
Local ID                      1c5a471d-862e-4795-906b-d89cb7ca79cc

Raw Audit Messages
type=AVC msg=audit(1714647763.508:522): avc:  denied  { setattr } for  pid=9650 comm="key.dns_resolve" scontext=system_u:system_r:keyutils_dns_resolver_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=key permissive=0


Hash: key.dns_resolve,keyutils_dns_resolver_t,kernel_t,key,setattr

Version-Release number of selected component:
selinux-policy-targeted-40.17-1.fc40.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing key.dns_resolve from 'setattr' accesses on the key Unbekannt.
package:        selinux-policy-targeted-40.17-1.fc40.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.8.8-300.fc40.x86_64
comment:        This happens after a resume sometimes. I have samba shares mounted, and I use desk-changer gnome-shell extension to change wallpapers using pictures stored on these shares.
component:      selinux-policy

Comment 1 Julian Sikorski 2024-05-02 11:05:02 UTC
Created attachment 2030863 [details]
File: description

Comment 2 Julian Sikorski 2024-05-02 11:05:04 UTC
Created attachment 2030864 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-05-07 08:30:00 UTC

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