This file is indexed.

/etc/init/gssd-mounting.conf is in nfs-common 1:1.2.8-6ubuntu1.

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
# gssd-mounting

description "Block the mounting event for NFS4 filesytems until gssd is running"
author "Steve Langasek <steve.langasek@canonical.com>"

instance $MOUNTPOINT

start on mounting TYPE=nfs* OPTIONS=*sec*krb5*
stop on started gssd or stopped gssd
task

# This is required so that the task is still considered
# successful when it gets killed
normal exit TERM

script

  DEFAULTFILE=/etc/default/nfs-common

  if [ -f "$DEFAULTFILE" ]; then
    . "$DEFAULTFILE"
  fi

  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; }

  status gssd | grep -q "start/running" && exit 0

  # If it's already starting we'll get killed by the impending 'stop on
  # started gssd' 
  # If it wasn't already starting, we'll either get killed by the stop
  # on started or stopped.
  # So, its safe to sleep forever here and rely on upstart to kill us,

  while sleep 3600; do :; done
end script