Bug 2464506

Summary: SELinux is preventing rpcbind from 'name_bind' accesses on the udp_socket porte 61150.
Product: [Fedora] Fedora Reporter: Davide Repetto <red>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 44CC: dwalsh, lvrabec, mmalik, omosnacek, pkoncity, red, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:353bb6bd6a8e04006146647683af50286d24b157900427787a028d67f4c84d5a;VARIANT_ID=matecompiz;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-06-12 15:31:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: description
none
File: os_info none

Description Davide Repetto 2026-05-01 15:50:58 UTC
Description of problem:
SELinux is preventing rpcbind from 'name_bind' accesses on the udp_socket porte 61150.

*****  Plugin bind_ports (92.2 confidence) suggests   ************************

Se si desidera permettere che rpcbind si associ alla porta di rete 61150
Then you need to modify the port type.
Do
# semanage port -a -t PORT_TYPE -p udp 61150
    dove PORT_TYPE è uno dei seguenti: agentx_port_t, apertus_ldp_port_t, comsat_port_t, dhcpc_port_t, dhcpd_port_t, dns_port_t, efs_port_t, flash_port_t, ftp_port_t, gdomap_port_t, hi_reserved_port_t, inetd_child_port_t, ipmi_port_t, ipp_port_t, kerberos_admin_port_t, kerberos_port_t, kprop_port_t, ktalkd_port_t, ldap_port_t, pki_ca_port_t, pop_port_t, portmap_port_t, printer_port_t, rlogin_port_t, rlogind_port_t, rndc_port_t, router_port_t, rsh_port_t, rsync_port_t, rtsp_port_t, rwho_port_t, smtp_port_t, spamd_port_t, swat_port_t, syslogd_port_t, uucpd_port_t.

*****  Plugin catchall_boolean (7.83 confidence) suggests   ******************

Se si desidera abilitare la seguente funzione: allow nis to enabled
Then è necessario informare SELinux abilitando il booleano 'nis_enabled' .

Do
setsebool -P nis_enabled 1

*****  Plugin catchall (1.41 confidence) suggests   **************************

Se si ritiene che a rpcbind debba essere consentito l'accesso name_bind su udp_socket porte 61150 per impostazione predefinita.
Then si dovrebbe segnalare il problema come bug.
È possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per ora eseguendo:
# ausearch -c 'rpcbind' --raw | audit2allow -M my-$MODULE_NOME
# semodule -X 300 -i mio-rpcbind.pp

Additional Information:
Source Context                system_u:system_r:rpcbind_t:s0
Target Context                system_u:object_r:unreserved_port_t:s0
Target Objects                porte 61150 [ udp_socket ]
Source                        rpcbind
Source Path                   rpcbind
Port                          61150
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-44.1-1.fc44.noarch
Local Policy RPM              selinux-policy-targeted-44.1-1.fc44.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.19.14-300.fc44.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Apr 23 15:17:50 UTC 2026
                              x86_64
Alert Count                   1
First Seen                    2026-05-01 17:46:55 CEST
Last Seen                     2026-05-01 17:46:55 CEST
Local ID                      c2151e44-0cfe-4a14-8146-21a49cb252e1

Raw Audit Messages
type=AVC msg=audit(1777650415.238:5373): avc:  denied  { name_bind } for  pid=247366 comm="rpcbind" src=61150 scontext=system_u:system_r:rpcbind_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket permissive=1


Hash: rpcbind,rpcbind_t,unreserved_port_t,udp_socket,name_bind

Version-Release number of selected component:
selinux-policy-targeted-44.1-1.fc44.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing rpcbind from 'name_bind' accesses on the udp_socket porte 61150.
package:        selinux-policy-targeted-44.1-1.fc44.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.19.14-300.fc44.x86_64
component:      selinux-policy

Comment 1 Davide Repetto 2026-05-01 15:51:00 UTC
Created attachment 2138995 [details]
File: description

Comment 2 Davide Repetto 2026-05-01 15:51:02 UTC
Created attachment 2138996 [details]
File: os_info

Comment 3 Zdenek Pytela 2026-06-12 15:31:23 UTC

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