Bug 2214074

Summary: SELinux is preventing key.dns_resolve from 'read' accesses on the key Sconosciuto.
Product: [Fedora] Fedora Reporter: Davide Repetto <red>
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: dwalsh, lvrabec, mmalik, nknazeko, omosnacek, pkoncity, red, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d1d4b73759b878bb0180adbffa5499ea7c56eacec198eb41d4428262e08b8aa1;VARIANT_ID=matecompiz;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-12 10:33:16 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 Davide Repetto 2023-06-11 16:50:40 UTC
Description of problem:
SELinux is preventing key.dns_resolve from 'read' accesses on the key Sconosciuto.

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

Se ci credi key.dns_resolve dovrebbe essere consentito read accesso al Sconosciuto key per impostazione predefinita.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per ora eseguendo:
# ausearch -c 'key.dns_resolve' --raw | audit2allow -M my-$MODULE_NOME
# semodule -X 300 -i miei-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                Sconosciuto [ key ]
Source                        key.dns_resolve
Source Path                   key.dns_resolve
Port                          <Sconosciuto>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.15-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.15-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.3.6-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Jun 5 15:45:04 UTC 2023 x86_64
Alert Count                   1
First Seen                    2023-06-11 18:48:55 CEST
Last Seen                     2023-06-11 18:48:55 CEST
Local ID                      d822904b-85de-425c-8ce0-6b22525c756c

Raw Audit Messages
type=AVC msg=audit(1686502135.330:246): avc:  denied  { read } for  pid=3276 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=1


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

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

Additional info:
reporter:       libreport-2.17.10
reason:         SELinux is preventing key.dns_resolve from 'read' accesses on the key Sconosciuto.
package:        selinux-policy-targeted-38.15-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.6-200.fc38.x86_64
component:      selinux-policy

Comment 1 Davide Repetto 2023-06-11 16:50:46 UTC
Created attachment 1970306 [details]
File: description

Comment 2 Davide Repetto 2023-06-11 16:50:51 UTC
Created attachment 1970307 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-06-12 10:33:16 UTC

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