Bug 2385051

Summary: SELinux is preventing selinux-autorel from 'getattr' accesses on the filesystem /.
Product: [Fedora] Fedora Reporter: marek77 <marek.schimara>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: dwalsh, lvrabec, marek.schimara, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4b891f343a5670e40f66fced8049998cba85ea70d3b847800adbe1a37ee8b334;VARIANT_ID=;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-07-30 16:39:48 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: os_info
none
File: description none

Description marek77 2025-07-30 14:34:45 UTC
Description of problem:
SELinux is preventing selinux-autorel from 'getattr' accesses on the filesystem /.

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

If you believe that selinux-autorel should be allowed getattr access on the  filesystem 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 'selinux-autorel' --raw | audit2allow -M my-selinuxautorel
# semodule -X 300 -i my-selinuxautorel.pp

Additional Information:
Source Context                system_u:system_r:selinux_autorelabel_generator_t:
                              s0
Target Context                system_u:object_r:fs_t:s0
Target Objects                / [ filesystem ]
Source                        selinux-autorel
Source Path                   selinux-autorel
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.2-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-42.2-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.15.7-200.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Jul 17 17:57:16 UTC 2025
                              x86_64
Alert Count                   152
First Seen                    2025-07-30 16:03:38 CEST
Last Seen                     2025-07-30 16:31:00 CEST
Local ID                      6e1cc1b4-aa4d-409e-aa17-9e3e38fbfb37

Raw Audit Messages
type=AVC msg=audit(1753885860.600:101852): avc:  denied  { getattr } for  pid=18399 comm="grep" name="/" dev="nvme0n1p3" ino=2 scontext=system_u:system_r:selinux_autorelabel_generator_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem permissive=0


Hash: selinux-autorel,selinux_autorelabel_generator_t,fs_t,filesystem,getattr

Version-Release number of selected component:
selinux-policy-targeted-42.2-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
component:      selinux-policy
type:           libreport
hashmarkername: setroubleshoot
package:        selinux-policy-targeted-42.2-1.fc42.noarch
kernel:         6.15.7-200.fc42.x86_64
reason:         SELinux is preventing selinux-autorel from 'getattr' accesses on the filesystem /.
component:      selinux-policy

Comment 1 marek77 2025-07-30 14:34:48 UTC
Created attachment 2100486 [details]
File: os_info

Comment 2 marek77 2025-07-30 14:34:49 UTC
Created attachment 2100487 [details]
File: description

Comment 3 Zdenek Pytela 2025-07-30 16:39:48 UTC

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