-nfs-utils (1:1.0.7-2) unstable; urgency=low
+nfs-utils (1:1.0.6-3.1) unstable; urgency=HIGH
- * Orphaning package.
- * Upstream CVS sync:
- > Support "no_acl" export option, for the few specially patched
- kernels that understand it. (Closes: #253824)
- > Fix FTBTS on amd64. (Closes: #297729)
- > Update config.{guess,sub}. (Closes: #300552)
-
- -- Chip Salzenberg <chip@debian.org> Thu, 7 Apr 2005 09:07:24 -0400
-
-nfs-utils (1:1.0.7-1) unstable; urgency=medium
-
- * Acknowledge NMU; thanks to joeyh. (closes: #287053)
- * New upstream version:
- > Add support for NFSv4.
- > Ignore SIGPIPE, fixing a remote DOS. Note that the previous
- NMU already fixed this bug. (CAN-2004-1014)
- > At long last, fix "erroneous SM_UNMON" warnings. (closes: #165744)
+ * NMU
+ * Ignore SIGPIPE to avoid statd dying when peers close their
+ TCP connection while we're trying to reply to them.
+ (CAN-2004-1014) Closes: #284971
- -- Chip Salzenberg <chip@debian.org> Tue, 11 Jan 2005 23:31:05 -0500
+ -- Joey Hess <joeyh@debian.org> Wed, 5 Jan 2005 07:39:41 -0500
nfs-utils (1:1.0.6-3) unstable; urgency=medium
Source: nfs-utils
Priority: standard
Section: net
-Maintainer: Debian QA Group <packages@qa.debian.org>
-Build-Depends: debhelper (>= 4.1.16), libwrap0-dev, libevent-dev, libnfsidmap-dev, libkrb5-dev
+Maintainer: Chip Salzenberg <chip@debian.org>
+Build-Depends: debhelper (>= 4.1.16), libwrap0-dev
Standards-Version: 3.1.1.1
Package: nfs-kernel-server
/etc/default/nfs-common
/etc/init.d/nfs-common
-/etc/idmapd.conf
-/etc/gssapi_mech.conf
--- /dev/null
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+if egrep -q 'ALL|[0-9]\.' /etc/hosts.deny
+then
+ db_input high nfs-common/tcpwrappers-statd || true
+fi
+
+db_go
# Are you _sure_ that your kernel does or does not need a lockd daemon?
# If so, set this variable to either "yes" or "no".
NEED_LOCKD=
-
-# If you are not using NFSv4 and wish to disable the idmapd daemon,
-# then set NEED_IDMAPD to "no".
-NEED_IDMAPD=no
-
-# If you are not running NFS with RPCSEC_GSS security, and wish to
-# disable the gssd client daemon, then set NEED_GSSD to "no".
-NEED_GSSD=no
usr/sbin/nfsstat
-usr/sbin/rpc.gssd
-usr/sbin/rpc.idmapd
usr/share/man/man8/*lockd*
usr/share/man/man8/*statd*
usr/share/man/man8/nfsstat*
DEFAULTFILE=/etc/default/nfs-common
PREFIX=
NEED_LOCKD=
-NEED_IDMAPD=yes
-IDMAPD_PIDFILE=/var/run/rpc.idmapd.pid
-NEED_GSSD=yes
-GSSD_PIDFILE=/var/run/rpc.gssd.pid
-PIPEFS_MOUNTPOINT=/var/lib/nfs/rpc_pipefs
-RPCGSSDOPTS=
if [ -f $DEFAULTFILE ]; then
. $DEFAULTFILE
fi
# Exit if required binaries are missing.
[ -x $PREFIX/sbin/rpc.statd ] || exit 0
-[ -x $PREFIX/sbin/rpc.lockd ] || [ "$NEED_LOCKD" = no ] || exit 0
-[ -x /usr/sbin/rpc.idmapd ] || [ "$NEED_IDMAPD" = no ] || exit 0
-[ -x /usr/sbin/rpc.gssd ] || [ "$NEED_GSSD" = no ] || exit 0
-
-do_modprobe() {
- modprobe -q "$1" || true
-}
-
-do_mount() {
- if ! grep -E -qs "$1\$" /proc/filesystems
- then
- return 1
- fi
- if ! mountpoint -q "$2"
- then
- mount -t "$1" "$1" "$2"
- return
- fi
- return 0
-}
+[ -x $PREFIX/sbin/rpc.lockd ] || [ "$NEED_LOCKD" = no ] || exit 0
# See how we were called.
case "$1" in
start-stop-daemon --start --quiet \
--exec $PREFIX/sbin/rpc.lockd || true
fi
- if [ "$NEED_IDMAPD" = yes ] || [ "$NEED_GSSD" = yes ]
- then
- do_modprobe nfs
- if do_mount rpc_pipefs $PIPEFS_MOUNTPOINT
- then
- if [ "$NEED_IDMAPD" = yes ]
- then
- printf " idmapd"
- start-stop-daemon --start --quiet \
- --make-pidfile --pidfile $IDMAPD_PIDFILE \
- --exec /usr/sbin/rpc.idmapd
- fi
- if [ "$NEED_GSSD" = yes ]
- then
- printf " gssd"
- start-stop-daemon --start --quiet \
- --make-pidfile --pidfile $GSSD_PIDFILE \
- --exec /usr/sbin/rpc.gssd -- $RPCGSSDOPTS
- fi
- fi
- fi
echo "."
;;
stop)
printf "Stopping $DESC:"
- if [ "$NEED_GSSD" = yes ]
- then
- printf " gssd"
- start-stop-daemon --stop --oknodo --quiet \
- --name rpc.gssd --user 0
- rm -f $GSSD_PIDFILE
- fi
- if [ "$NEED_IDMAPD" = yes ]
- then
- printf " idmapd"
- start-stop-daemon --stop --oknodo --quiet \
- --name rpc.idmapd --user 0
- rm -f $IDMAPD_PIDFILE
- fi
if [ "$NEED_LOCKD" = yes ]
then
printf " lockd"
--- /dev/null
+Template: nfs-common/tcpwrappers-statd
+Type: note
+_Description: statd uses tcpwrappers
+ The statd daemon uses tcpwrappers to control access. To configure it, use
+ program name "statd" in /etc/hosts.allow and /etc/hosts.deny.
--- /dev/null
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+if grep -s '^/' /etc/exports | grep -vq sync
+then
+ db_input high nfs-kernel-server/sync-default || true
+fi
+
+if fgrep -q 'rpc' /etc/hosts.allow /etc/hosts.deny
+then
+ db_input high nfs-kernel-server/tcpwrappers-mountd || true
+fi
+
+db_go
# Options for rpc.mountd
RPCMOUNTDOPTS=
-
-# If you are not running NFS with RPCSEC_GSS security, and wish to
-# disable the gssd server daemon, then set NEED_SVCGSSD to "no".
-NEED_SVCGSSD=no
PREFIX=/usr
# Exit if required binaries are missing.
-[ -x $PREFIX/sbin/rpc.nfsd ] || exit 0
-[ -x $PREFIX/sbin/rpc.mountd ] || exit 0
-[ -x $PREFIX/sbin/exportfs ] || exit 0
-[ -x $PREFIX/sbin/rpc.svcgssd ] || exit 0
+[ -x $PREFIX/sbin/rpc.nfsd ] || exit 0
+[ -x $PREFIX/sbin/rpc.mountd ] || exit 0
+[ -x $PREFIX/sbin/exportfs ] || exit 0
# Read config
DEFAULTFILE=/etc/default/nfs-kernel-server
RPCNFSDCOUNT=8
RPCMOUNTDOPTS=
-NEED_SVCGSSD=yes
-RPCGSSDOPTS=
-RPCSVCGSSDOPTS=
-PROCNFSD_MOUNTPOINT=/proc/fs/nfsd
if [ -f $DEFAULTFILE ]; then
. $DEFAULTFILE
fi
-do_modprobe() {
- modprobe -q "$1" || true
-}
-
-do_mount() {
- if ! grep -E -qs "$1\$" /proc/filesystems
- then
- return 1
- fi
- if ! mountpoint -q "$2"
- then
- mount -t "$1" "$1" "$2"
- return
- fi
- return 0
-}
-
# See how we were called.
case "$1" in
start)
cd / # daemons should have root dir as cwd
if grep -q '^/' /etc/exports
then
- do_modprobe nfsd
- do_mount nfsd $PROCNFSD_MOUNTPOINT || NEED_SVCGSSD=no
printf "Exporting directories for $DESC..."
$PREFIX/sbin/exportfs -r
echo "done."
printf "Starting $DESC:"
- if [ "$NEED_SVCGSSD" = yes ]
- then
- printf " svcgssd"
- start-stop-daemon --start --quiet \
- --make-pidfile --pidfile /var/run/rpc.svcgssd.pid \
- --exec $PREFIX/sbin/rpc.svcgssd -- $RPCSVCGSSDOPTS
- fi
-
printf " nfsd"
start-stop-daemon --start --quiet \
--exec $PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT
printf "Stopping $DESC: mountd"
start-stop-daemon --stop --oknodo --quiet \
--name rpc.mountd --user 0
- if [ "$NEED_SVCGSSD" = yes ]
- then
- printf " svcgssd"
- start-stop-daemon --stop --oknodo --quiet \
- --name rpc.svcgssd --user 0
- rm -f /var/run/rpc.svcgssd.pid
- fi
printf " nfsd"
start-stop-daemon --stop --oknodo --quiet \
--name nfsd --user 0 --signal 2
--- /dev/null
+Template: nfs-kernel-server/sync-default
+Type: note
+_Description: NFS server defaults to synchronous writes
+ To comply with standards and increase data safety, the Linux NFS server
+ now defaults to synchronous writes. Since this is a major change, it is
+ not silent: All exports should be explicitly marked as either "sync" or
+ "async". Exports not so marked will elicit warnings.
+
+Template: nfs-kernel-server/tcpwrappers-mountd
+Type: note
+_Description: in /etc/hosts.{allow,deny}, replace "rpc.mountd" with "mountd"
+ The mount daemon uses tcpwrappers to control access. To configure it, use
+ program name "mountd" in /etc/hosts.allow and /etc/hosts.deny.
+ .
+ Older versions of nfs-kernel-server included a mount daemon that called
+ itself "rpc.mountd". Therefore, you should replace all occurrences of
+ "rpc.mountd" with "mountd" in /etc/hosts.allow and /etc/hosts.deny.
dh_testroot
dh_clean -k
dh_installdirs
- dh_install
# Add here commands to install the files into debian/tmp
$(MAKE) install_prefix='$(DEBTMP)' install
dh_movefiles