diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/configure | 3 | ||||
-rw-r--r-- | test/features/features.txt | 4 | ||||
-rwxr-xr-x | test/features/test.sh | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/test/configure b/test/configure index b46b97985..95a6e664a 100755 --- a/test/configure +++ b/test/configure | |||
@@ -28,6 +28,9 @@ rm -fr $ROOTDIR | |||
28 | mkdir -p $ROOTDIR/{root,bin,lib,lib64,usr,home,etc,dev/shm,tmp,var/run,var/tmp,var/lock,var/log,proc} | 28 | mkdir -p $ROOTDIR/{root,bin,lib,lib64,usr,home,etc,dev/shm,tmp,var/run,var/tmp,var/lock,var/log,proc} |
29 | mkdir -p $ROOTDIR/etc/firejail | 29 | mkdir -p $ROOTDIR/etc/firejail |
30 | mkdir -p $ROOTDIR/home/netblue/.config/firejail | 30 | mkdir -p $ROOTDIR/home/netblue/.config/firejail |
31 | mkdir $ROOTDIR/home/someotheruser | ||
32 | cp /etc/passwd $ROOTDIR/etc/. | ||
33 | cp /etc/group $ROOTDIR/etc/. | ||
31 | touch $ROOTDIR/var/log/syslog | 34 | touch $ROOTDIR/var/log/syslog |
32 | touch $ROOTDIR/var/tmp/somefile | 35 | touch $ROOTDIR/var/tmp/somefile |
33 | SORTED=`for FILE in $* $DEFAULT_FILES; do echo " $FILE "; ldd $FILE | grep -v dynamic | cut -d " " -f 3; done | sort -u` | 36 | SORTED=`for FILE in $* $DEFAULT_FILES; do echo " $FILE "; ldd $FILE | grep -v dynamic | cut -d " " -f 3; done | sort -u` |
diff --git a/test/features/features.txt b/test/features/features.txt index a95eeef37..01941e8f8 100644 --- a/test/features/features.txt +++ b/test/features/features.txt | |||
@@ -32,12 +32,14 @@ C - chroot filesystem | |||
32 | -N, O, C | 32 | -N, O, C |
33 | 33 | ||
34 | 1.8 disable /etc/firejail and ~/.config/firejail | 34 | 1.8 disable /etc/firejail and ~/.config/firejail |
35 | -N, O, C | ||
35 | 36 | ||
37 | 1.9 mount namespace | ||
36 | 38 | ||
37 | 39 | ||
38 | 2. Networking features | 40 | 2. Networking features |
39 | 41 | ||
40 | 2.1 Hostname (use --hostname=bing, do a ping and cat /etc/hostname) | 42 | 2.1 Hostname (use --hostname=bingo, do a ping and cat /etc/hostname) |
41 | - N, O, C | 43 | - N, O, C |
42 | - ping disabled for C by default seccomp filter, use "getent hosts bingo" | 44 | - ping disabled for C by default seccomp filter, use "getent hosts bingo" |
43 | 45 | ||
diff --git a/test/features/test.sh b/test/features/test.sh index 1fb7557c8..ab00f7f29 100755 --- a/test/features/test.sh +++ b/test/features/test.sh | |||
@@ -10,6 +10,9 @@ echo "TESTING: 1.1 new /boot" | |||
10 | echo "TESTING: 1.2 new /proc" | 10 | echo "TESTING: 1.2 new /proc" |
11 | ./1.2.exp | 11 | ./1.2.exp |
12 | 12 | ||
13 | echo "TESTING: 1.4 mask other users" | ||
14 | ./1.4.exp | ||
15 | |||
13 | echo "TESTING: 1.5 PID namespace" | 16 | echo "TESTING: 1.5 PID namespace" |
14 | ./1.5.exp | 17 | ./1.5.exp |
15 | 18 | ||