Bug 2192172

Summary: SELinux is preventing systemd from using the 'dyntransition' accesses on a process.
Product: [Fedora] Fedora Reporter: Ian Laurie <nixuser>
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, nixuser, nknazeko, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:2667f9f17c5475f3d22501f36f523930c22049265264d675dd6bbe04f7939049;VARIANT_ID=;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-30 08:53:30 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 Ian Laurie 2023-04-30 06:13:53 UTC
Description of problem:
SELinux is preventing systemd from using the 'dyntransition' accesses on a process.

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

If you believe that systemd should be allowed dyntransition access on processes 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 [ process ]
Source                        systemd
Source Path                   systemd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.12-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.12-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.2.13-300.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Apr 27 01:33:30 UTC 2023
                              x86_64
Alert Count                   1
First Seen                    2023-04-30 15:37:07 AEST
Last Seen                     2023-04-30 15:37:07 AEST
Local ID                      55da1846-6a76-495b-869f-396a8e0694a5

Raw Audit Messages
type=AVC msg=audit(1682833027.20:391): avc:  denied  { dyntransition } for  pid=1 comm="systemd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=process permissive=1


Hash: systemd,init_t,init_t,process,dyntransition

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

Additional info:
reporter:       libreport-2.17.9
reason:         SELinux is preventing systemd from using the 'dyntransition' accesses on a process.
package:        selinux-policy-targeted-38.12-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.2.13-300.fc38.x86_64
component:      selinux-policy

Comment 1 Ian Laurie 2023-04-30 06:13:55 UTC
Created attachment 1961118 [details]
File: description

Comment 2 Ian Laurie 2023-04-30 06:13:57 UTC
Created attachment 1961119 [details]
File: os_info

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

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