ports/133563: security/cfs rc script needs "mntudp" option on 8-CURRENT

Yar Tikhiy yar at freebsd.org
Fri Jan 14 00:10:07 UTC 2011


The following reply was made to PR ports/133563; it has been noted by GNATS.

From: Yar Tikhiy <yar at freebsd.org>
To: bug-followup at freebsd.org
Cc:  
Subject: Re: ports/133563: security/cfs rc script needs "mntudp" option on 8-CURRENT
Date: Fri, 14 Jan 2011 10:38:29 +1100

 Hi there,
 
 This problem report is still relevant.  Please note that the original
 discussion missed a few points.
 
 First of all, the suggested fix is not quite correct.  The mount
 option needed here is spelled "udp" not "mntudp", the difference being
 that "mntudp" is to force _mount_ protocol to UDP transport and it
 does so to NFS protocol, too, only as a side effect in more recent
 mount_nfs revisions.
 
 Cfsd is an old NFS daemon and it has no support for TCP transport
 soever.  Hence the error:
 
 [tcp] localhost:/usr/local/cfsd-bootstrap: nfsd: RPCPROG_NFS: RPC:
 Remote system error - Connection refused
 [tcp6] localhost:/usr/local/cfsd-bootstrap: nfsd: RPCPROG_NFS: RPC:
 Remote system error - Connection refused
 
 The fix indeed is FreeBSD version specific.  Unfortunately, historic
 mount_nfs revisions had no "udp" option because it was default.
 
 The workaround can be to use %%FOO%% magic to insert the udp option in
 cfsd.sh.in if the OS version is 8.x or newer.  The resulting mount_nfs
 opts need to look like this (in any order):
 
 udp,port="$cfsd_port",nfsv2
 
 Thanks,
 Yar



More information about the freebsd-ports-bugs mailing list