Bug 2188474 - SELinux is preventing request-key from 'execute' accesses on the Datei /usr/sbin/key.dns_resolver.
Summary: SELinux is preventing request-key from 'execute' accesses on the Datei /usr/s...
Keywords:
Status: CLOSED DUPLICATE of bug 2182643
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:885b4102348658cdf1f7da1be0a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-20 21:02 UTC by Julian Sikorski
Modified: 2023-05-04 19:40 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-05-04 19:40:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.08 KB, text/plain)
2023-04-20 21:02 UTC, Julian Sikorski
no flags Details
File: os_info (734 bytes, text/plain)
2023-04-20 21:02 UTC, Julian Sikorski
no flags Details
Output of "sudo ausearch -ts today -sv no" (7.83 KB, text/plain)
2023-05-02 17:26 UTC, Marko Haverinen
no flags Details

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 ***


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