Bug 2427549 - SELinux is preventing systemd-machine from 'create' accesses on the directory resolve.hook.
Summary: SELinux is preventing systemd-machine from 'create' accesses on the directory...
Keywords:
Status: CLOSED DUPLICATE of bug 2415701
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:717ae2dd7dedd5c523467c03975...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-01-07 07:44 UTC by Mikhail
Modified: 2026-01-22 21:44 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-01-22 21:44:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.94 KB, text/plain)
2026-01-07 07:44 UTC, Mikhail
no flags Details
File: os_info (740 bytes, text/plain)
2026-01-07 07:44 UTC, Mikhail
no flags Details

Description Mikhail 2026-01-07 07:44:49 UTC
Description of problem:
SELinux is preventing systemd-machine from 'create' accesses on the directory resolve.hook.

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

If you believe that systemd-machine should be allowed create access on the resolve.hook directory 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                resolve.hook [ dir ]
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                      dac32a6b-0af6-4020-899f-c70eb489ddab

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


Hash: systemd-machine,systemd_machined_t,init_var_run_t,dir,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 directory resolve.hook.
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:52 UTC
Created attachment 2121376 [details]
File: description

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

Comment 3 jjanasek 2026-01-22 21:44:54 UTC

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


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