Bug 2319886 - SELinux is preventing power-profiles- from 'open' accesses on the file /sys/devices/platform/thinkpad_acpi/dytc_lapmode.
Summary: SELinux is preventing power-profiles- from 'open' accesses on the file /sys/d...
Keywords:
Status: CLOSED DUPLICATE of bug 2319316
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c9a3ff39255dd5643d9ca7c2d05...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-19 06:50 UTC by Zephyr Lykos
Modified: 2024-10-21 08:24 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-10-21 08:24:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.13 KB, text/plain)
2024-10-19 06:50 UTC, Zephyr Lykos
no flags Details
File: os_info (770 bytes, text/plain)
2024-10-19 06:50 UTC, Zephyr Lykos
no flags Details

Description Zephyr Lykos 2024-10-19 06:50:05 UTC
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

Comment 1 Zephyr Lykos 2024-10-19 06:50:08 UTC
Created attachment 2052754 [details]
File: description

Comment 2 Zephyr Lykos 2024-10-19 06:50:10 UTC
Created attachment 2052755 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-10-21 08:24:04 UTC

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


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