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
Created attachment 2060776 [details] File: os_info
Created attachment 2060777 [details] File: description
*** This bug has been marked as a duplicate of bug 2334965 ***