Bug 2290885 - SELinux is preventing key.dns_resolve from 'setattr' accesses on the key labeled kernel_t.
Summary: SELinux is preventing key.dns_resolve from 'setattr' accesses on the key labe...
Keywords:
Status: CLOSED DUPLICATE of bug 2272646
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8b79d98636048ec83c726f4a7fe...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-07 15:21 UTC by ben
Modified: 2024-06-10 09:29 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-06-10 09:29:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.94 KB, text/plain)
2024-06-07 15:21 UTC, ben
no flags Details
File: os_info (734 bytes, text/plain)
2024-06-07 15:21 UTC, ben
no flags Details

Description ben 2024-06-07 15:21:52 UTC
Description of problem:
SELinux is preventing key.dns_resolve from 'setattr' accesses on the key labeled kernel_t.

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

If you believe that key.dns_resolve should be allowed setattr access on key labeled kernel_t by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# 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                Unknown [ key ]
Source                        key.dns_resolve
Source Path                   key.dns_resolve
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-40.20-1.fc40.noarch
Local Policy RPM              selinux-policy-targeted-40.20-1.fc40.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.8.11-300.fc40.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon May 27 14:53:33 UTC 2024
                              x86_64
Alert Count                   1938
First Seen                    2024-03-31 08:35:26 CDT
Last Seen                     2024-06-07 10:04:59 CDT
Local ID                      43b845cb-289b-4b4c-b9dc-8f7f835d11ad

Raw Audit Messages
type=AVC msg=audit(1717772699.750:10137): avc:  denied  { setattr } for  pid=1213558 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.20-1.fc40.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing key.dns_resolve from 'setattr' accesses on the key labeled kernel_t.
package:        selinux-policy-targeted-40.20-1.fc40.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.8.11-300.fc40.x86_64
component:      selinux-policy

Comment 1 ben 2024-06-07 15:21:55 UTC
Created attachment 2036726 [details]
File: description

Comment 2 ben 2024-06-07 15:21:56 UTC
Created attachment 2036727 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-06-10 09:29:14 UTC

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


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