]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Merge commit 'debian/1.0.7-2'
authorBen Hutchings <ben@decadent.org.uk>
Tue, 13 Jul 2010 03:03:30 +0000 (04:03 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Jul 2010 03:03:30 +0000 (04:03 +0100)
Conflicts:
debian/changelog

13 files changed:
debian/changelog
debian/control
debian/nfs-common.conffiles
debian/nfs-common.config [new file with mode: 0644]
debian/nfs-common.default
debian/nfs-common.files
debian/nfs-common.init
debian/nfs-common.templates [new file with mode: 0644]
debian/nfs-kernel-server.config [new file with mode: 0644]
debian/nfs-kernel-server.default
debian/nfs-kernel-server.init
debian/nfs-kernel-server.templates [new file with mode: 0644]
debian/rules

index 9128b9953e56ce3b65fabac328fe7997fb3d2b7d..c7fe13b5f85aa09ff39379e323de9ecca421fa6d 100644 (file)
@@ -1,24 +1,11 @@
-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
 
index 9f6394b0510321b4d899d00142f2484c3e89111b..737344b4c0461c8f2822e5c0eb2330d78dfb97bd 100644 (file)
@@ -1,8 +1,8 @@
 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
index 70e74f529feaa9313ca81e82171ee1a0d39b64d4..1e04e55a556899c27d87c2abf5d4042d6145d12b 100644 (file)
@@ -1,4 +1,2 @@
 /etc/default/nfs-common
 /etc/init.d/nfs-common
-/etc/idmapd.conf
-/etc/gssapi_mech.conf
diff --git a/debian/nfs-common.config b/debian/nfs-common.config
new file mode 100644 (file)
index 0000000..5edd12c
--- /dev/null
@@ -0,0 +1,10 @@
+#!/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
index a8287de5ebb6625a87ffdfb4b648abf301db9969..664c2e7a959b7d60c1ebeb6066836507b9c8b131 100644 (file)
@@ -6,11 +6,3 @@ STATDOPTS=
 # 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
index 43fca56655ecc04e7ac31c17000fbce74c06861f..2a4dd89aa2d1745e8206970f62c29d5f4cc074c3 100644 (file)
@@ -1,6 +1,4 @@
 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*
index b6fb962e8692b4125c475afe510cc11938e936b6..59fc59df6fecad7429ec9b24a762a5b72675630e 100755 (executable)
@@ -18,12 +18,6 @@ DESC="NFS common utilities"
 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
@@ -52,26 +46,7 @@ esac
 
 # 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
@@ -87,46 +62,11 @@ 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"
diff --git a/debian/nfs-common.templates b/debian/nfs-common.templates
new file mode 100644 (file)
index 0000000..91f67f7
--- /dev/null
@@ -0,0 +1,5 @@
+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.
diff --git a/debian/nfs-kernel-server.config b/debian/nfs-kernel-server.config
new file mode 100644 (file)
index 0000000..de5df58
--- /dev/null
@@ -0,0 +1,15 @@
+#!/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
index 3885575350edb689786be2a583eae80fe2c192a6..4c6110b8dbd212a9c8c3626facd727240f77bd90 100644 (file)
@@ -3,7 +3,3 @@ RPCNFSDCOUNT=8
 
 # 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
index 11ff438b46f26588b60bba2109a1cb158882b119..0894f2038be86bcd0b17939b8f9503eb36621600 100755 (executable)
@@ -17,61 +17,29 @@ DESC="NFS kernel daemon"
 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
@@ -105,13 +73,6 @@ case "$1" in
        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
diff --git a/debian/nfs-kernel-server.templates b/debian/nfs-kernel-server.templates
new file mode 100644 (file)
index 0000000..85d86e4
--- /dev/null
@@ -0,0 +1,17 @@
+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.
index 74fec5fb01c77973eeef71b1941f27e94f58cf21..4c8834b9a972912d7581f23fab1e91b3b357b29b 100755 (executable)
@@ -46,7 +46,6 @@ binary-arch: build
        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