Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 340797

Summary: net-fs/nfs-utils-1.2.3 static port bind fails
Product: Gentoo Linux Reporter: John J. Aylward <john>
Component: [OLD] ServerAssignee: Network Filesystems <net-fs>
Status: RESOLVED FIXED    
Severity: normal CC: jlec
Priority: High    
Version: 10.0   
Hardware: AMD64   
OS: Linux   
URL: https://bugzilla.linux-nfs.org/show_bug.cgi?id=190
Whiteboard:
Package list:
Runtime testing required: ---

Description John J. Aylward 2010-10-13 04:12:22 UTC
in /etc/conf.d/nfs setting
OPTS_RPC_MOUNTD="-p 32767"

will cause /etc/init.d/nfs to display the following messages:
 * Starting NFS mountd ...
rpc.mountd: svc_tli_create: could not bind to requested address
rpc.mountd: svc_tli_create: could not bind to requested address
rpc.mountd: svc_tli_create: could not bind to requested address
rpc.mountd: svc_tli_create: could not bind to requested address
rpc.mountd: svc_tli_create: could not bind to requested address
rpc.mountd: svc_tli_create: could not bind to requested address
rpc.mountd: svc_tli_create: could not bind to requested address
rpc.mountd: svc_tli_create: could not bind to requested address                                        [ ok ]

connections from clients then fail to connect with a "mount(2) permission denied" message.

prior to starting the nfs service the port was available, after starting the service netstat shows:
sudo netstat -lap | grep mountd
tcp        0      0 *:32767                 *:*                     LISTEN      17848/rpc.mountd    
udp        0      0 *:32767                 *:*                                 17848/rpc.mountd


when the -p flag isn't used and the service is started netstat shows:
$ sudo netstat -lap | grep mountd
tcp        0      0 *:43245                 *:*                     LISTEN      18327/rpc.mountd    
udp        0      0 *:60772                 *:*                                 18327/rpc.mountd

and no errors are reported.

Prior to 1.2.3 the -p flag worked as expected with no errors.

Reproducible: Always

Steps to Reproduce:
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2010-10-26 07:59:41 UTC
There is an upstream bug for it.
Comment 2 SpanKY gentoo-dev 2010-11-14 00:49:19 UTC
thanks, ive added the upstream patch to 1.2.3-r1