This file is indexed.

/usr/sbin/lava-mount-masterfs is in lava-server 2014.09.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
#!/bin/sh

set -e

#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#  MA 02110-1301, USA.
#
#  Copyright: 2010-2013, Linaro Limited
#
# This script will need porting to the dumb dispatcher model to get
# the relevant config values instead of looking for lava-server files.

. /etc/lava-server/instance.conf

if [ -f /etc/lava-server/worker.conf ]; then
    . /etc/lava-server/worker.conf
fi

LOCAL_USER=${LAVA_SYS_USER}
LOCAL_DIR=${LAVA_PREFIX}/default/media

REMOTE_USER=${LAVA_SYS_USER}
REMOTE_HOST=${LAVA_DB_SERVER}
REMOTE_DIR=${LAVA_PREFIX}/default/media

# safe to call from the master
if [ -f $LOCAL_DIR/.mounted ] ; then
    if [ "" != "--force" ] ; then
        exit 0
    fi
fi
SSH_OPTS="-o PasswordAuthentication=no -o StrictHostKeyChecking=no -o allow_root -o reconnect"
umount $LOCAL_DIR 2>/dev/null || true
sudo -u $LOCAL_USER sshfs $SSH_OPTS $REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR $LOCAL_DIR