Bug 2334081

Summary: SELinux is preventing power-profiles- from 'write' accesses on the soubor scaling_governor.
Product: [Fedora] Fedora Reporter: Matyáš Kroupa <kroupa.matyas>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: dwalsh, kroupa.matyas, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6810b65bdde99bade85d347ed2571b92adf5b51c464dae1aca9d932b16adbcbe;VARIANT_ID=xfce;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-27 14:09:51 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:
Description Flags
File: description
none
File: os_info none

Description Matyáš Kroupa 2024-12-25 16:10:55 UTC
Description of problem:
Connecting a Thunderbolt 3 docking station to Framework 13 (Ryzen 7040).
SELinux is preventing power-profiles- from 'write' accesses on the soubor scaling_governor.

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

Pokud jste přesvědčeni, že má power-profiles- mít ve výchozím stavu přístup write na scaling_governor file.
Then měli byste tento problém nahlásit jako chybu.
Abyste přístup povolili, můžete vygenerovat lokální modul pravidel.
Do
prozatím tento přístup povolíte příkazy:
# 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                scaling_governor [ file ]
Source                        power-profiles-
Source Path                   power-profiles-
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.27-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.27-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.12.6-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Dec 19 21:06:34 UTC 2024
                              x86_64
Alert Count                   16
First Seen                    2024-12-25 16:58:11 CET
Last Seen                     2024-12-25 17:02:00 CET
Local ID                      5747d11e-9b64-4c99-a2a3-fe9324f8d861

Raw Audit Messages
type=AVC msg=audit(1735142520.555:551): avc:  denied  { write } for  pid=3475 comm="power-profiles-" name="scaling_governor" dev="sysfs" ino=21212 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.27-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing power-profiles- from 'write' accesses on the soubor scaling_governor.
package:        selinux-policy-targeted-41.27-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.12.6-200.fc41.x86_64
comment:        Connecting a Thunderbolt 3 docking station to Framework 13 (Ryzen 7040).
component:      selinux-policy

Comment 1 Matyáš Kroupa 2024-12-25 16:10:58 UTC
Created attachment 2063831 [details]
File: description

Comment 2 Matyáš Kroupa 2024-12-25 16:10:59 UTC
Created attachment 2063832 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-01-27 14:09:51 UTC

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