Bug 2418797

Summary: SELinux is preventing systemd-machine from 'create' accesses on the adresář resolve.hook.
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
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, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, vondruch, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:717ae2dd7dedd5c523467c03975f4c8bf16d79bf8cbc8c54c5cc5f77e8743149;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-04 15:20:55 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 Vít Ondruch 2025-12-04 13:38:12 UTC
Description of problem:
SELinux is preventing systemd-machine from 'create' accesses on the adresář resolve.hook.

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

Pokud jste přesvědčeni, že má systemd-machine mít ve výchozím stavu přístup create na resolve.hook directory.
Then měli byste tento problém nahlásit jako chybu.
Abyste přístup povolili, můžete vygenerovat lokální modul pravidel.
Do
prozatím tento přístup povolíte příkazy:
# 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                          <Neznámé>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.18-1.fc44.noarch
Local Policy RPM              selinux-policy-targeted-42.18-1.fc44.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.18.0-65.fc44.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Dec 1 22:47:07 UTC 2025 x86_64
Alert Count                   1
First Seen                    2025-12-04 14:37:19 CET
Last Seen                     2025-12-04 14:37:19 CET
Local ID                      8e34a261-d18c-4b3d-afd3-2adccc2f24db

Raw Audit Messages
type=AVC msg=audit(1764855439.474:258): avc:  denied  { create } for  pid=20033 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=0


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

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

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing systemd-machine from 'create' accesses on the adresář resolve.hook.
package:        selinux-policy-targeted-42.18-1.fc44.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.18.0-65.fc44.x86_64
component:      selinux-policy

Comment 1 Vít Ondruch 2025-12-04 13:38:15 UTC
Created attachment 2117388 [details]
File: description

Comment 2 Vít Ondruch 2025-12-04 13:38:16 UTC
Created attachment 2117389 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-12-04 15:20:55 UTC

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