Bug 2329824 - SELinux is preventing power-profiles- from 'write' accesses on the файл energy_performance_preference.
Summary: SELinux is preventing power-profiles- from 'write' accesses on the файл energ...
Keywords:
Status: CLOSED DUPLICATE of bug 2334965
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6810b65bdde99bade85d347ed25...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-02 08:53 UTC by Kaloyan Petrov
Modified: 2025-01-27 14:09 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-01-27 14:09:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (702 bytes, text/plain)
2024-12-02 08:53 UTC, Kaloyan Petrov
no flags Details
File: description (2.13 KB, text/plain)
2024-12-02 08:53 UTC, Kaloyan Petrov
no flags Details

Description Kaloyan Petrov 2024-12-02 08:53:32 UTC
Description of problem:
Switching power profiles from Fn+{H,M,L} buttons causes SELinux alert to appear. Power profiles is changed, but alert appears.
SELinux is preventing power-profiles- from 'write' accesses on the файл energy_performance_preference.

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

If you believe that power-profiles- should be allowed write access on the energy_performance_preference file by default.
Then вие ще трябва да докладвате този бъг.
Можете да генерирате модул с локална политика за да позволите този достъп.
Do
allow this access for now by executing:
# ausearch -c 'power-profiles-' --raw | audit2allow -M my-powerprofiles
# semodule -X 300 -i my-powerprofiles.pp

Additional Information:
Source Context                system_u:system_r:powerprofiles_t:s0
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                energy_performance_preference [ file ]
Source                        power-profiles-
Source Path                   power-profiles-
Port                          <Непознат>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.26-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.26-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.11.10-300.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Nov 23 00:51:20 UTC 2024
                              x86_64
Alert Count                   2
First Seen                    2024-12-02 10:37:51 EET
Last Seen                     2024-12-02 10:48:08 EET
Local ID                      1a620423-437f-4842-bf60-342dac034394

Raw Audit Messages
type=AVC msg=audit(1733129288.543:517): avc:  denied  { write } for  pid=1322 comm="power-profiles-" name="energy_performance_preference" dev="sysfs" ino=18899 scontext=system_u:system_r:powerprofiles_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=1


Hash: power-profiles-,powerprofiles_t,sysfs_t,file,write

Version-Release number of selected component:
selinux-policy-targeted-41.26-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
package:        selinux-policy-targeted-41.26-1.fc41.noarch
reason:         SELinux is preventing power-profiles- from 'write' accesses on the файл energy_performance_preference.
hashmarkername: setroubleshoot
comment:        Switching power profiles from Fn+{H,M,L} buttons causes SELinux alert to appear. Power profiles is changed, but alert appears.
type:           libreport
component:      selinux-policy
kernel:         6.11.10-300.fc41.x86_64
component:      selinux-policy

Comment 1 Kaloyan Petrov 2024-12-02 08:53:34 UTC
Created attachment 2060776 [details]
File: os_info

Comment 2 Kaloyan Petrov 2024-12-02 08:53:36 UTC
Created attachment 2060777 [details]
File: description

Comment 3 Zdenek Pytela 2025-01-27 14:09:43 UTC

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


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