Bug 2358952 - SELinux is preventing tuned-ppd from 'watch_reads' accesses on the directory /sys/firmware/acpi.
Summary: SELinux is preventing tuned-ppd from 'watch_reads' accesses on the directory ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 42
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:91e85add245c5f393f16ce90abb...
: 2359047 2360121 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-10 20:51 UTC by Bloom Perez
Modified: 2025-04-17 19:02 UTC (History)
11 users (show)

Fixed In Version: selinux-policy-41.37-1.fc42
Clone Of:
Environment:
Last Closed: 2025-04-17 19:02:10 UTC
Type: ---
Embargoed:
zpytela: mirror+


Attachments (Terms of Use)
File: description (1.92 KB, text/plain)
2025-04-10 20:51 UTC, Bloom Perez
no flags Details
File: os_info (735 bytes, text/plain)
2025-04-10 20:51 UTC, Bloom Perez
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2638 0 None open Allow tuned-ppd watch_reads sysfs directories 2025-04-11 07:37:40 UTC
Red Hat Issue Tracker FC-1583 0 None None None 2025-04-11 08:50:42 UTC

Description Bloom Perez 2025-04-10 20:51:47 UTC
Description of problem:
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.fc42.noarch
Local Policy RPM              selinux-policy-targeted-41.36-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.14.0-63.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Mar 24 19:53:37 UTC 2025
                              x86_64
Alert Count                   7
First Seen                    2025-04-09 13:50:51 AST
Last Seen                     2025-04-10 16:01:03 AST
Local ID                      3be543de-9fac-489f-8806-6f0a79d34cc4

Raw Audit Messages
type=AVC msg=audit(1744315263.81:133): avc:  denied  { watch_reads } for  pid=1215 comm="tuned-ppd" path="/sys/firmware/acpi" dev="sysfs" ino=6775 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.fc42.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.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.14.0-63.fc42.x86_64
component:      selinux-policy

Comment 1 Bloom Perez 2025-04-10 20:51:49 UTC
Created attachment 2084365 [details]
File: description

Comment 2 Bloom Perez 2025-04-10 20:51:51 UTC
Created attachment 2084366 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-04-11 11:12:27 UTC
*** Bug 2359047 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2025-04-14 16:17:58 UTC
FEDORA-2025-fa60ea97f0 (selinux-policy-41.37-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-fa60ea97f0

Comment 5 Fedora Update System 2025-04-15 20:23:16 UTC
FEDORA-2025-fa60ea97f0 has been pushed to the Fedora 42 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-fa60ea97f0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-fa60ea97f0

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

Comment 6 Zdenek Pytela 2025-04-16 14:44:54 UTC
*** Bug 2360121 has been marked as a duplicate of this bug. ***

Comment 7 Manni Heumann 2025-04-17 07:29:22 UTC
I see the exact same problem on Fedora 41.

Comment 8 Fedora Update System 2025-04-17 19:02:10 UTC
FEDORA-2025-fa60ea97f0 (selinux-policy-41.37-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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