Bug 2214076 - SELinux is preventing key.dns_resolve from 'view' accesses on the key Sconosciuto.
Summary: SELinux is preventing key.dns_resolve from 'view' accesses on the key Sconosc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9ab3519308ce740513dad02d180...
: 2214074 2214082 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-11 16:52 UTC by Davide Repetto
Modified: 2023-06-19 14:55 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-38.17-1.fc38
Clone Of:
Environment:
Last Closed: 2023-06-18 01:30:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.95 KB, text/plain)
2023-06-11 16:52 UTC, Davide Repetto
no flags Details
File: os_info (709 bytes, text/plain)
2023-06-11 16:52 UTC, Davide Repetto
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 1731 0 None open Allow keyutils-dns-resolver read/view kernel key ring 2023-06-12 10:37:05 UTC

Description Davide Repetto 2023-06-11 16:52:00 UTC
Description of problem:
SELinux is preventing key.dns_resolve from 'view' accesses on the key Sconosciuto.

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

Se ci credi key.dns_resolve dovrebbe essere consentito view 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                      960e39dc-f509-4e4d-a982-38fa5c774d31

Raw Audit Messages
type=AVC msg=audit(1686502135.330:245): avc:  denied  { view } 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,view

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 'view' 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:52:02 UTC
Created attachment 1970308 [details]
File: description

Comment 2 Davide Repetto 2023-06-11 16:52:04 UTC
Created attachment 1970309 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-06-12 10:33:16 UTC
*** Bug 2214074 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2023-06-15 20:24:55 UTC
FEDORA-2023-9050c32c92 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-9050c32c92

Comment 5 Fedora Update System 2023-06-16 04:35:14 UTC
FEDORA-2023-9050c32c92 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-9050c32c92`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-9050c32c92

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2023-06-18 01:30:10 UTC
FEDORA-2023-9050c32c92 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Zdenek Pytela 2023-06-19 14:55:48 UTC
*** Bug 2214082 has been marked as a duplicate of this bug. ***


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