This file is indexed.

/usr/share/ltsp/ltsp-server-functions is in ltsp-server 5.4.2-6+deb7u1.

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
list_chroots() {
    local chroot_types name
    chroot_types=",${1:-"nfs,nbd"},"

    if [ -d "$BASE" ]; then
        if [ "${chroot_types#*,nfs,}" != "$chroot_types" ]; then
            find "$BASE/" -mindepth 1 -maxdepth 1 -type d ! -name images \
                -printf "%f\n" |
                while IFS= read -r name; do
                    if [ -x "$BASE/$name/bin/true" ]; then
                        echo "$name"
                    fi
                done
        fi
        if [ "${chroot_types#*,nbd,}" != "$chroot_types" ] &&
            [ -d "$BASE/images/" ]
        then
            find "$BASE/images/" -mindepth 1 -maxdepth 1 -type f \
                -name '*.img' -printf "%f\n" | sed 's/.img$//'
        fi
    fi | sort -u
}

default_chroot() {
    local arch first
    arch=$(detect_arch)

    if [ -x "$BASE/$arch/bin/true" ] || [ -f "$BASE/images/$arch.img" ]; then
        echo "$arch"
    else
        first=$(list_chroots | head -n 1)
        echo "${first:-$arch}"
    fi
}

# Server scripts should be ready for and even rely on "-e" being set.
set -e

# Source common server settings, e.g. BASE
if [ -f /etc/ltsp/ltsp-server.conf ]; then
    . /etc/ltsp/ltsp-server.conf
fi

# Some variables are needed by many server scripts, assign them default values.
BASE=${BASE:-"/opt/ltsp"}
# Remove trailing /, if present
BASE=${BASE%/}
TFTP_BOOT_DIR=${TFTP_BOOT_DIR:-"ltsp"}
TFTP_DIRS=${TFTP_DIRS:-"/var/lib/tftpboot /tftpboot /srv/tftp"}

# Common functions shared by LTSP scripts
if [ -f /usr/share/ltsp/ltsp-server-common-functions ]; then
    . /usr/share/ltsp/ltsp-server-common-functions
fi

# Source distro specific overrides.
if [ -f /usr/share/ltsp/ltsp-server-vendor-functions ]; then
    . /usr/share/ltsp/ltsp-server-vendor-functions
fi