Bug 2319316 - SELinux is preventing /usr/libexec/power-profiles-daemon from 'read' accesses on the file /sys/devices/system/cpu/amd_pstate/status.
Summary: SELinux is preventing /usr/libexec/power-profiles-daemon from 'read' accesses...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f8d30bd3629626067f6a100756c...
: 2319317 2319355 2319886 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-17 07:01 UTC by Mikhail
Modified: 2024-10-23 20:04 UTC (History)
10 users (show)

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


Attachments (Terms of Use)
File: description (3.07 KB, text/plain)
2024-10-17 07:01 UTC, Mikhail
no flags Details
File: os_info (770 bytes, text/plain)
2024-10-17 07:01 UTC, Mikhail
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2387 0 None Merged Update power-profiles-daemon policy 2024-10-21 08:23:48 UTC

Description Mikhail 2024-10-17 07:01:45 UTC
Description of problem:
SELinux is preventing /usr/libexec/power-profiles-daemon from 'read' accesses on the file /sys/devices/system/cpu/amd_pstate/status.

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

If you believe that power-profiles-daemon should be allowed read access on the status 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/system/cpu/amd_pstate/status [ file ]
Source                        power-profiles-
Source Path                   /usr/libexec/power-profiles-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           power-profiles-daemon-0.23-1.fc42.x86_64
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                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.12.0-
                              0.rc3.20241015giteca631b8fe80.33.fc42.x86_64+debug
                              #1 SMP PREEMPT_DYNAMIC Wed Oct 16 00:28:24 +05
                              2024 x86_64
Alert Count                   1
First Seen                    2024-10-17 11:36:37 +05
Last Seen                     2024-10-17 11:36:37 +05
Local ID                      6be8a1c8-08bf-406a-872b-e5ba88a333f0

Raw Audit Messages
type=AVC msg=audit(1729146997.31:203): avc:  denied  { read } for  pid=2577 comm="power-profiles-" name="status" dev="sysfs" ino=27939 scontext=system_u:system_r:powerprofiles_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=1


type=AVC msg=audit(1729146997.31:203): avc:  denied  { open } for  pid=2577 comm="power-profiles-" path="/sys/devices/system/cpu/amd_pstate/status" dev="sysfs" ino=27939 scontext=system_u:system_r:powerprofiles_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1729146997.31:203): arch=x86_64 syscall=openat success=yes exit=E2BIG a0=ffffffffffffff9c a1=55c6ba02ca90 a2=80000 a3=0 items=1 ppid=1 pid=2577 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=power-profiles- exe=/usr/libexec/power-profiles-daemon subj=system_u:system_r:powerprofiles_t:s0 key=(null)

type=CWD msg=audit(1729146997.31:203): cwd=/

type=PATH msg=audit(1729146997.31:203): item=0 name=/sys/devices/system/cpu/amd_pstate/status inode=27939 dev=00:5f mode=0100644 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:sysfs_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

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

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 /usr/libexec/power-profiles-daemon from 'read' accesses on the file /sys/devices/system/cpu/amd_pstate/status.
package:        selinux-policy-targeted-41.21-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.12.0-0.rc3.20241015giteca631b8fe80.33.fc42.x86_64+debug
component:      selinux-policy

Comment 1 Mikhail 2024-10-17 07:01:48 UTC
Created attachment 2052429 [details]
File: description

Comment 2 Mikhail 2024-10-17 07:01:49 UTC
Created attachment 2052430 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-10-21 08:23:56 UTC
*** Bug 2319317 has been marked as a duplicate of this bug. ***

Comment 4 Zdenek Pytela 2024-10-21 08:24:04 UTC
*** Bug 2319886 has been marked as a duplicate of this bug. ***

Comment 5 Zdenek Pytela 2024-10-21 10:43:14 UTC
*** Bug 2319355 has been marked as a duplicate of this bug. ***


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