Bug 2385913 - 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 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:971de43679d106c6ec0f99011e9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-01 09:56 UTC by Joel Uckelman
Modified: 2025-08-07 00:53 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-42.4-1.fc42
Clone Of:
Environment:
Last Closed: 2025-08-07 00:53:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.96 KB, text/plain)
2025-08-01 09:56 UTC, Joel Uckelman
no flags Details
File: os_info (701 bytes, text/plain)
2025-08-01 09:56 UTC, Joel Uckelman
no flags Details

Description Joel Uckelman 2025-08-01 09:56:46 UTC
Description of problem:
SELinux is preventing tuned-ppd from 'write' accesses on the file /etc/tuned/ppd_base_profile.

*****  Plugin catchall (100. 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                system_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-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                   101
First Seen                    2025-05-03 18:56:38 BST
Last Seen                     2025-08-01 10:19:22 BST
Local ID                      c584902f-03ee-4439-be7d-777eaaef8222

Raw Audit Messages
type=AVC msg=audit(1754039962.972:152): avc:  denied  { write } for  pid=2373 comm="tuned-ppd" name="ppd_base_profile" dev="dm-1" ino=7868591 scontext=system_u:system_r:tuned_ppd_t:s0 tcontext=system_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-42.2-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
kernel:         6.15.7-200.fc42.x86_64
component:      selinux-policy
reason:         SELinux is preventing tuned-ppd from 'write' accesses on the file /etc/tuned/ppd_base_profile.
type:           libreport
hashmarkername: setroubleshoot
package:        selinux-policy-targeted-42.2-1.fc42.noarch
component:      selinux-policy

Comment 1 Joel Uckelman 2025-08-01 09:56:48 UTC
Created attachment 2102273 [details]
File: description

Comment 2 Joel Uckelman 2025-08-01 09:56:49 UTC
Created attachment 2102274 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-08-01 14:50:04 UTC
The /etc/tuned/ppd_base_profile file is mislabeled, you probably need to relabel it manually using restorecon.

A coprbuild from this PR should work out-of-the-box on a system where the file does not exist yet:

https://github.com/fedora-selinux/selinux-policy/pull/2808
Checks -> rawhide

Comment 4 Joel Uckelman 2025-08-02 00:29:40 UTC
Huh, it was mislabeled. No idea how that happened.

Comment 5 Fedora Update System 2025-08-05 07:56:08 UTC
FEDORA-2025-d93e219f23 (selinux-policy-42.4-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d93e219f23

Comment 6 Fedora Update System 2025-08-06 02:36:22 UTC
FEDORA-2025-d93e219f23 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-d93e219f23`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d93e219f23

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

Comment 7 Fedora Update System 2025-08-07 00:53:52 UTC
FEDORA-2025-d93e219f23 (selinux-policy-42.4-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.