Bug 2360121

Summary: SELinux is preventing tuned-ppd from 'watch_reads' accesses on the directory /sys/firmware/acpi.
Product: [Fedora] Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
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: dominik, dwalsh, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:91e85add245c5f393f16ce90abb120dabe05bd13d4f258559ef420cfa65feeb7;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-16 14:44:54 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 Dominik 'Rathann' Mierzejewski 2025-04-16 12:55:47 UTC
Description of problem:
This appeared after reboot.
SELinux is preventing tuned-ppd from 'watch_reads' accesses on the directory /sys/firmware/acpi.

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

If you believe that tuned-ppd should be allowed watch_reads access on the acpi 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 'tuned-ppd' --raw | audit2allow -M my-tunedppd
# semodule -X 300 -i my-tunedppd.pp

Additional Information:
Source Context                system_u:system_r:tuned_ppd_t:s0
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                /sys/firmware/acpi [ dir ]
Source                        tuned-ppd
Source Path                   tuned-ppd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
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                   3
First Seen                    2025-04-15 11:32:29 CEST
Last Seen                     2025-04-16 13:11:45 CEST
Local ID                      67504f0b-7b7d-464d-b11e-57730f395cbd

Raw Audit Messages
type=AVC msg=audit(1744801905.776:140): avc:  denied  { watch_reads } for  pid=1761 comm="tuned-ppd" path="/sys/firmware/acpi" dev="sysfs" ino=3288 scontext=system_u:system_r:tuned_ppd_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir permissive=1


Hash: tuned-ppd,tuned_ppd_t,sysfs_t,dir,watch_reads

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 tuned-ppd from 'watch_reads' accesses on the directory /sys/firmware/acpi.
package:        selinux-policy-targeted-41.36-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.13.10-200.fc41.x86_64
comment:        This appeared after reboot.
component:      selinux-policy

Comment 1 Dominik 'Rathann' Mierzejewski 2025-04-16 12:55:49 UTC
Created attachment 2085153 [details]
File: description

Comment 2 Dominik 'Rathann' Mierzejewski 2025-04-16 12:55:51 UTC
Created attachment 2085154 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-04-16 14:44:54 UTC

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