Bug 2188940

Summary: SELinux is preventing kworker/31:0 from map_read, map_write access on the bpf labeled kernel_t.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, lvrabec, mikhail.v.gavrilov, mmalik, nknazeko, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:2409a91c92a2710481d02febe78cc73d4d834115b43ad84cfe29763db1b29f69;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-25 09:27:07 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 Mikhail 2023-04-23 15:09:13 UTC
Description of problem:
SELinux is preventing kworker/31:0 from map_read, map_write access on the bpf labeled kernel_t.

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

If you believe that 31:0 should be allowed map_read map_write access on bpf 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 'kworker/31:0' --raw | audit2allow -M my-kworker310
# semodule -X 300 -i my-kworker310.pp

Additional Information:
Source Context                system_u:system_r:kernel_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                Unknown [ bpf ]
Source                        kworker/31:0
Source Path                   kworker/31:0
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.11-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-38.11-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.3.0-
                              0.rc7.20230420gitcb0856346a60.59.fc39.x86_64+debug
                              #1 SMP PREEMPT_DYNAMIC Fri Apr 21 00:37:51 UTC
                              2023 x86_64
Alert Count                   1
First Seen                    2023-04-23 20:04:08 +05
Last Seen                     2023-04-23 20:04:08 +05
Local ID                      dedbb2fb-c5ac-4ff6-b07f-433dffb20433

Raw Audit Messages
type=AVC msg=audit(1682262248.262:222): avc:  denied  { map_read map_write } for  pid=8134 comm="kworker/31:0" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=bpf permissive=1


Hash: kworker/31:0,kernel_t,kernel_t,bpf,map_read,map_write

Version-Release number of selected component:
selinux-policy-targeted-38.11-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.9
reason:         SELinux is preventing kworker/31:0 from map_read, map_write access on the bpf labeled kernel_t.
package:        selinux-policy-targeted-38.11-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.0-0.rc7.20230420gitcb0856346a60.59.fc39.x86_64+debug
component:      selinux-policy

Comment 1 Mikhail 2023-04-23 15:09:15 UTC
Created attachment 1959405 [details]
File: description

Comment 2 Mikhail 2023-04-23 15:09:17 UTC
Created attachment 1959406 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-04-25 09:27:07 UTC

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