Bug 2280479 - SELinux is preventing systemd-logind from 'read' accesses on the file /usr/lib/systemd/sleep.conf.
Summary: SELinux is preventing systemd-logind from 'read' accesses on the file /usr/li...
Keywords:
Status: CLOSED DUPLICATE of bug 2279923
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:de4b6224320d39334960474bc3e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-14 23:54 UTC by Ian Laurie
Modified: 2024-05-15 08:11 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-15 08:11:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.06 KB, text/plain)
2024-05-14 23:54 UTC, Ian Laurie
no flags Details
File: os_info (718 bytes, text/plain)
2024-05-14 23:54 UTC, Ian Laurie
no flags Details

Description Ian Laurie 2024-05-14 23:54:22 UTC
Description of problem:
Booted Rawhide and then logged into Xfce.
SELinux is preventing systemd-logind from 'read' accesses on the file /usr/lib/systemd/sleep.conf.

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

If you believe that systemd-logind should be allowed read access on the sleep.conf 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 'systemd-logind' --raw | audit2allow -M my-systemdlogind
# semodule -X 300 -i my-systemdlogind.pp

Additional Information:
Source Context                system_u:system_r:systemd_logind_t:s0
Target Context                system_u:object_r:init_exec_t:s0
Target Objects                /usr/lib/systemd/sleep.conf [ file ]
Source                        systemd-logind
Source Path                   systemd-logind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           systemd-
                              udev-256~rc1^20240509git1781de1-2.fc41.x86_64
SELinux Policy RPM            selinux-policy-targeted-40.18-2.fc41.noarch
Local Policy RPM              selinux-policy-targeted-40.18-2.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.9.0-64.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon May 13 11:58:46 UTC 2024
                              x86_64
Alert Count                   3
First Seen                    2024-05-15 09:51:04 AEST
Last Seen                     2024-05-15 09:51:09 AEST
Local ID                      507d9b96-1fbc-477f-91ad-4bb0e081e49c

Raw Audit Messages
type=AVC msg=audit(1715730669.195:147): avc:  denied  { read } for  pid=780 comm="systemd-logind" name="sleep.conf" dev="sda3" ino=1357310 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:init_exec_t:s0 tclass=file permissive=1


Hash: systemd-logind,systemd_logind_t,init_exec_t,file,read

Version-Release number of selected component:
selinux-policy-targeted-40.18-2.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing systemd-logind from 'read' accesses on the file /usr/lib/systemd/sleep.conf.
package:        selinux-policy-targeted-40.18-2.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.9.0-64.fc41.x86_64
comment:        Booted Rawhide and then logged into Xfce.
component:      selinux-policy

Comment 1 Ian Laurie 2024-05-14 23:54:25 UTC
Created attachment 2033281 [details]
File: description

Comment 2 Ian Laurie 2024-05-14 23:54:26 UTC
Created attachment 2033282 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-05-15 08:11:26 UTC

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


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