Bug 2219915 - SELinux is preventing nfsidmap from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.Machine.
Summary: SELinux is preventing nfsidmap from 'connectto' accesses on the unix_stream_s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:37396c3af3e7e0f30c816f02914...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-05 18:32 UTC by Thomas Neuber
Modified: 2023-07-18 01:24 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-38.21-1.fc38
Clone Of:
Environment:
Last Closed: 2023-07-18 01:24:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-07-05 18:32 UTC, Thomas Neuber
no flags Details
File: description (2.16 KB, text/plain)
2023-07-05 18:32 UTC, Thomas Neuber
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 1776 0 None open Allow nfsidmapd connect to systemd_machined over a unix socket 2023-07-11 08:00:55 UTC

Description Thomas Neuber 2023-07-05 18:32:13 UTC
Description of problem:
SELinux is preventing nfsidmap from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.Machine.

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

Wenn Sie denken, dass es nfsidmap standardmäßig erlaubt sein sollte, connectto Zugriff auf io.systemd.Machine unix_stream_socket 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 'nfsidmap' --raw | audit2allow -M my-nfsidmap
# semodule -X 300 -i my-nfsidmap.pp

Additional Information:
Source Context                system_u:system_r:nfsidmap_t:s0
Target Context                system_u:system_r:systemd_machined_t:s0
Target Objects                /run/systemd/userdb/io.systemd.Machine [
                              unix_stream_socket ]
Source                        nfsidmap
Source Path                   nfsidmap
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.20-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.20-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.3.8-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Jun 15 02:15:40 UTC 2023
                              x86_64
Alert Count                   132
First Seen                    2023-07-03 21:51:07 CEST
Last Seen                     2023-07-05 20:29:11 CEST
Local ID                      68b7047a-1625-49a2-b930-98f4507d39b1

Raw Audit Messages
type=AVC msg=audit(1688581751.862:466): avc:  denied  { connectto } for  pid=169704 comm="nfsidmap" path="/run/systemd/userdb/io.systemd.Machine" scontext=system_u:system_r:nfsidmap_t:s0 tcontext=system_u:system_r:systemd_machined_t:s0 tclass=unix_stream_socket permissive=0


Hash: nfsidmap,nfsidmap_t,systemd_machined_t,unix_stream_socket,connectto

Version-Release number of selected component:
selinux-policy-targeted-38.20-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.11
type:           libreport
hashmarkername: setroubleshoot
package:        selinux-policy-targeted-38.20-1.fc38.noarch
kernel:         6.3.8-200.fc38.x86_64
reason:         SELinux is preventing nfsidmap from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.Machine.
component:      selinux-policy
component:      selinux-policy

Comment 1 Thomas Neuber 2023-07-05 18:32:15 UTC
Created attachment 1974161 [details]
File: os_info

Comment 2 Thomas Neuber 2023-07-05 18:32:17 UTC
Created attachment 1974162 [details]
File: description

Comment 3 Fedora Update System 2023-07-14 11:59:54 UTC
FEDORA-2023-2663818afd has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2663818afd

Comment 4 Fedora Update System 2023-07-15 01:32:32 UTC
FEDORA-2023-2663818afd has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-2663818afd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2663818afd

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

Comment 5 Fedora Update System 2023-07-18 01:24:30 UTC
FEDORA-2023-2663818afd has been pushed to the Fedora 38 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.