This file is indexed.

/lib/vrfydmn/vrfydmn.service.generate is in vrfydmn 0.9.1-1.

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
59
60
61
#! /bin/sh
#
# Generate systemd override file from /etc/default

set -e

NAME=vrfydmn

RUNDIR=/var/run/$NAME
USER=$NAME
GROUP=$NAME
SOCKET=local:$RUNDIR/$NAME.sock

_RUNDIR=$RUNDIR
_USER=$USER
_GROUP=$GROUP
_SOCKET=$SOCKET

# Include defaults if available
if [ -f /etc/default/$NAME ]; then
	. /etc/default/$NAME
fi

# Generate service override file
SERVICE=$(mktemp $NAME.service.XXXXXXXXXX)

if [ "$EXTRAAFTER" != "" ]; then
	echo "[Unit]" >> $SERVICE
	echo "After=$EXTRAAFTER" >> $SERVICE
fi
if [ "$RUNDIR" != "$_RUNDIR" ]; then
	echo "[Service]" >> $SERVICE
	echo "PIDFile=$RUNDIR/$NAME.pid" >> $SERVICE
fi
if [ "$USER" != "$_USER" ] || [ "$GROUP" != "$_GROUP" ]; then
	grep -q -F "[Service]" $SERVICE || echo "[Service]" >> $SERVICE
	echo "User=$USER" >> $SERVICE
	echo "Group=$GROUP" >> $SERVICE
fi
if [ "$SOCKET" != "$_SOCKET" ] || [ "$RUNDIR" != "$_RUNDIR" ] || [ "$DAEMON_OPTS" != "" ]; then
	grep -q -F "[Service]" $SERVICE || echo "[Service]" >> $SERVICE
	echo "ExecStart=" >> $SERVICE
	echo "ExecStart=/usr/sbin/vrfydmn -P $RUNDIR/$NAME.pid -p $SOCKET $DAEMON_OPTS" >> $SERVICE
fi

if [ -s $SERVICE ] ; then
	mkdir -p /etc/systemd/system/$NAME.service.d
	cp $SERVICE /etc/systemd/system/$NAME.service.d/override.conf
fi

# Generate tmpfiles.d override file
TMPFILE=$(mktemp $NAME.tmpfile.XXXXXXXXXX)

echo "d $RUNDIR 0750 $USER $GROUP - -" > $TMPFILE

if ! cmp -s $TMPFILE /usr/lib/tmpfiles.d/vrfydmn.conf; then
	mkdir -p /etc/tmpfiles.d
	cp $TMPFILE /etc/tmpfiles.d/$NAME.conf
fi

rm -f $SERVICE $TMPFILE