Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2005 09:14:51 +0100
From:      Steve Clement <steve@ion.lu>
To:        green@FreeBSD.org,  ports@FreeBSD.org
Subject:   security/cfs rc-change
Message-ID:  <43AA607B.70202@ion.lu>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigAB1F5F272E17E47BD6116980
Content-Type: multipart/mixed; boundary="------------010300030103050201060303"

This is a multi-part message in MIME format.
--------------010300030103050201060303
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi,

a while back I sent you this and it isn't in ports yet, so I will send
again...

Some people need flags to mount, eg: mount -o port=blabla,noinet6 .....

so in rc.conf:
cfsd_nfs_flags="noinet6"

                mount -o port="$cfsd_port",nfsv2,"$cfsd_nfs_flags"
localhost:/usr/local/cfsd-bootstrap "$cfsd_mountpoint"

Patch to cfsd.sh attached.

Thanks,

Steve C

-- 
ION Network Solutions
Steve Clement
Unix System Administrator
209, rue des Romains
L-8041 Bertrange
Tel: +352 261 276-2
Fax: +352 261 276-9
mailto:steve@ion.lu
http://www.ion.lu



--------------010300030103050201060303
Content-Type: text/plain;
 name="cfsd.sh-ports.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="cfsd.sh-ports.diff"

--- cfsd.sh-pristine	Thu Dec 22 09:11:44 2005
+++ cfsd.sh	Thu Dec 22 09:11:23 2005
@@ -15,6 +15,7 @@
 #
 # cfsd_port="3049"		# the port to listen to
 # cfsd_mountpoint="/crypt"	# the CFS mountpoint
+# cfsd_nfs_flags="noinet6"    # nfs options
 #
 
 . /etc/rc.subr
@@ -29,7 +30,7 @@
 cfsd_poststart()
 {
 	if [ -n "$cfsd_mountpoint" ]; then
-		mount -o port="$cfsd_port",nfsv2 localhost:/usr/local/cfsd-bootstrap "$cfsd_mountpoint"
+		mount -o port="$cfsd_port",nfsv2,"$cfsd_nfs_flags" localhost:/usr/local/cfsd-bootstrap "$cfsd_mountpoint"
 	fi
 }
 

--------------010300030103050201060303--

--------------enigAB1F5F272E17E47BD6116980
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDqmB7MH8DIBsiCrgRAzZOAJ4nsqKh3oJdpei5mYSzjNaTmhfp/wCeNhrC
OhfEXbjNfI/gcUxng6EbyME=
=g6IM
-----END PGP SIGNATURE-----

--------------enigAB1F5F272E17E47BD6116980--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43AA607B.70202>