From 80cc5fa809ebb3f213852312dea15cded00cc069 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 20 Nov 2016 16:05:45 -0500 Subject: chroot testing --- test/chroot/chroot.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 test/chroot/chroot.sh (limited to 'test/chroot/chroot.sh') diff --git a/test/chroot/chroot.sh b/test/chroot/chroot.sh new file mode 100755 index 000000000..34bff2a67 --- /dev/null +++ b/test/chroot/chroot.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# This file is part of Firejail project +# Copyright (C) 2014-2016 Firejail Authors +# License GPL v2 + +export MALLOC_CHECK_=3 +export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) + +rm -f unchroot +gcc -o unchroot unchroot.c +sudo ./configure + +echo "TESTING: chroot (test/chroot/fs_chroot.exp)" +./fs_chroot.exp + +echo "TESTING: unchroot as root (test/chroot/unchroot-as-root.exp)" +sudo ./unchroot-as-root.exp + + + +rm -f unchroot -- cgit v1.2.3-54-g00ecf