Bug 2347136 - SELinux is preventing /usr/lib/systemd/systemd-homed from 'getattr' accesses on the filesystem /dev/shm.
Summary: SELinux is preventing /usr/lib/systemd/systemd-homed from 'getattr' accesses ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:dd53fe27a63edddf72f5bb04655...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-22 21:03 UTC by Joel Craycroft
Modified: 2025-09-14 01:35 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-41.47-1.fc41
Clone Of:
Environment:
Last Closed: 2025-09-14 01:35:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.36 KB, text/plain)
2025-02-22 21:03 UTC, Joel Craycroft
no flags Details
File: os_info (718 bytes, text/plain)
2025-02-22 21:03 UTC, Joel Craycroft
no flags Details

Description Joel Craycroft 2025-02-22 21:03:34 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-homed from 'getattr' accesses on the filesystem /dev/shm.

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

If you believe that systemd-homed should be allowed getattr access on the shm filesystem 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-homed' --raw | audit2allow -M my-systemdhomed
# semodule -X 300 -i my-systemdhomed.pp

Additional Information:
Source Context                system_u:system_r:systemd_homed_t:s0
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                /dev/shm [ filesystem ]
Source                        systemd-homed
Source Path                   /usr/lib/systemd/systemd-homed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-udev-256.7-1.fc41.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.20-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.20-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.11.4-301.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sun Oct 20 15:02:33 UTC 2024
                              x86_64
Alert Count                   1
First Seen                    2025-02-22 20:51:35 EST
Last Seen                     2025-02-22 20:51:35 EST
Local ID                      d011d1a5-a8a0-44c6-85b3-f538f319c57d

Raw Audit Messages
type=AVC msg=audit(1740275495.25:88): avc:  denied  { getattr } for  pid=1711 comm="systemd-homed" name="/" dev="tmpfs" ino=1 scontext=system_u:system_r:systemd_homed_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem permissive=0


type=SYSCALL msg=audit(1740275495.25:88): arch=x86_64 syscall=statfs success=no exit=EACCES a0=7f5769b39b60 a1=7ffcebf5a6f0 a2=11 a3=55efd1227db0 items=0 ppid=1 pid=1711 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-homed exe=/usr/lib/systemd/systemd-homed subj=system_u:system_r:systemd_homed_t:s0 key=(null)

Hash: systemd-homed,systemd_homed_t,tmpfs_t,filesystem,getattr

Version-Release number of selected component:
selinux-policy-targeted-41.20-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /usr/lib/systemd/systemd-homed from 'getattr' accesses on the filesystem /dev/shm.
package:        selinux-policy-targeted-41.20-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.11.4-301.fc41.x86_64
component:      selinux-policy

Comment 1 Joel Craycroft 2025-02-22 21:03:37 UTC
Created attachment 2077416 [details]
File: description

Comment 2 Joel Craycroft 2025-02-22 21:03:38 UTC
Created attachment 2077417 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-03-10 15:32:04 UTC
Hi, 

can you temporarily switch to SELinux permissive mode and collect all denials? Full auditing would be nice enhancement.
Do you happen to know what is the condition needed to trigger this denial?

https://fedoraproject.org/wiki/SELinux/Debugging#Enable_full_auditing

setenforce 0
<reproduce>
setenforce 1

Comment 4 Joel Craycroft 2025-03-17 16:12:37 UTC
Hello, I am not quite sure because at the time the issue occurred I had booted from a usb flash drive live usb on Fedora Linux Cinnamon Version 41 at the time. So, Sorry about that anyways!. Have a great day ahead anyways and stay safe also..

Comment 5 Fedora Update System 2025-09-09 17:04:57 UTC
FEDORA-2025-acfddac85e (selinux-policy-41.47-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-acfddac85e

Comment 6 Fedora Update System 2025-09-10 02:41:30 UTC
FEDORA-2025-acfddac85e has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-acfddac85e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-acfddac85e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-09-14 01:35:22 UTC
FEDORA-2025-acfddac85e (selinux-policy-41.47-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


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