Bug 2253601

Summary: SELinux is preventing systemd from 'create' accesses on the netlink_netfilter_socket labeled init_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:8dd8c464843b23033a695ce1782e2f33318748d7f6d2ffd67fbea82903e2425c;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-08 11:16:56 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-12-08 05:52:29 UTC
Description of problem:
SELinux is preventing systemd from 'create' accesses on the netlink_netfilter_socket labeled init_t.

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

If you believe that systemd should be allowed create access on netlink_netfilter_socket labeled init_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 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:system_r:init_t:s0
Target Objects                Unknown [ netlink_netfilter_socket ]
Source                        systemd
Source Path                   systemd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-40.6-1.fc40.noarch
Local Policy RPM              selinux-policy-targeted-40.6-1.fc40.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.7.0-
                              0.rc4.20231206gitbee0e7762ad2.37.fc40.x86_64+debug
                              #1 SMP PREEMPT_DYNAMIC Wed Dec 6 17:47:20 UTC 2023
                              x86_64
Alert Count                   1
First Seen                    2023-12-08 10:51:19 +05
Last Seen                     2023-12-08 10:51:19 +05
Local ID                      fd35e236-852e-470b-b14d-1dbfdb0f52a1

Raw Audit Messages
type=AVC msg=audit(1702014679.18:488): avc:  denied  { create } for  pid=1 comm="systemd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=netlink_netfilter_socket permissive=1


Hash: systemd,init_t,init_t,netlink_netfilter_socket,create

Version-Release number of selected component:
selinux-policy-targeted-40.6-1.fc40.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing systemd from 'create' accesses on the netlink_netfilter_socket labeled init_t.
package:        selinux-policy-targeted-40.6-1.fc40.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.7.0-0.rc4.20231206gitbee0e7762ad2.37.fc40.x86_64+debug
component:      selinux-policy

Comment 1 Mikhail 2023-12-08 05:52:32 UTC
Created attachment 2003294 [details]
File: description

Comment 2 Mikhail 2023-12-08 05:52:34 UTC
Created attachment 2003295 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-12-08 11:16:56 UTC

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