This file is indexed.

/usr/share/exim4/exim4_refresh_gnutls-params is in exim4-base 4.76-3ubuntu3.4.

This file is owned by root:root, with mode 0o755.

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
#!/bin/sh
set -e

if [ -n "$EX4DEBUG" ]; then
  echo "now debugging $0 $@"
  set -x
fi


# regenerate $EXIM4_SPOOLDIR/gnutls-params
# As this can take _very_ long on machines with little entropy, we limit
# the maximum runtime to 2*$CERTTOOLTIMEOUT seconds and keep using the
# old file otherwise.

# Only do anything if exim4 is actually installed
if [ ! -x /usr/lib/exim4/exim4 ]; then
  exit 0
fi

# Only do anyting if TLS is enabled in exim
if [ -z "$(/usr/lib/exim4/exim4 -bP tls_advertise_hosts | sed 's/.*=[[:space:]]\(.*\)/\1/')" ]; then 
  # TLS disabled
  exit 0
fi

TIMEOUT=${1:-1800}

EXIM4_SPOOLDIR="${EXIM4_SPOOLDIR:-$(/usr/lib/exim4/exim4 -bP spool_directory | sed 's/.*=[[:space:]]\(.*\)/\1/')}"
cd $EXIM4_SPOOLDIR

PARAMFILE="$EXIM4_SPOOLDIR/gnutls-params"

tempgnutls=$(tempfile --directory $EXIM4_SPOOLDIR --mode 644 --prefix  "gnutp" )

if [ -x /usr/bin/certtool ] ; then
  # GnuTLS
  if /usr/share/exim4/timeout.pl \
      "$TIMEOUT" /usr/bin/certtool --generate-dh-params --bits 2048 \
      > "$tempgnutls" 2> /dev/null ; then
    mv -f "$tempgnutls" "$PARAMFILE"
  else
    rm -f "$tempgnutls"
  fi
elif [ -x /usr/bin/openssl ] ;then
  # OpenSSL
  if HOME=$EXIM4_SPOOLDIR /usr/share/exim4/timeout.pl \
      "$TIMEOUT" /usr/bin/openssl dhparam 2048 \
      > "$tempgnutls" 2> /dev/null ; then
    mv -f "$tempgnutls" "$PARAMFILE"
  else
    rm -f "$tempgnutls"
  fi
else
  # neither GnuTLS nor OpenSSL installed, have exim generate the DH params
  rm -f "$PARAMFILE" "$tempgnutls"
fi

# vim:tabstop=2:expandtab:shiftwidth=2