This file is indexed.

/etc/chiark-backup/snap/remount is in chiark-backup 4.4.2build1.

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

set -e

removes () {
	rm -f -- "$vardir/snap-mount" "$vardir/snap-device"
}

vardir="$2"

case "$#.$1" in
2.drop)
	fs="$(readlink "$vardir/snap-mount")"
	removes
	mount -vo remount,rw "$fs" || true
	;;
4.snap)
	removes
	mount -vo remount,ro "$4"
	ln -s -- "$3" "$vardir/snap-device"
	ln -s -- "$4" "$vardir/snap-mount"
	;;
*)
	cat >&2 <<'END'
usage: .../remount snap VARDIR DEV MOUNT
       .../remount drop VARDIR
END
	exit 1
	;;
esac