Bug 2338135
| Summary: | SELinux is preventing power-profiles- from write access on the file energy_performance_preference | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ludovic <ludovic> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 41 | CC: | dwalsh, ludovic, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-01-27 14:02:01 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 2334965 *** |
When plugging in the laptop, an SELinux error message appears about an AVC denial. Fedora 41 is fully up to date, been having this issue for a while now (possibly ever since upgrading to F41). Reproducible: Always Steps to Reproduce: 1. have fedora up and running, with the laptop unplugged 2. plugin the charging cable 3. message "New SELinux security alert - AVC denial" shows up after a second or so Expected Results: No error message from SELinux. SELinux is preventing power-profiles- from write access on the file 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 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 '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 <Unknown> Host x1 Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-41.28-1.fc41.noarch Local Policy RPM selinux-policy-targeted-41.28-1.fc41.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name x1 Platform Linux x1 6.12.9-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 9 16:05:40 UTC 2025 x86_64 Alert Count 190 First Seen 2024-12-02 11:06:54 CET Last Seen 2025-01-15 10:03:20 CET Local ID 3bdc0e66-1cb4-45ca-a520-f567cfd189e9 Raw Audit Messages type=AVC msg=audit(1736931800.197:326): avc: denied { write } for pid=1459 comm="power-profiles-" name="energy_performance_preference" dev="sysfs" ino=16683 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