From 3813d1c47e6ac48b23c2a401e65b7a412f5de5f6 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 13 Apr 2017 07:02:44 -0400 Subject: fix /sys handling for overlayfs and chroot --- test/chroot/configure | 2 +- test/chroot/fs_chroot.exp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'test/chroot') diff --git a/test/chroot/configure b/test/chroot/configure index ba8238803..26a516931 100755 --- a/test/chroot/configure +++ b/test/chroot/configure @@ -8,7 +8,7 @@ DEFAULT_FILES+=`find /lib -name libnss*` # files required by glibc DEFAULT_FILES+=" /bin/cp /bin/ls /bin/cat /bin/ps /bin/netstat /bin/ping /sbin/ifconfig /usr/bin/touch /bin/ip /bin/hostname /bin/grep /usr/bin/dig /usr/bin/openssl /usr/bin/id /usr/bin/getent /usr/bin/whoami /usr/bin/wc /usr/bin/wget /bin/umount" rm -fr $ROOTDIR -mkdir -p $ROOTDIR/{root,bin,lib,lib64,usr,home,etc,dev/shm,tmp,var/run,var/tmp,var/lock,var/log,proc} +mkdir -p $ROOTDIR/{root,bin,lib,lib64,usr,home,etc,dev/shm,tmp,var/run,var/tmp,var/lock,var/log,proc,sys} chmod 777 $ROOTDIR/tmp mkdir -p $ROOTDIR/etc/firejail mkdir -p $ROOTDIR/home/netblue/.config/firejail diff --git a/test/chroot/fs_chroot.exp b/test/chroot/fs_chroot.exp index 295ff8ff9..2190db359 100755 --- a/test/chroot/fs_chroot.exp +++ b/test/chroot/fs_chroot.exp @@ -49,6 +49,14 @@ expect { } after 100 +# check /sys directory +send -- "ls /sys\r" +expect { + timeout {puts "TESTING ERROR 6\n";exit} + "block" +} +after 100 + puts "all done\n" -- cgit v1.2.3-54-g00ecf