Bug 2319886
| Summary: | SELinux is preventing power-profiles- from 'open' accesses on the file /sys/devices/platform/thinkpad_acpi/dytc_lapmode. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zephyr Lykos <fedora> | ||||||
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | rawhide | CC: | dwalsh, fedora, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:c9a3ff39255dd5643d9ca7c2d0545cc4305fb31f6c5355e0f2d80b5496d719b1;VARIANT_ID=workstation; | ||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2024-10-21 08:24:04 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: | |||||||||
| Attachments: |
|
||||||||
Created attachment 2052754 [details]
File: description
Created attachment 2052755 [details]
File: os_info
*** This bug has been marked as a duplicate of bug 2319316 *** |
Description of problem: 1. install power-profiles-daemon, enable selinux on a thinkpad with lapmode detector. 2. see avc denial SELinux is preventing power-profiles- from 'open' accesses on the file /sys/devices/platform/thinkpad_acpi/dytc_lapmode. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that power-profiles- should be allowed open access on the dytc_lapmode 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 /sys/devices/platform/thinkpad_acpi/dytc_lapmode [ file ] Source power-profiles- Source Path power-profiles- Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-41.21-1.fc42.noarch Local Policy RPM selinux-policy-targeted-41.21-1.fc42.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 6.12.0- 0.rc3.20241015giteca631b8fe80.32.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Oct 15 12:32:35 UTC 2024 x86_64 Alert Count 17 First Seen 2024-10-18 23:19:07 CST Last Seen 2024-10-19 14:33:48 CST Local ID 96f85a1c-4007-4202-ab18-b7a79142878d Raw Audit Messages type=AVC msg=audit(1729319628.378:382): avc: denied { open } for pid=3606 comm="power-profiles-" path="/sys/devices/platform/thinkpad_acpi/dytc_lapmode" dev="sysfs" ino=48755 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,open Version-Release number of selected component: selinux-policy-targeted-41.21-1.fc42.noarch Additional info: reporter: libreport-2.17.15 reason: SELinux is preventing power-profiles- from 'open' accesses on the file /sys/devices/platform/thinkpad_acpi/dytc_lapmode. package: selinux-policy-targeted-41.21-1.fc42.noarch component: selinux-policy hashmarkername: setroubleshoot type: libreport kernel: 6.12.0-0.rc3.20241015giteca631b8fe80.32.fc42.x86_64 component: selinux-policy