Bug 2192185

Summary: SELinux is preventing kworker/5:1 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:e159a9f4ff01f6dc09ce5f95ae755dde19f8d37c46530c167b158cd6eb17d53b;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-30 08:50:19 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-30 08:03:11 UTC
Description of problem:
SELinux is preventing kworker/5:1 from map_read, map_write access on the bpf labeled kernel_t.

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

If you believe that 5:1 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/5:1' --raw | audit2allow -M my-kworker51
# semodule -X 300 -i my-kworker51.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/5:1
Source Path                   kworker/5:1
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.12-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-38.12-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.4.0-
                              0.rc0.20230428git33afd4b76393.7.fc39.x86_64+debug
                              #1 SMP PREEMPT_DYNAMIC Fri Apr 28 21:01:40 +05
                              2023 x86_64
Alert Count                   1
First Seen                    2023-04-30 12:58:29 +05
Last Seen                     2023-04-30 12:58:29 +05
Local ID                      4290552b-22e3-448a-add3-4935a03ed2fc

Raw Audit Messages
type=AVC msg=audit(1682841509.667:846): avc:  denied  { map_read map_write } for  pid=482663 comm="kworker/5:1" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=bpf permissive=1


Hash: kworker/5:1,kernel_t,kernel_t,bpf,map_read,map_write

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

Additional info:
reporter:       libreport-2.17.9
reason:         SELinux is preventing kworker/5:1 from map_read, map_write access on the bpf labeled kernel_t.
package:        selinux-policy-targeted-38.12-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.4.0-0.rc0.20230428git33afd4b76393.7.fc39.x86_64+debug
component:      selinux-policy

Comment 1 Mikhail 2023-04-30 08:03:13 UTC
Created attachment 1961130 [details]
File: description

Comment 2 Mikhail 2023-04-30 08:03:14 UTC
Created attachment 1961131 [details]
File: os_info

Comment 3 Ondrej Mosnáček 2023-04-30 08:50:19 UTC

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