Bug 2226703

Summary: SELinux is preventing named from 'sqpoll' accesses on the io_uring labeled named_t.
Product: [Fedora] Fedora Reporter: Juan Quintela <quintela>
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, quintela, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e85d3992cc9fc5b97c086d24230e9bae1e64b4bc2be65552564dcb4c7c8f5c1b;VARIANT_ID=xfce;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-26 09:14:24 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 Juan Quintela 2023-07-26 09:07:53 UTC
Description of problem:
SELinux is preventing named from 'sqpoll' accesses on the io_uring labeled named_t.

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

If you believe that named should be allowed sqpoll access on io_uring labeled named_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 'named' --raw | audit2allow -M my-named
# semodule -X 300 -i my-named.pp

Additional Information:
Source Context                system_u:system_r:named_t:s0
Target Context                system_u:system_r:named_t:s0
Target Objects                Unknown [ io_uring ]
Source                        named
Source Path                   named
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.21-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.21-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.3.12-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Jul 6 04:05:18 UTC 2023 x86_64
Alert Count                   16
First Seen                    2023-07-26 11:04:38 CEST
Last Seen                     2023-07-26 11:04:38 CEST
Local ID                      2c3437f3-d99b-46d4-b621-8bdb43b812c6

Raw Audit Messages
type=AVC msg=audit(1690362278.964:367939): avc:  denied  { sqpoll } for  pid=3205199 comm="named" scontext=system_u:system_r:named_t:s0 tcontext=system_u:system_r:named_t:s0 tclass=io_uring permissive=0


Hash: named,named_t,named_t,io_uring,sqpoll

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

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing named from 'sqpoll' accesses on the io_uring labeled named_t.
package:        selinux-policy-targeted-38.21-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.12-200.fc38.x86_64
component:      selinux-policy

Comment 1 Juan Quintela 2023-07-26 09:07:55 UTC
Created attachment 1980047 [details]
File: description

Comment 2 Juan Quintela 2023-07-26 09:07:57 UTC
Created attachment 1980048 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-07-26 09:14:24 UTC

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