set -ex
# lxc: linux Container library
# Authors:
# Serge Hallyn <serge.hallyn@ubuntu.com>
#
# This is a regression test for symbolic links
}
expected=$1
run=$2
pass="pass"
false
fi
}
# make lxcpath a symlink - this should NOT cause failure
lxc.mount.entry = $dirname opt/xxx/dir none bind,create=dir
lxc.mount.entry = $fname opt/xxx/file none bind,create=file
lxc.mount.entry = $fname2 opt/xxx/file2 none bind
lxc.mount.entry = $dirname /var/lib/lxc/symtest1/rootfs/opt/xxx/dir2 none bind,create=dir
EOF
# Regular - should succeed
# symlink - should fail
# final final symlink - should fail
# Ideally we'd also try a loop device, but that won't work in nested containers
# anyway - TODO
# what about /proc itself
echo "all tests passed"