Bug 2252681 - SELinux is preventing systemd-sleep from 'write' accesses on the directory /sys/firmware/efi/efivars.
Summary: SELinux is preventing systemd-sleep from 'write' accesses on the directory /s...
Keywords:
Status: CLOSED DUPLICATE of bug 2249928
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:d18202ee9548b597f83b3afb5ed...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-03 21:57 UTC by Diego
Modified: 2023-12-04 09:50 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-12-04 09:50:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.93 KB, text/plain)
2023-12-03 21:57 UTC, Diego
no flags Details
File: os_info (665 bytes, text/plain)
2023-12-03 21:57 UTC, Diego
no flags Details

Description Diego 2023-12-03 21:57:27 UTC
Description of problem:
SELinux is preventing systemd-sleep from 'write' accesses on the directory /sys/firmware/efi/efivars.

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

If you believe that systemd-sleep should be allowed write access on the efivars directory 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 '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 [ dir ]
Source                        systemd-sleep
Source Path                   systemd-sleep
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-39.2-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-39.2-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.5.10-100.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Nov 2 21:12:43 UTC 2023 x86_64
Alert Count                   15
First Seen                    2023-11-20 15:46:22 CET
Last Seen                     2023-12-01 15:23:32 CET
Local ID                      098fc2a6-de9e-4cf8-84e4-fb0f806f8e3d

Raw Audit Messages
type=AVC msg=audit(1701440612.359:2129): avc:  denied  { write } for  pid=154313 comm="systemd-sleep" name="/" dev="efivarfs" ino=104 scontext=system_u:system_r:systemd_sleep_t:s0 tcontext=system_u:object_r:efivarfs_t:s0 tclass=dir permissive=0


Hash: systemd-sleep,systemd_sleep_t,efivarfs_t,dir,write

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

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing systemd-sleep from 'write' accesses on the directory /sys/firmware/efi/efivars.
component:      selinux-policy
type:           libreport
kernel:         6.5.10-100.fc37.x86_64
hashmarkername: setroubleshoot
package:        selinux-policy-targeted-39.2-1.fc39.noarch
component:      selinux-policy

Comment 1 Diego 2023-12-03 21:57:30 UTC
Created attachment 2002746 [details]
File: description

Comment 2 Diego 2023-12-03 21:57:31 UTC
Created attachment 2002747 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-12-04 09:50:56 UTC

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


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