Bug 2360042

Summary: SELinux is preventing bootc-systemd-g from 'search' accesses on the Verzeichnis /var/lib/sss/mc.
Product: [Fedora] Fedora Reporter: wiese <wwiese>
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, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, wwiese, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:736e33349e4a2b2e6963c78074b1a4e8ba0764b9e9210b7970b9d0915e3d6aaa;VARIANT_ID=cinnamon;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-16 06:55:23 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 wiese 2025-04-16 04:57:38 UTC
Description of problem:
SELinux is preventing bootc-systemd-g from 'search' accesses on the Verzeichnis /var/lib/sss/mc.

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

Wenn Sie denken, dass es bootc-systemd-g standardmäßig erlaubt sein sollte, search Zugriff auf mc directory zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# 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_bootc_generator_t:s0
Target Context                system_u:object_r:sssd_public_t:s0
Target Objects                /var/lib/sss/mc [ dir ]
Source                        bootc-systemd-g
Source Path                   bootc-systemd-g
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           sssd-common-2.10.2-1.fc41.x86_64
SELinux Policy RPM            selinux-policy-targeted-41.36-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.36-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.13.10-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Apr 7 19:01:38 UTC 2025 x86_64
Alert Count                   4
First Seen                    2025-04-16 06:55:32 CEST
Last Seen                     2025-04-16 06:55:32 CEST
Local ID                      37ee7c34-db28-4029-befa-9a920e5dde44

Raw Audit Messages
type=AVC msg=audit(1744779332.888:361): avc:  denied  { search } for  pid=38506 comm="bootc-systemd-g" name="mc" dev="sda3" ino=446687 scontext=system_u:system_r:systemd_bootc_generator_t:s0 tcontext=system_u:object_r:sssd_public_t:s0 tclass=dir permissive=0


Hash: bootc-systemd-g,systemd_bootc_generator_t,sssd_public_t,dir,search

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

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing bootc-systemd-g from 'search' accesses on the Verzeichnis /var/lib/sss/mc.
package:        selinux-policy-targeted-41.36-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.13.10-200.fc41.x86_64
component:      selinux-policy

Comment 1 wiese 2025-04-16 04:57:41 UTC
Created attachment 2085115 [details]
File: description

Comment 2 wiese 2025-04-16 04:57:42 UTC
Created attachment 2085116 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-04-16 06:55:23 UTC

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