Bug 2437021
| Summary: | SELinux is preventing /usr/lib/systemd/systemd-machined from 'create' accesses on the sock_file /run/systemd/resolve.hook/io.systemd.Machine. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mikhail <mikhail.v.gavrilov> | ||||||
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | rawhide | CC: | dwalsh, 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-02-05 13:27: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: |
|
||||||||
Created attachment 2128245 [details]
File: description
Created attachment 2128246 [details]
File: os_info
*** This bug has been marked as a duplicate of bug 2415701 *** |
Description of problem: SELinux is preventing /usr/lib/systemd/systemd-machined from 'create' accesses on the sock_file /run/systemd/resolve.hook/io.systemd.Machine. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that systemd-machined 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 /run/systemd/resolve.hook/io.systemd.Machine [ sock_file ] Source systemd-machine Source Path /usr/lib/systemd/systemd-machined Port <Unknown> Host (removed) Source RPM Packages systemd-container-259-9.fc44.x86_64 Target RPM Packages SELinux Policy RPM selinux-policy-targeted-42.22-1.fc44.noarch Local Policy RPM selinux-policy-targeted-42.22-1.fc44.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 6.19.0-rc8-18f7fcd5e69a-v3+ #79 SMP PREEMPT_DYNAMIC Tue Feb 3 03:26:11 +05 2026 x86_64 Alert Count 6 First Seen 2026-02-03 01:59:28 +05 Last Seen 2026-02-05 03:06:08 +05 Local ID 8c3ad8a8-85b6-4f36-a6c2-6539d8e8b8bc Raw Audit Messages type=AVC msg=audit(1770242768.609:67): avc: denied { create } for pid=1566 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 type=SYSCALL msg=audit(1770242768.609:67): arch=x86_64 syscall=bind success=yes exit=0 a0=d a1=7fff58d8a370 a2=2f a3=7fff58d8a364 items=2 ppid=1 pid=1566 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-machine exe=/usr/lib/systemd/systemd-machined subj=system_u:system_r:systemd_machined_t:s0 key=(null) type=CWD msg=audit(1770242768.609:67): cwd=/ type=PATH msg=audit(1770242768.609:67): item=0 name=/run/systemd/resolve.hook/ inode=4078 dev=00:1c mode=040755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:init_var_run_t:s0 nametype=PARENT cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0 type=PATH msg=audit(1770242768.609:67): item=1 name=/run/systemd/resolve.hook/io.systemd.Machine inode=4079 dev=00:1c mode=0140666 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:init_var_run_t:s0 nametype=CREATE cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0 Hash: systemd-machine,systemd_machined_t,init_var_run_t,sock_file,create Version-Release number of selected component: selinux-policy-targeted-42.22-1.fc44.noarch Additional info: reporter: libreport-2.17.15 reason: SELinux is preventing /usr/lib/systemd/systemd-machined from 'create' accesses on the sock_file /run/systemd/resolve.hook/io.systemd.Machine. package: selinux-policy-targeted-42.22-1.fc44.noarch component: selinux-policy hashmarkername: setroubleshoot type: libreport kernel: 6.19.0-rc8-18f7fcd5e69a-v3+ component: selinux-policy