/etc/init/gssd.conf is in nfs-common 1:1.2.8-9ubuntu12.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | # gssd - rpcsec_gss daemon
# The rpcsec_gss protocol gives a means of using the GSS-API generic security
# API to provide security for protocols using RPC (in particular, NFS).
description "rpcsec_gss daemon"
author "Steve Langasek <steve.langasek@canonical.com>"
start on local-filesystems
stop on unmounted-remote-filesystems
expect fork
respawn
env DEFAULTFILE=/etc/default/nfs-common
env PIPEFS_MOUNTPOINT=/run/rpc_pipefs
pre-start script
do_modprobe() {
modprobe -q "$1" || true
}
if [ -f "$DEFAULTFILE" ]; then
. "$DEFAULTFILE"
fi
#
# Parse the fstab file, and determine whether we need gssd. (The
# /etc/defaults settings, if any, will override our autodetection.)
# This code is partially adapted from the mountnfs.sh script in the
# sysvinit package.
if [ -f /etc/fstab ]; then
exec 9<&0 </etc/fstab
while read DEV MTPT FSTYPE OPTS REST
do
case "$OPTS" in
sec=krb5|*,sec=krb5|sec=krb5,*|*,sec=krb5,*|sec=krb5i|*,sec=krb5i|sec=krb5i,*|*,sec=krb5i,*|sec=krb5p|*,sec=krb5p|sec=krb5p,*|*,sec=krb5p,*)
AUTO_NEED_GSSD=yes
;;
esac
done
exec 0<&9 9<&-
fi
case "$NEED_GSSD" in
yes|no)
;;
*)
NEED_GSSD=$AUTO_NEED_GSSD
;;
esac
[ "x$NEED_GSSD" = xyes ] || { stop; exit 0; }
# we need this available; better to fail now than
# mysteriously on the first mount
if ! grep -q -E '^nfs[ ]' /etc/services; then
echo "broken /etc/services, please see /usr/share/doc/nfs-common/README.Debian.nfsv4"
exit 1
fi
do_modprobe nfs
do_modprobe nfsd
do_modprobe rpcsec_gss_krb5
do_modprobe sunrpc
if ! mountpoint -q "$PIPEFS_MOUNTPOINT"
then
mkdir -p "$PIPEFS_MOUNTPOINT"
mount -t rpc_pipefs rpc_pipefs "$PIPEFS_MOUNTPOINT" || true
fi
end script
exec rpc.gssd
post-stop script
if mountpoint -q "$PIPEFS_MOUNTPOINT"
then
# ignore any failures caused by the filesystem still
# being in use
umount "$PIPEFS_MOUNTPOINT" || true
fi
end script
|