/bin/is_aufs is in fsprotect 1.0.6.
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 | #!/bin/sh
# Check if a file system is a unionfs
# $1 = path
[ -z "$1" ] && exit 1
[ -e "/proc/mounts" ] || exit 1
if [ "x$1" = "x/" ] ; then
T="$1"
else
T="${1%/}"
fi
T=`grep "^[^ ]* $T aufs" /proc/mounts`
[ -z "$T" ] && exit 1
exit 0
|