Bug 2541947 - Lots of AVC denials for access to io.systemd.NamespaceResource tmpfs
Summary: Lots of AVC denials for access to io.systemd.NamespaceResource tmpfs
Keywords:
Status: ON_QA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 45
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2548363 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-26 19:09 UTC by Rich
Modified: 2026-10-23 13:01 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
SELinux Denials (105.51 KB, text/plain)
2026-09-29 21:48 UTC, Rich
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 3445 0 None open Allow multiple domains read systemd-nsresourced runtime socket file 2026-10-02 17:06:04 UTC
Github fedora-selinux selinux-policy pull 3456 0 None open Allow polkit-auth read systemd-nsresourced runtime socket file 2026-10-07 11:11:04 UTC

Description Rich 2026-09-26 19:09:53 UTC
Since upgrading to Fedora 45 Silverblue (I am not sure yet if this affects Workstation) there is a LOT of SELinux AVC denials. An example of a small subset (though all save the same target):

audit[10360]: AVC avc:  denied  { read } for  pid=10360 comm="systemd-userwor" name="io.systemd.NamespaceResource" dev="tmpfs" ino=1242 scontext=system_u:system_r:systemd_userdbd_t:s0 tcontext=system_u:object_r:systemd_nsresourced_runtime_t:s0 tclass=sock_file permissive=0

audit[1027]: AVC avc:  denied  { read } for  pid=1027 comm="accounts-daemon" name="io.systemd.NamespaceResource" dev="tmpfs" ino=1242 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:systemd_nsresourced_runtime_t:s0 tclass=sock_file permissive=0

audit[977]: AVC avc:  denied  { read } for  pid=977 comm="polkitd" name="io.systemd.NamespaceResource" dev="tmpfs" ino=1242 scontext=system_u:system_r:policykit_t:s0 tcontext=system_u:object_r:systemd_nsresourced_runtime_t:s0 tclass=sock_file permissive=0


I believe they are trying to use a socket at: /run/systemd/io.systemd.NamespaceResource

Currently it is unclear exactly what this breaks.

Reproducible: Always

Steps to Reproduce:
1.Install Fedora Silverblue 45 onto something
2.journalctl -b | grep -i avc
Actual Results:
Lots of AVC/SELinux errors

Expected Results:
Not lots of AVC/SELinux errors

Comment 1 Zdenek Pytela 2026-09-29 17:49:07 UTC
Hi,

Can you switch the system to permissive mode and gather all denials?

setenforce 0
<reproduce>
ausearch -i -m avc,user_avc,selinux_err,user_selinux_err -ts boot

Does it all happen when the services start?

Comment 2 Rich 2026-09-29 21:47:30 UTC
Thanks for the reply. Some services trigger the message a lot (NetworkManager for example) - so its not just at service start.

I'll have to attach the denials as a separate file - as there are lots. See "selinux.txt"

Thanks

Comment 3 Rich 2026-09-29 21:48:02 UTC
Created attachment 2159093 [details]
SELinux Denials

Comment 5 Christian Labisch 2026-10-02 10:20:55 UTC
I can confirm that an upgrade from 44 to 45 on Workstation is affected as well.

On a fresh installation, the io.systemd.NamespaceResource denials don’t appear.

Comment 6 Fedora Update System 2026-10-06 07:38:14 UTC
FEDORA-2026-d1b11bf36b (selinux-policy-45.21-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-d1b11bf36b

Comment 7 Fedora Update System 2026-10-07 01:59:20 UTC
FEDORA-2026-d1b11bf36b has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-d1b11bf36b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d1b11bf36b

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

Comment 8 Christian Labisch 2026-10-07 10:48:04 UTC
This update generally works fine and solves the problem, all SELinux AVC denials are gone, except for
SELinux is preventing pkla-check-auth from read access on the sock_file io.systemd.NamespaceResource.

Additional Information:
Source Context                system_u:system_r:policykit_auth_t:s0
Target Context                system_u:object_r:systemd_nsresourced_runtime_t:s0
Target Objects                io.systemd.NamespaceResource [ sock_file ]
Source                        pkla-check-auth
Source Path                   pkla-check-auth
Port                          <Unknown>
Host                          xxxxxxxx
Source RPM Packages           
Target RPM Packages  
SELinux Policy RPM            selinux-policy-targeted-45.21-1.fc45.noarch
Local Policy RPM              selinux-policy-targeted-45.21-1.fc45.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     xxxxxxxx
Platform                      Linux xxxxxxxx 7.2.9-300.fc45.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Oct  3 16:19:58 UTC 2026
                              x86_64
Alert Count                   334
First Seen                    2026-10-07 12:30:21 CEST
Last Seen                     2026-10-07 12:30:38 CEST
Local ID                      b9282752-9168-478d-9eb6-703f24c7fae5

Raw Audit Messages
type=AVC msg=audit(1791369038.930:540): avc:  denied  { read } for  pid=5474 comm="pkla-check-auth" name="io.systemd.NamespaceResource" dev="tmpfs" ino=1296 scontext=system_u:system_r:policykit_auth_t:s0 tcontext=system_u:object_r:systemd_nsresourced_runtime_t:s0 tclass=sock_file permissive=0

Comment 9 Zdenek Pytela 2026-10-07 11:11:05 UTC
thanks, updating

Comment 10 Christian Labisch 2026-10-08 09:30:06 UTC
A new one appeared after accessing the system via ssh. Again, it occurs only on upgraded systems :
SELinux is preventing sshd-session from read access on the sock_file io.systemd.NamespaceResource.

Additional Information:
Source Context                system_u:system_r:sshd_session_t:s0-s0:c0.c1023
Target Context                system_u:object_r:systemd_nsresourced_runtime_t:s0
Target Objects                io.systemd.NamespaceResource [ sock_file ]
Source                        sshd-session
Source Path                   sshd-session
Port                          <Unknown>
Host                          xxxxxxxx
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-45.21-1.fc45.noarch
Local Policy RPM              selinux-policy-targeted-45.21-1.fc45.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     xxxxxxxx
Platform                      Linux xxxxxxxx 7.2.9-300.fc45.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Oct  3 16:19:58 UTC 2026
                              x86_64
Alert Count                   2
First Seen                    2026-10-08 09:52:04 CEST
Last Seen                     2026-10-08 09:52:04 CEST
Local ID                      4a85d8f6-d9f7-4f60-ac4a-5b2a8bf55e65

Raw Audit Messages
type=AVC msg=audit(1791445924.160:314): avc:  denied  { read } for  pid=2793 comm="sshd-session" name="io.systemd.NamespaceResource" dev="tmpfs" ino=1296 scontext=system_u:system_r:sshd_session_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_nsresourced_runtime_t:s0 tclass=sock_file permissive=0

Comment 11 Zdenek Pytela 2026-10-09 08:38:48 UTC
*** Bug 2548363 has been marked as a duplicate of this bug. ***

Comment 12 Christian Labisch 2026-10-23 12:26:08 UTC
Hi Zdenek ! Just want to let you know that the new version 45.22-1.fc45 seems to have solved the problem. No denials after a reboot of the system. Thank you !

Comment 13 Zdenek Pytela 2026-10-23 13:01:16 UTC
Thanks for the feedback, Christian.


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