Bug 2359851 - SELinux denies tuned-ppd from creating ppd_base_profile (tuned_ppd_t → tuned_etc_t)
Summary: SELinux denies tuned-ppd from creating ppd_base_profile (tuned_ppd_t → tuned_...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 42
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2360026 2370995 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-15 20:19 UTC by Bryan
Modified: 2025-06-09 07:19 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-41.40-1.fc42
Clone Of:
Environment:
Last Closed: 2025-05-15 01:55:48 UTC
Type: Bug
Embargoed:
zpytela: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2679 0 None open Allow tuned-ppd create ppd_base_profile with a file transition 2025-05-06 18:03:38 UTC
Red Hat Issue Tracker FC-1595 0 None None None 2025-04-16 06:53:49 UTC

Description Bryan 2025-04-15 20:19:14 UTC
Description:

On Fedora 42, SELinux is preventing the tuned-ppd process from creating a file named ppd_base_profile under the tuned_etc_t context. This may indicate missing or incorrect policy rules for this use case.

Audit Log:

type=AVC msg=audit(1744748083.896:2432): avc:  denied  { create } for  pid=3052 comm="tuned-ppd" name="ppd_base_profile" scontext=system_u:system_r:tuned_ppd_t:s0 tcontext=system_u:object_r:tuned_etc_t:s0 tclass=file permissive=1

System Info:

    SELinux Policy: selinux-policy-targeted-41.36-1.fc42.noarch

    Kernel: 6.14.1-300.fc42.x86_64

    Enforcing Mode: Enforcing

    System: Fedora 42, x86_64

    Alert Count: 3

    Host: laptop

Steps to Reproduce:

    Run tuned-ppd under typical system conditions.

    Monitor audit logs for AVC denials.

Expected Results:
tuned-ppd should be able to create ppd_base_profile if it is designed to manage such files under /etc/tuned.

Actual Results:
The action is denied by SELinux unless a custom module is manually created.

Temporary Workaround:

ausearch -c 'tuned-ppd' --raw | audit2allow -M my-tunedppd
semodule -X 300 -i my-tunedppd.pp

Policy Hash:
tuned-ppd,tuned_ppd_t,tuned_etc_t,file,create

Comment 1 Zdenek Pytela 2025-04-16 06:54:08 UTC
*** Bug 2360026 has been marked as a duplicate of this bug. ***

Comment 2 Zdenek Pytela 2025-05-06 18:03:38 UTC
Hi,

Will you be able to test the coprbuild from
https://github.com/fedora-selinux/selinux-policy/pull/2679
-> checks?

Comment 3 Bryan 2025-05-06 22:14:06 UTC
Sorry, gave it a shot but couldn't get anything to build correctly via numerous methods.

Comment 4 Zdenek Pytela 2025-05-12 09:27:32 UTC
No problem, it will be in the next build.

Comment 5 Fedora Update System 2025-05-13 19:17:40 UTC
FEDORA-2025-5e64167ac4 (selinux-policy-41.40-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-5e64167ac4

Comment 6 Fedora Update System 2025-05-14 02:07:42 UTC
FEDORA-2025-5e64167ac4 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-5e64167ac4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-5e64167ac4

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

Comment 7 Fedora Update System 2025-05-15 01:55:48 UTC
FEDORA-2025-5e64167ac4 (selinux-policy-41.40-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Zdenek Pytela 2025-06-09 07:19:38 UTC
*** Bug 2370995 has been marked as a duplicate of this bug. ***


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