Bug 2417715 - SELinux is preventing systemd-machine from 'create' accesses on the sock_file io.systemd.Machine.
Summary: SELinux is preventing systemd-machine from 'create' accesses on the sock_file...
Keywords:
Status: CLOSED DUPLICATE of bug 2407206
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:adb969d476afaab6a1c547bd837...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-28 15:42 UTC by Mikhail
Modified: 2025-11-28 16:57 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-11-28 16:57:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.01 KB, text/plain)
2025-11-28 15:42 UTC, Mikhail
no flags Details
File: os_info (740 bytes, text/plain)
2025-11-28 15:42 UTC, Mikhail
no flags Details

Description Mikhail 2025-11-28 15:42:03 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.17-1.fc44.noarch
Local Policy RPM              selinux-policy-targeted-42.17-1.fc44.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.18.0-rc7-e1afacb68573+ #13 SMP
                              PREEMPT_DYNAMIC Fri Nov 28 03:36:12 +05 2025
                              x86_64
Alert Count                   2
First Seen                    2025-11-28 19:42:31 +05
Last Seen                     2025-11-28 19:47:15 +05
Local ID                      39248ff7-afe1-4553-8331-d10c14a2f55f

Raw Audit Messages
type=AVC msg=audit(1764341235.823:66): avc:  denied  { create } for  pid=1302 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.17-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.17-1.fc44.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.18.0-rc7-e1afacb68573+
component:      selinux-policy

Comment 1 Mikhail 2025-11-28 15:42:05 UTC
Created attachment 2116515 [details]
File: description

Comment 2 Mikhail 2025-11-28 15:42:07 UTC
Created attachment 2116516 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-11-28 16:57:59 UTC

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


Note You need to log in before you can comment on or make changes to this bug.