Bug 2353380

Summary: SELinux is preventing bootc-systemd-g from 'read' accesses on the файл /usr/bin/bootc.
Product: [Fedora] Fedora Reporter: KsenkoLopa <ksenko.lopa>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: dwalsh, ksenko.lopa, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e205facbe42058dae1a1159897b025772a97bd68e5eb3ab2fb8799606ca3afb6;VARIANT_ID=;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-27 14:13:47 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 KsenkoLopa 2025-03-19 16:50:21 UTC
Description of problem:
SELinux is preventing bootc-systemd-g from 'read' accesses on the файл /usr/bin/bootc.

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

Если вы считаете, что bootc-systemd-g должно быть разрешено read доступ к bootc file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
разрешить этот доступ сейчас, выполнив:
# ausearch -c 'bootc-systemd-g' --raw | audit2allow -M my-bootcsystemdg
# semodule -X 300 -i my-bootcsystemdg.pp

Additional Information:
Source Context                system_u:system_r:systemd_generic_generator_t:s0
Target Context                system_u:object_r:install_exec_t:s0
Target Objects                /usr/bin/bootc [ file ]
Source                        bootc-systemd-g
Source Path                   bootc-systemd-g
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           bootc-1.1.5-1.fc41.x86_64
SELinux Policy RPM            selinux-policy-targeted-41.34-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.34-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.13.5-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Feb 27 15:07:31 UTC 2025
                              x86_64
Alert Count                   20
First Seen                    2025-02-27 23:35:35 +06
Last Seen                     2025-03-14 23:57:44 +06
Local ID                      04c987f9-8bb2-4d93-a4ad-810149b2213e

Raw Audit Messages
type=AVC msg=audit(1741975064.691:538): avc:  denied  { read } for  pid=23144 comm="bootc-systemd-g" name="bootc" dev="nvme0n1p3" ino=1183080 scontext=system_u:system_r:systemd_generic_generator_t:s0 tcontext=system_u:object_r:install_exec_t:s0 tclass=file permissive=1


Hash: bootc-systemd-g,systemd_generic_generator_t,install_exec_t,file,read

Version-Release number of selected component:
selinux-policy-targeted-41.34-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing bootc-systemd-g from 'read' accesses on the файл /usr/bin/bootc.
component:      selinux-policy
package:        selinux-policy-targeted-41.34-1.fc41.noarch
hashmarkername: setroubleshoot
kernel:         6.13.6-200.fc41.x86_64
type:           libreport
component:      selinux-policy

Comment 1 KsenkoLopa 2025-03-19 16:50:24 UTC
Created attachment 2080890 [details]
File: description

Comment 2 KsenkoLopa 2025-03-19 16:50:26 UTC
Created attachment 2080891 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-03-27 14:13:47 UTC

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