Bug 2427548

Summary: SELinux is preventing systemd-machine from 'create' accesses on the sock_file io.systemd.Machine.
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, jjanasek, lvrabec, mikhail.v.gavrilov, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:adb969d476afaab6a1c547bd837c07ad9892c21e08ae274d731ea7a2c2f16a83;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-22 21:36:59 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 2026-01-07 07:44:16 UTC
Description of problem:
SELinux is preventing systemd-machine from 'create' accesses on the sock_file io.systemd.Machine.

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

If you believe that systemd-machine should be allowed create access on the io.systemd.Machine sock_file 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-machine' --raw | audit2allow -M my-systemdmachine
# semodule -X 300 -i my-systemdmachine.pp

Additional Information:
Source Context                system_u:system_r:systemd_machined_t:s0
Target Context                system_u:object_r:init_var_run_t:s0
Target Objects                io.systemd.Machine [ sock_file ]
Source                        systemd-machine
Source Path                   systemd-machine
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.19-1.fc44.noarch
Local Policy RPM              selinux-policy-targeted-42.19-1.fc44.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.19.0-rc4-f0b9d8eb98df+ #53 SMP
                              PREEMPT_DYNAMIC Wed Jan 7 01:12:01 +05 2026 x86_64
Alert Count                   2
First Seen                    2026-01-07 01:59:32 +05
Last Seen                     2026-01-07 12:26:30 +05
Local ID                      f816b3d8-0d12-4512-b102-25d55ae4009d

Raw Audit Messages
type=AVC msg=audit(1767770790.818:64): avc:  denied  { create } for  pid=1513 comm="systemd-machine" name="io.systemd.Machine" scontext=system_u:system_r:systemd_machined_t:s0 tcontext=system_u:object_r:init_var_run_t:s0 tclass=sock_file permissive=1


Hash: systemd-machine,systemd_machined_t,init_var_run_t,sock_file,create

Version-Release number of selected component:
selinux-policy-targeted-42.19-1.fc44.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing systemd-machine from 'create' accesses on the sock_file io.systemd.Machine.
package:        selinux-policy-targeted-42.19-1.fc44.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.19.0-rc4-f0b9d8eb98df+
component:      selinux-policy

Comment 1 Mikhail 2026-01-07 07:44:18 UTC
Created attachment 2121374 [details]
File: description

Comment 2 Mikhail 2026-01-07 07:44:20 UTC
Created attachment 2121375 [details]
File: os_info

Comment 3 jjanasek 2026-01-22 21:36:59 UTC

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