Bug 1773430

Summary: SELinux is preventing rpcbind from 'name_bind' accesses on the udp_socket puerto 64813.
Product: [Fedora] Fedora Reporter: Juan Orti Alcaine <jorti>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 31CC: brian, dan, dwalsh, lvrabec, mgrepl, plautrba, rfilo, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:353bb6bd6a8e04006146647683af50286d24b157900427787a028d67f4c84d5a;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-28 14:43:22 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:

Description Juan Orti Alcaine 2019-11-18 07:05:39 UTC
Description of problem:
SELinux is preventing rpcbind from 'name_bind' accesses on the udp_socket puerto 64813.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

Si quiere allow system to run with NIS
Then debe informar a SELinux de ello activando el indicador 'nis_enabled'.
Puede leer la página de manual 'rpcbind_selinux' para más detalles.
Do
setsebool -P nis_enabled 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

Si cree que de manera predeterminada se debería permitir a rpcbind el acceso name_bind sobre  puerto 64813 udp_socket.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
permita el acceso temporalmente ejecutando:
# ausearch -c 'rpcbind' --raw | audit2allow -M mi-rpcbind
# semodule -X 300 -i mi-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                puerto 64813 [ udp_socket ]
Source                        rpcbind
Source Path                   rpcbind
Port                          64813
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.4-40.fc31.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.3.11-300.fc31.x86_64 #1 SMP Tue
                              Nov 12 19:08:07 UTC 2019 x86_64 x86_64
Alert Count                   3
First Seen                    2019-11-11 16:30:46 CET
Last Seen                     2019-11-18 08:03:27 CET
Local ID                      b3439bbe-97e7-4562-8ffb-8f8d25e2a173

Raw Audit Messages
type=AVC msg=audit(1574060607.470:593): avc:  denied  { name_bind } for  pid=11277 comm="rpcbind" src=64813 scontext=system_u:system_r:rpcbind_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket permissive=0


Hash: rpcbind,rpcbind_t,unreserved_port_t,udp_socket,name_bind

Version-Release number of selected component:
selinux-policy-3.14.4-40.fc31.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.11.3
hashmarkername: setroubleshoot
kernel:         5.3.11-300.fc31.x86_64
type:           libreport

Potential duplicate: bug 1563792

Comment 1 Brian J. Murrell 2019-11-20 14:48:46 UTC
Similar problem has been detected:

Don't know why this happened.

hashmarkername: setroubleshoot
kernel:         5.3.11-300.fc31.x86_64
reason:         SELinux is preventing rpcbind from 'name_bind' accesses on the udp_socket port 62126.
type:           libreport

Comment 2 dan 2019-11-25 01:37:56 UTC
*** Bug 1776053 has been marked as a duplicate of this bug. ***

Comment 3 Richard Fiľo 2019-11-28 14:43:22 UTC

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