Skip site navigation (1)Skip section navigation (2)

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

From:Thiemo Nordenholz <list+kilncd01jljrzlqt@thiemo.net>
Date:Fri, 10 Apr 2009 12:03:26 +0200 (CEST)
Subject:security/cfs rc script needs "mntudp" option on 8-CURRENT
Send-pr version:3.113

Number:133563
Category:ports
Synopsis:security/cfs rc script needs "mntudp" option on 8-CURRENT
Severity:serious
Priority:medium
Responsible:freebsd-ports-bugs@FreeBSD.org
State:open
Class:change-request
Arrival-Date:Fri Apr 10 10:40:01 UTC 2009
Closed-Date:
Last-Modified:never
Originator:Thiemo Nordenholz
Release:FreeBSD 8.0-CURRENT i386

Organization:
 
Environment:
System: FreeBSD 8.0-CURRENT as of April 3, 2009
Ports collection as of April 10, 2009
Description:
Installed and started the CFS port (cfs-1.4.1_5).

When /usr/local/etc/rc.d/cfsd tries to mount the cfsd-bootstrap
directory over local NFS (in cfsd_poststart()), mount_nfs will
hang, causing a log entry every second:

Apr 9 17:52:26 feynman kernel: TCP: [127.0.0.1]:616 to
[127.0.0.1]:3049 tcpflags 0x2<SYN>; tcp_input: Connection attempt
to closed port

Attempts to kill mount_nfs failed.

The issue was solved by adding the "mntudp" option to the init
script so that cfsd_poststart() now does:

mount -o port="$cfsd_port",nfsv2,mntudp
localhost:/usr/local/cfsd-bootstrap "$cfsd_mountpoint"
How-To-Repeat:
On 8-CURRENT:
Install cfsd port, and prepare system as describe in the port's
pkg-message. Start cfsd, problem will occur.
 
Fix:
Add the "mntudp" option to /usr/local/etc/rc.d/cfsd.
However, this needs only to be done on CURRENT systems - if I had
a good idea how to integrate this in the port, I'd submit a patch,
but making an OSVERSION dependant hack in the Makefile seems a bit
dirty.
Release-Note:
 
Audit-Trail:
Unformatted:
 
Submit Followup | Raw PR | Find another PR