Bug 2188474

Summary: SELinux is preventing request-key from 'execute' accesses on the Datei /usr/sbin/key.dns_resolver.
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: 38CC: belegdol, dwalsh, lvrabec, marko.haverinen, mmalik, nknazeko, omosnacek, pkoncity, serge, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:885b4102348658cdf1f7da1be0a5b544da8598e38760c6774c9d3d4161d6f4df;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-04 19:40:43 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
Output of "sudo ausearch -ts today -sv no" none

Description Julian Sikorski 2023-04-20 21:02:24 UTC
Description of problem:
SELinux is preventing request-key from 'execute' accesses on the Datei /usr/sbin/key.dns_resolver.

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

Wenn Sie denken, dass es request-key standardmäßig erlaubt sein sollte, execute Zugriff auf key.dns_resolver file 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 'request-key' --raw | audit2allow -M my-requestkey
# semodule -X 300 -i my-requestkey.pp

Additional Information:
Source Context                system_u:system_r:keyutils_request_t:s0
Target Context                system_u:object_r:bin_t:s0
Target Objects                /usr/sbin/key.dns_resolver [ file ]
Source                        request-key
Source Path                   request-key
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           keyutils-1.6.1-6.fc38.x86_64
SELinux Policy RPM            selinux-policy-targeted-38.10-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.10-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.2.11-300.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Apr 13 20:27:09 UTC 2023
                              x86_64
Alert Count                   2
First Seen                    2023-04-20 22:44:41 CEST
Last Seen                     2023-04-20 22:55:04 CEST
Local ID                      d8b074a2-9d2f-4fbb-b0fe-1a0833190f50

Raw Audit Messages
type=AVC msg=audit(1682024104.255:677): avc:  denied  { execute } for  pid=49143 comm="request-key" name="key.dns_resolver" dev="nvme0n1p6" ino=13159612 scontext=system_u:system_r:keyutils_request_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file permissive=0


Hash: request-key,keyutils_request_t,bin_t,file,execute

Version-Release number of selected component:
selinux-policy-targeted-38.10-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.9
reason:         SELinux is preventing request-key from 'execute' accesses on the Datei /usr/sbin/key.dns_resolver.
package:        selinux-policy-targeted-38.10-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.2.11-300.fc38.x86_64
component:      selinux-policy

Comment 1 Julian Sikorski 2023-04-20 21:02:27 UTC
Created attachment 1958674 [details]
File: description

Comment 2 Julian Sikorski 2023-04-20 21:02:29 UTC
Created attachment 1958675 [details]
File: os_info

Comment 3 Marko Haverinen 2023-05-02 17:24:08 UTC
I think I have the same issue. I'll attach the output of
sudo ausearch -ts today -sv no >ausearch.txt
to this issue.

This is on F38, 6.2.13-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 27 01:33:30 UTC 2023 x86_64 GNU/Linux.

Comment 4 Marko Haverinen 2023-05-02 17:26:14 UTC
Created attachment 1961759 [details]
Output of "sudo ausearch -ts today -sv no"

There are also some lines relating to the Xerox print driver on this laptop.

Comment 5 Zdenek Pytela 2023-05-04 19:40:43 UTC
Continuing in bz#2182643 where there is the most of information available.

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