Bug 2367711 - SELinux is preventing tuned-ppd from 'write' accesses on the file /etc/tuned/ppd_base_profile.
Summary: SELinux is preventing tuned-ppd from 'write' accesses on the file /etc/tuned/...
Keywords:
Status: CLOSED DUPLICATE of bug 2361423
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:971de43679d106c6ec0f99011e9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-21 02:24 UTC by phamlogg@gmail.com
Modified: 2025-05-21 09:24 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-21 09:24:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.36 KB, text/plain)
2025-05-21 02:24 UTC, phamlogg@gmail.com
no flags Details
File: os_info (754 bytes, text/plain)
2025-05-21 02:24 UTC, phamlogg@gmail.com
no flags Details

Description phamlogg@gmail.com 2025-05-21 02:24:06 UTC
Description of problem:
I simply changed the power profile from Balanced to Power Saver from the drop menu on the top bar
SELinux is preventing tuned-ppd from 'write' accesses on the file /etc/tuned/ppd_base_profile.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/etc/tuned/ppd_base_profile default label should be tuned_rw_etc_t.
Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
Do
# /sbin/restorecon -v /etc/tuned/ppd_base_profile

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that tuned-ppd should be allowed write access on the ppd_base_profile file 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                unconfined_u:object_r:tuned_etc_t:s0
Target Objects                /etc/tuned/ppd_base_profile [ file ]
Source                        tuned-ppd
Source Path                   tuned-ppd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           tuned-2.25.1-2.fc42.noarch
SELinux Policy RPM            selinux-policy-targeted-41.40-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-41.40-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.14.6-300.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri May 9 20:11:19 UTC 2025 x86_64
Alert Count                   3
First Seen                    2025-05-20 18:23:49 +07
Last Seen                     2025-05-21 09:21:02 +07
Local ID                      770faa35-cb24-4afa-be6a-4d06ac4b58ed

Raw Audit Messages
type=AVC msg=audit(1747794062.924:286): avc:  denied  { write } for  pid=1438 comm="tuned-ppd" name="ppd_base_profile" dev="nvme0n1p3" ino=2624884 scontext=system_u:system_r:tuned_ppd_t:s0 tcontext=unconfined_u:object_r:tuned_etc_t:s0 tclass=file permissive=1


Hash: tuned-ppd,tuned_ppd_t,tuned_etc_t,file,write

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

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing tuned-ppd from 'write' accesses on the file /etc/tuned/ppd_base_profile.
package:        selinux-policy-targeted-41.40-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.14.6-300.fc42.x86_64
comment:        I simply changed the power profile from Balanced to Power Saver from the drop menu on the top bar
component:      selinux-policy

Comment 1 phamlogg@gmail.com 2025-05-21 02:24:10 UTC
Created attachment 2090960 [details]
File: description

Comment 2 phamlogg@gmail.com 2025-05-21 02:24:12 UTC
Created attachment 2090961 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-05-21 09:24:46 UTC
Please follow the setroubleshoot plugin suggestion and relabel the file.

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


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