Bug 2256947 - SELinux is preventing systemd-sleep from 'setattr' accesses on the Datei /sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67.
Summary: SELinux is preventing systemd-sleep from 'setattr' accesses on the Datei /sys...
Keywords:
Status: CLOSED DUPLICATE of bug 2255693
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1a4bf9d1b2d69eaae947fd8d022...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-05 14:10 UTC by Matthias Andree
Modified: 2024-01-05 15:29 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-05 15:29:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2024-01-05 14:10 UTC, Matthias Andree
no flags Details
File: description (2.30 KB, text/plain)
2024-01-05 14:10 UTC, Matthias Andree
no flags Details

Description Matthias Andree 2024-01-05 14:10:13 UTC
Description of problem:
hibernate from GNOME menu
SELinux is preventing systemd-sleep from 'setattr' accesses on the Datei /sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67.

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

Wenn Sie denken, dass es systemd-sleep standardmäßig erlaubt sein sollte, setattr Zugriff auf HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67 file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'systemd-sleep' --raw | audit2allow -M my-systemdsleep
# semodule -X 300 -i my-systemdsleep.pp

Additional Information:
Source Context                system_u:system_r:systemd_sleep_t:s0
Target Context                system_u:object_r:efivarfs_t:s0
Target Objects                /sys/firmware/efi/efivars/HibernateLocation-
                              8cf2644b-4b0b-428f-9387-6d876050dc67 [ file ]
Source                        systemd-sleep
Source Path                   systemd-sleep
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-39.3-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-39.3-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.6.8-200.fc39.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Dec 21 04:01:49 UTC 2023
                              x86_64
Alert Count                   1
First Seen                    2024-01-05 12:42:54 CET
Last Seen                     2024-01-05 12:42:54 CET
Local ID                      6a131f4a-3d97-427c-93bb-f919923beb29

Raw Audit Messages
type=AVC msg=audit(1704454974.627:736): avc:  denied  { setattr } for  pid=53822 comm="systemd-sleep" path="/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67" dev="efivarfs" ino=102685 scontext=system_u:system_r:systemd_sleep_t:s0 tcontext=system_u:object_r:efivarfs_t:s0 tclass=file permissive=0


Hash: systemd-sleep,systemd_sleep_t,efivarfs_t,file,setattr

Version-Release number of selected component:
selinux-policy-targeted-39.3-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing systemd-sleep from 'setattr' accesses on the Datei /sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67.
kernel:         6.6.8-200.fc39.x86_64
type:           libreport
comment:        hibernate from GNOME menu
package:        selinux-policy-targeted-39.3-1.fc39.noarch
hashmarkername: setroubleshoot
component:      selinux-policy
component:      selinux-policy

Comment 1 Matthias Andree 2024-01-05 14:10:15 UTC
Created attachment 2007363 [details]
File: os_info

Comment 2 Matthias Andree 2024-01-05 14:10:17 UTC
Created attachment 2007364 [details]
File: description

Comment 3 Zdenek Pytela 2024-01-05 15:29:18 UTC

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


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