Bug 2407206 - SELinux is preventing systemd-machine from 'search' accesses on the directory 19272.
Summary: SELinux is preventing systemd-machine from 'search' accesses on the directory...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 43
Hardware: x86_64
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:261bbef5aa693083a0f4cac9244...
: 2407207 2407355 2411750 2411815 2412722 2413556 2413954 2413956 2415164 2416042 2416638 2416723 2417252 2417301 2417715 2417739 2418717 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-29 20:11 UTC by dan
Modified: 2025-12-04 10:45 UTC (History)
24 users (show)

Fixed In Version: selinux-policy-42.17-1.fc43
Clone Of:
Environment:
Last Closed: 2025-11-29 16:48:23 UTC
Type: ---
Embargoed:
zpytela: mirror+


Attachments (Terms of Use)
File: description (1.96 KB, text/plain)
2025-10-29 20:11 UTC, dan
no flags Details
File: os_info (699 bytes, text/plain)
2025-10-29 20:11 UTC, dan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2958 0 None open Allow systemd-machined read svirt process state 2025-11-21 16:46:41 UTC

Description dan 2025-10-29 20:11:52 UTC
Description of problem:
Starting VM from virt manager.
SELinux is preventing systemd-machine from 'search' accesses on the directory 19272.

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

If you believe that systemd-machine should be allowed search access on the 19272 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:system_r:svirt_t:s0:c825,c980
Target Objects                19272 [ 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.14-1.fc43.noarch
Local Policy RPM              selinux-policy-targeted-42.14-1.fc43.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.16.8-200.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Sep 19 17:47:18 UTC 2025
                              x86_64
Alert Count                   4
First Seen                    2025-10-29 14:08:40 EDT
Last Seen                     2025-10-29 14:08:40 EDT
Local ID                      e2f3c580-a99b-4a2b-9f24-8d13ec96a43d

Raw Audit Messages
type=AVC msg=audit(1761761320.303:568): avc:  denied  { search } for  pid=1490 comm="systemd-machine" name="19272" dev="proc" ino=31558 scontext=system_u:system_r:systemd_machined_t:s0 tcontext=system_u:system_r:svirt_t:s0:c825,c980 tclass=dir permissive=0


Hash: systemd-machine,systemd_machined_t,svirt_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-42.14-1.fc43.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing systemd-machine from 'search' accesses on the directory 19272.
type:           libreport
comment:        Starting VM from virt manager.
hashmarkername: setroubleshoot
package:        selinux-policy-targeted-42.14-1.fc43.noarch
component:      selinux-policy
kernel:         6.16.8-200.fc42.x86_64
component:      selinux-policy

Comment 1 dan 2025-10-29 20:11:54 UTC
Created attachment 2111363 [details]
File: description

Comment 2 dan 2025-10-29 20:11:56 UTC
Created attachment 2111364 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-11-03 11:38:05 UTC
Another denial from one dup:

type=AVC msg=audit(1761787546.949:757): avc:  denied  { open } for  pid=1075 comm="systemd-machine" path="/proc/32908/stat" dev="proc" ino=169265 scontext=system_u:system_r:systemd_machined_t:s0 tcontext=system_u:system_r:svirt_t:s0:c274,c314 tclass=file permissive=0

Comment 4 Zdenek Pytela 2025-11-03 11:38:11 UTC
*** Bug 2407355 has been marked as a duplicate of this bug. ***

Comment 5 Zdenek Pytela 2025-11-03 11:38:22 UTC
*** Bug 2407207 has been marked as a duplicate of this bug. ***

Comment 6 Zdenek Pytela 2025-11-03 15:27:06 UTC
*** Bug 2411750 has been marked as a duplicate of this bug. ***

Comment 7 Zdenek Pytela 2025-11-03 15:30:25 UTC
*** Bug 2411815 has been marked as a duplicate of this bug. ***

Comment 8 Cole Robinson 2025-11-04 16:06:31 UTC
*** Bug 2411970 has been marked as a duplicate of this bug. ***

Comment 9 Zdenek Pytela 2025-11-06 09:23:05 UTC
*** Bug 2412722 has been marked as a duplicate of this bug. ***

Comment 10 Zdenek Pytela 2025-11-10 09:06:43 UTC
*** Bug 2413556 has been marked as a duplicate of this bug. ***

Comment 11 Zdenek Pytela 2025-11-11 07:58:06 UTC
*** Bug 2413954 has been marked as a duplicate of this bug. ***

Comment 12 Zdenek Pytela 2025-11-11 07:58:49 UTC
*** Bug 2413956 has been marked as a duplicate of this bug. ***

Comment 13 Zdenek Pytela 2025-11-18 17:48:14 UTC
*** Bug 2415164 has been marked as a duplicate of this bug. ***

Comment 14 Zdenek Pytela 2025-11-20 08:19:27 UTC
*** Bug 2416042 has been marked as a duplicate of this bug. ***

Comment 15 Zdenek Pytela 2025-11-24 08:55:16 UTC
*** Bug 2416638 has been marked as a duplicate of this bug. ***

Comment 16 Zdenek Pytela 2025-11-24 10:34:12 UTC
*** Bug 2416723 has been marked as a duplicate of this bug. ***

Comment 17 Zdenek Pytela 2025-11-26 12:52:27 UTC
*** Bug 2417252 has been marked as a duplicate of this bug. ***

Comment 18 Fedora Update System 2025-11-26 12:58:03 UTC
FEDORA-2025-b330880341 (selinux-policy-42.17-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b330880341

Comment 19 Zdenek Pytela 2025-11-26 18:30:05 UTC
*** Bug 2417301 has been marked as a duplicate of this bug. ***

Comment 20 Fedora Update System 2025-11-27 01:37:17 UTC
FEDORA-2025-b330880341 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b330880341`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b330880341

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Zdenek Pytela 2025-11-28 16:57:59 UTC
*** Bug 2417715 has been marked as a duplicate of this bug. ***

Comment 22 Fedora Update System 2025-11-29 16:48:23 UTC
FEDORA-2025-b330880341 (selinux-policy-42.17-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Zdenek Pytela 2025-12-01 08:51:02 UTC
*** Bug 2417739 has been marked as a duplicate of this bug. ***

Comment 24 Zdenek Pytela 2025-12-04 10:45:43 UTC
*** Bug 2418717 has been marked as a duplicate of this bug. ***


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