Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340797 - net-fs/nfs-utils-1.2.3 static port bind fails
Summary: net-fs/nfs-utils-1.2.3 static port bind fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Network Filesystems
URL: https://bugzilla.linux-nfs.org/show_b...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 04:12 UTC by John J. Aylward
Modified: 2010-11-14 00:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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