aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-04-26 10:36:27 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-04-26 10:36:27 -0400
commit14faf11d2da1bf31fb92fcec91b8a511e4a3f1a6 (patch)
tree874cbd6c97b02b94eeae89485b420133785d5310
parentstill tweaking baloo (diff)
downloadfirejail-14faf11d2da1bf31fb92fcec91b8a511e4a3f1a6.tar.gz
firejail-14faf11d2da1bf31fb92fcec91b8a511e4a3f1a6.tar.zst
firejail-14faf11d2da1bf31fb92fcec91b8a511e4a3f1a6.zip
centos testing
-rw-r--r--platform/rpm/firejail.spec4
-rwxr-xr-xtest/apps-x11-xorg/apps-x11-xorg.sh6
-rwxr-xr-xtest/apps-x11/apps-x11.sh18
-rwxr-xr-xtest/apps/apps.sh2
-rwxr-xr-xtest/arguments/arguments.sh3
-rwxr-xr-xtest/environment/environment.sh10
-rwxr-xr-xtest/fcopy/fcopy.sh2
-rwxr-xr-xtest/filters/filters.sh6
-rwxr-xr-xtest/fnetfilter/fnetfilter.sh2
-rwxr-xr-xtest/overlay/overlay.sh10
-rwxr-xr-xtest/private-lib/private-lib.sh2
-rwxr-xr-xtest/root/root.sh2
-rwxr-xr-xtest/sysutils/sysutils.sh16
-rwxr-xr-xtest/utils/utils.sh4
14 files changed, 42 insertions, 45 deletions
diff --git a/platform/rpm/firejail.spec b/platform/rpm/firejail.spec
index 9fe35e528..76d19ba17 100644
--- a/platform/rpm/firejail.spec
+++ b/platform/rpm/firejail.spec
@@ -19,7 +19,7 @@ using Linux namespaces. It includes a sandbox profile for Mozilla Firefox.
19%setup -q 19%setup -q
20 20
21%build 21%build
22%configure --disable-userns 22%configure --disable-userns --disable-contrib-install
23make %{?_smp_mflags} 23make %{?_smp_mflags}
24 24
25%install 25%install
@@ -46,4 +46,4 @@ rm -rf %{buildroot}
46%{_mandir}/man5/__NAME__-login.5.gz 46%{_mandir}/man5/__NAME__-login.5.gz
47%{_mandir}/man5/__NAME__-profile.5.gz 47%{_mandir}/man5/__NAME__-profile.5.gz
48%{_mandir}/man5/__NAME__-users.5.gz 48%{_mandir}/man5/__NAME__-users.5.gz
49%config %{_sysconfdir}/__NAME__ 49%config(noreplace) %{_sysconfdir}/__NAME__
diff --git a/test/apps-x11-xorg/apps-x11-xorg.sh b/test/apps-x11-xorg/apps-x11-xorg.sh
index 32331f786..ea07d3713 100755
--- a/test/apps-x11-xorg/apps-x11-xorg.sh
+++ b/test/apps-x11-xorg/apps-x11-xorg.sh
@@ -6,7 +6,7 @@
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8 8
9which firefox 9which firefox 2>/dev/null
10if [ "$?" -eq 0 ]; 10if [ "$?" -eq 0 ];
11then 11then
12 echo "TESTING: firefox x11 xorg" 12 echo "TESTING: firefox x11 xorg"
@@ -15,7 +15,7 @@ else
15 echo "TESTING SKIP: firefox not found" 15 echo "TESTING SKIP: firefox not found"
16fi 16fi
17 17
18which transmission-gtk 18which transmission-gtk 2>/dev/null
19if [ "$?" -eq 0 ]; 19if [ "$?" -eq 0 ];
20then 20then
21 echo "TESTING: transmission-gtk x11 xorg" 21 echo "TESTING: transmission-gtk x11 xorg"
@@ -24,7 +24,7 @@ else
24 echo "TESTING SKIP: transmission-gtk not found" 24 echo "TESTING SKIP: transmission-gtk not found"
25fi 25fi
26 26
27which thunderbird 27which thunderbird 2>/dev/null
28if [ "$?" -eq 0 ]; 28if [ "$?" -eq 0 ];
29then 29then
30 echo "TESTING: thunderbird x11 xorg" 30 echo "TESTING: thunderbird x11 xorg"
diff --git a/test/apps-x11/apps-x11.sh b/test/apps-x11/apps-x11.sh
index 2e0031dd9..c12b11f3e 100755
--- a/test/apps-x11/apps-x11.sh
+++ b/test/apps-x11/apps-x11.sh
@@ -10,20 +10,20 @@ echo "TESTING: no x11 (test/apps-x11/x11-none.exp)"
10./x11-none.exp 10./x11-none.exp
11 11
12 12
13which xterm 13which xterm 2>/dev/null
14if [ "$?" -eq 0 ]; 14if [ "$?" -eq 0 ];
15then 15then
16 echo "TESTING: xterm x11 xorg" 16 echo "TESTING: xterm x11 xorg"
17 ./xterm-xorg.exp 17 ./xterm-xorg.exp
18 18
19 which xpra 19 which xpra 2>/dev/null
20 if [ "$?" -eq 0 ]; 20 if [ "$?" -eq 0 ];
21 then 21 then
22 echo "TESTING: xterm x11 xpra" 22 echo "TESTING: xterm x11 xpra"
23 ./xterm-xpra.exp 23 ./xterm-xpra.exp
24 fi 24 fi
25 25
26 which Xephyr 26 which Xephyr 2>/dev/null
27 if [ "$?" -eq 0 ]; 27 if [ "$?" -eq 0 ];
28 then 28 then
29 echo "TESTING: xterm x11 xephyr" 29 echo "TESTING: xterm x11 xephyr"
@@ -34,13 +34,13 @@ else
34fi 34fi
35 35
36# check xpra/xephyr 36# check xpra/xephyr
37which xpra 37which xpra 2>/dev/null
38if [ "$?" -eq 0 ]; 38if [ "$?" -eq 0 ];
39then 39then
40 echo "xpra found" 40 echo "xpra found"
41else 41else
42 echo "xpra not found" 42 echo "xpra not found"
43 which Xephyr 43 which Xephyr 2>/dev/null
44 if [ "$?" -eq 0 ]; 44 if [ "$?" -eq 0 ];
45 then 45 then
46 echo "Xephyr found" 46 echo "Xephyr found"
@@ -50,7 +50,7 @@ else
50 fi 50 fi
51fi 51fi
52 52
53which firefox 53which firefox 2>/dev/null
54if [ "$?" -eq 0 ]; 54if [ "$?" -eq 0 ];
55then 55then
56 echo "TESTING: firefox x11" 56 echo "TESTING: firefox x11"
@@ -59,7 +59,7 @@ else
59 echo "TESTING SKIP: firefox not found" 59 echo "TESTING SKIP: firefox not found"
60fi 60fi
61 61
62which chromium 62which chromium 2>/dev/null
63if [ "$?" -eq 0 ]; 63if [ "$?" -eq 0 ];
64then 64then
65 echo "TESTING: chromium x11" 65 echo "TESTING: chromium x11"
@@ -68,7 +68,7 @@ else
68 echo "TESTING SKIP: chromium not found" 68 echo "TESTING SKIP: chromium not found"
69fi 69fi
70 70
71which transmission-gtk 71which transmission-gtk 2>/dev/null
72if [ "$?" -eq 0 ]; 72if [ "$?" -eq 0 ];
73then 73then
74 echo "TESTING: transmission-gtk x11" 74 echo "TESTING: transmission-gtk x11"
@@ -77,7 +77,7 @@ else
77 echo "TESTING SKIP: transmission-gtk not found" 77 echo "TESTING SKIP: transmission-gtk not found"
78fi 78fi
79 79
80which thunderbird 80which thunderbird 2>/dev/null
81if [ "$?" -eq 0 ]; 81if [ "$?" -eq 0 ];
82then 82then
83 echo "TESTING: thunderbird x11" 83 echo "TESTING: thunderbird x11"
diff --git a/test/apps/apps.sh b/test/apps/apps.sh
index 4e0a9cc08..a3d0c4dc7 100755
--- a/test/apps/apps.sh
+++ b/test/apps/apps.sh
@@ -10,7 +10,7 @@ LIST="firefox midori chromium opera transmission-qt qbittorrent uget-gtk filezil
10LIST+="vlc fbreader deluge gnome-mplayer xchat wine kcalc ktorrent hexchat" 10LIST+="vlc fbreader deluge gnome-mplayer xchat wine kcalc ktorrent hexchat"
11 11
12for app in $LIST; do 12for app in $LIST; do
13 which $app 13 which $app 2>/dev/null
14 if [ "$?" -eq 0 ]; 14 if [ "$?" -eq 0 ];
15 then 15 then
16 echo "TESTING: $app" 16 echo "TESTING: $app"
diff --git a/test/arguments/arguments.sh b/test/arguments/arguments.sh
index 049236900..9500b5975 100755
--- a/test/arguments/arguments.sh
+++ b/test/arguments/arguments.sh
@@ -4,9 +4,8 @@ if [ -f /etc/debian_version ]; then
4 libdir=$(dirname "$(dpkg -L firejail | grep faudit)") 4 libdir=$(dirname "$(dpkg -L firejail | grep faudit)")
5 export PATH="$PATH:$libdir" 5 export PATH="$PATH:$libdir"
6else 6else
7 export PATH="$PATH:/usr/lib/firejail" 7 export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail"
8fi 8fi
9export PATH="$PATH:/usr/lib/firejail"
10 9
11echo "TESTING: 1. regular bash session" 10echo "TESTING: 1. regular bash session"
12./bashrun.exp 11./bashrun.exp
diff --git a/test/environment/environment.sh b/test/environment/environment.sh
index 364a4b65b..97ba8ba58 100755
--- a/test/environment/environment.sh
+++ b/test/environment/environment.sh
@@ -38,7 +38,7 @@ echo "TESTING: environment variables (test/environment/env.exp)"
38echo "TESTING: shell none(test/environment/shell-none.exp)" 38echo "TESTING: shell none(test/environment/shell-none.exp)"
39./shell-none.exp 39./shell-none.exp
40 40
41which dash 41which dash 2>/dev/null
42if [ "$?" -eq 0 ]; 42if [ "$?" -eq 0 ];
43then 43then
44 echo "TESTING: dash (test/environment/dash.exp)" 44 echo "TESTING: dash (test/environment/dash.exp)"
@@ -47,7 +47,7 @@ else
47 echo "TESTING SKIP: dash not found" 47 echo "TESTING SKIP: dash not found"
48fi 48fi
49 49
50which csh 50which csh 2>/dev/null
51if [ "$?" -eq 0 ]; 51if [ "$?" -eq 0 ];
52then 52then
53 echo "TESTING: csh (test/environment/csh.exp)" 53 echo "TESTING: csh (test/environment/csh.exp)"
@@ -56,7 +56,7 @@ else
56 echo "TESTING SKIP: csh not found" 56 echo "TESTING SKIP: csh not found"
57fi 57fi
58 58
59which zsh 59which zsh 2>/dev/null
60if [ "$?" -eq 0 ]; 60if [ "$?" -eq 0 ];
61then 61then
62 echo "TESTING: zsh (test/environment/zsh.exp)" 62 echo "TESTING: zsh (test/environment/zsh.exp)"
@@ -68,7 +68,7 @@ fi
68echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)" 68echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)"
69./firejail-in-firejail.exp 69./firejail-in-firejail.exp
70 70
71which aplay 71which aplay 2>/dev/null
72if [ "$?" -eq 0 ]; 72if [ "$?" -eq 0 ];
73then 73then
74 echo "TESTING: sound (test/environment/sound.exp)" 74 echo "TESTING: sound (test/environment/sound.exp)"
@@ -83,7 +83,7 @@ echo "TESTING: nice (test/environment/nice.exp)"
83echo "TESTING: quiet (test/environment/quiet.exp)" 83echo "TESTING: quiet (test/environment/quiet.exp)"
84./quiet.exp 84./quiet.exp
85 85
86which strace 86which strace 2>/dev/null
87if [ "$?" -eq 0 ]; 87if [ "$?" -eq 0 ];
88then 88then
89 echo "TESTING: --allow-debuggers (test/environment/allow-debuggers.exp)" 89 echo "TESTING: --allow-debuggers (test/environment/allow-debuggers.exp)"
diff --git a/test/fcopy/fcopy.sh b/test/fcopy/fcopy.sh
index 0e7cb2e5e..b225f9ea0 100755
--- a/test/fcopy/fcopy.sh
+++ b/test/fcopy/fcopy.sh
@@ -11,7 +11,7 @@ if [ -f /etc/debian_version ]; then
11 export PATH="$PATH:$libdir" 11 export PATH="$PATH:$libdir"
12fi 12fi
13 13
14export PATH="$PATH:/usr/lib/firejail" 14export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail"
15 15
16mkdir dest 16mkdir dest
17 17
diff --git a/test/filters/filters.sh b/test/filters/filters.sh
index 97ecc8be0..ff197aa54 100755
--- a/test/filters/filters.sh
+++ b/test/filters/filters.sh
@@ -10,11 +10,9 @@ if [ -f /etc/debian_version ]; then
10 libdir=$(dirname "$(dpkg -L firejail | grep fseccomp)") 10 libdir=$(dirname "$(dpkg -L firejail | grep fseccomp)")
11 export PATH="$PATH:$libdir" 11 export PATH="$PATH:$libdir"
12else 12else
13 export PATH="$PATH:/usr/lib/firejail" 13 export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail"
14fi 14fi
15 15
16export PATH="$PATH:/usr/lib/firejail"
17
18if [ "$(uname -m)" = "x86_64" ]; then 16if [ "$(uname -m)" = "x86_64" ]; then
19 echo "TESTING: memory-deny-write-execute (test/filters/memwrexe.exp)" 17 echo "TESTING: memory-deny-write-execute (test/filters/memwrexe.exp)"
20 ./memwrexe.exp 18 ./memwrexe.exp
@@ -79,7 +77,7 @@ echo "TESTING: seccomp errno (test/filters/seccomp-errno.exp)"
79echo "TESTING: seccomp su (test/filters/seccomp-su.exp)" 77echo "TESTING: seccomp su (test/filters/seccomp-su.exp)"
80./seccomp-su.exp 78./seccomp-su.exp
81 79
82which strace 80which strace 2>/dev/null
83if [ $? -eq 0 ]; then 81if [ $? -eq 0 ]; then
84 echo "TESTING: seccomp ptrace (test/filters/seccomp-ptrace.exp)" 82 echo "TESTING: seccomp ptrace (test/filters/seccomp-ptrace.exp)"
85 ./seccomp-ptrace.exp 83 ./seccomp-ptrace.exp
diff --git a/test/fnetfilter/fnetfilter.sh b/test/fnetfilter/fnetfilter.sh
index bae952ee9..aa2eb707a 100755
--- a/test/fnetfilter/fnetfilter.sh
+++ b/test/fnetfilter/fnetfilter.sh
@@ -11,7 +11,7 @@ if [ -f /etc/debian_version ]; then
11 export PATH="$PATH:$libdir" 11 export PATH="$PATH:$libdir"
12fi 12fi
13 13
14export PATH="$PATH:/usr/lib/firejail" 14export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail"
15 15
16chmod 400 outlocked 16chmod 400 outlocked
17 17
diff --git a/test/overlay/overlay.sh b/test/overlay/overlay.sh
index 6b7f779d7..9daf1f5f6 100755
--- a/test/overlay/overlay.sh
+++ b/test/overlay/overlay.sh
@@ -21,7 +21,7 @@ rm -fr ~/_firejail_test_*
21./fs-tmpfs.exp 21./fs-tmpfs.exp
22rm -fr ~/_firejail_test_* 22rm -fr ~/_firejail_test_*
23 23
24which firefox 24which firefox 2>/dev/null
25if [ "$?" -eq 0 ]; 25if [ "$?" -eq 0 ];
26then 26then
27 echo "TESTING: overlay firefox" 27 echo "TESTING: overlay firefox"
@@ -30,7 +30,7 @@ else
30 echo "TESTING SKIP: firefox not found" 30 echo "TESTING SKIP: firefox not found"
31fi 31fi
32 32
33which firefox 33which firefox 2>/dev/null
34if [ "$?" -eq 0 ]; 34if [ "$?" -eq 0 ];
35then 35then
36 echo "TESTING: overlay firefox x11 xorg" 36 echo "TESTING: overlay firefox x11 xorg"
@@ -41,13 +41,13 @@ fi
41 41
42 42
43# check xpra/xephyr 43# check xpra/xephyr
44which xpra 44which xpra 2>/dev/null
45if [ "$?" -eq 0 ]; 45if [ "$?" -eq 0 ];
46then 46then
47 echo "xpra found" 47 echo "xpra found"
48else 48else
49 echo "xpra not found" 49 echo "xpra not found"
50 which Xephyr 50 which Xephyr 2>/dev/null
51 if [ "$?" -eq 0 ]; 51 if [ "$?" -eq 0 ];
52 then 52 then
53 echo "Xephyr found" 53 echo "Xephyr found"
@@ -57,7 +57,7 @@ else
57 fi 57 fi
58fi 58fi
59 59
60which firefox 60which firefox 2>/dev/null
61if [ "$?" -eq 0 ]; 61if [ "$?" -eq 0 ];
62then 62then
63 echo "TESTING: overlay firefox x11" 63 echo "TESTING: overlay firefox x11"
diff --git a/test/private-lib/private-lib.sh b/test/private-lib/private-lib.sh
index 312fe502a..2a0eb8d30 100755
--- a/test/private-lib/private-lib.sh
+++ b/test/private-lib/private-lib.sh
@@ -9,7 +9,7 @@ LIST="evince galculator gnome-calculator leafpad mousepad transmission-gtk xcalc
9 9
10 10
11for app in $LIST; do 11for app in $LIST; do
12 which $app 12 which $app 2>/dev/null
13 if [ "$?" -eq 0 ]; 13 if [ "$?" -eq 0 ];
14 then 14 then
15 echo "TESTING: private-lib $app" 15 echo "TESTING: private-lib $app"
diff --git a/test/root/root.sh b/test/root/root.sh
index 4f217b727..a20142c5f 100755
--- a/test/root/root.sh
+++ b/test/root/root.sh
@@ -7,7 +7,7 @@
7#******************************** 7#********************************
8# firecfg 8# firecfg
9#******************************** 9#********************************
10which less 10which less 2>/dev/null
11if [ "$?" -eq 0 ]; 11if [ "$?" -eq 0 ];
12then 12then
13 echo "TESTING: firecfg (test/root/firecfg.exp)" 13 echo "TESTING: firecfg (test/root/firecfg.exp)"
diff --git a/test/sysutils/sysutils.sh b/test/sysutils/sysutils.sh
index dd09e4533..6794af520 100755
--- a/test/sysutils/sysutils.sh
+++ b/test/sysutils/sysutils.sh
@@ -6,7 +6,7 @@
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8 8
9which cpio 9which cpio 2>/dev/null
10if [ "$?" -eq 0 ]; 10if [ "$?" -eq 0 ];
11then 11then
12 echo "TESTING: cpio" 12 echo "TESTING: cpio"
@@ -24,7 +24,7 @@ fi
24# echo "TESTING SKIP: strings not found" 24# echo "TESTING SKIP: strings not found"
25#fi 25#fi
26 26
27which gzip 27which gzip 2>/dev/null
28if [ "$?" -eq 0 ]; 28if [ "$?" -eq 0 ];
29then 29then
30 echo "TESTING: gzip" 30 echo "TESTING: gzip"
@@ -33,7 +33,7 @@ else
33 echo "TESTING SKIP: gzip not found" 33 echo "TESTING SKIP: gzip not found"
34fi 34fi
35 35
36which xzdec 36which xzdec 2>/dev/null
37if [ "$?" -eq 0 ]; 37if [ "$?" -eq 0 ];
38then 38then
39 echo "TESTING: xzdec" 39 echo "TESTING: xzdec"
@@ -42,7 +42,7 @@ else
42 echo "TESTING SKIP: xzdec not found" 42 echo "TESTING SKIP: xzdec not found"
43fi 43fi
44 44
45which xz 45which xz 2>/dev/null
46if [ "$?" -eq 0 ]; 46if [ "$?" -eq 0 ];
47then 47then
48 echo "TESTING: xz" 48 echo "TESTING: xz"
@@ -51,7 +51,7 @@ else
51 echo "TESTING SKIP: xz not found" 51 echo "TESTING SKIP: xz not found"
52fi 52fi
53 53
54which less 54which less 2>/dev/null
55if [ "$?" -eq 0 ]; 55if [ "$?" -eq 0 ];
56then 56then
57 echo "TESTING: less" 57 echo "TESTING: less"
@@ -60,7 +60,7 @@ else
60 echo "TESTING SKIP: less not found" 60 echo "TESTING SKIP: less not found"
61fi 61fi
62 62
63which file 63which file 2>/dev/null
64if [ "$?" -eq 0 ]; 64if [ "$?" -eq 0 ];
65then 65then
66 echo "TESTING: file" 66 echo "TESTING: file"
@@ -69,7 +69,7 @@ else
69 echo "TESTING SKIP: file not found" 69 echo "TESTING SKIP: file not found"
70fi 70fi
71 71
72which tar 72which tar 2>/dev/null
73if [ "$?" -eq 0 ]; 73if [ "$?" -eq 0 ];
74then 74then
75 echo "TESTING: tar" 75 echo "TESTING: tar"
@@ -78,7 +78,7 @@ else
78 echo "TESTING SKIP: tar not found" 78 echo "TESTING SKIP: tar not found"
79fi 79fi
80 80
81which ping 81which ping 2>/dev/null
82if [ "$?" -eq 0 ]; 82if [ "$?" -eq 0 ];
83then 83then
84 echo "TESTING: ping" 84 echo "TESTING: ping"
diff --git a/test/utils/utils.sh b/test/utils/utils.sh
index 5438e11a8..d98e4c2e4 100755
--- a/test/utils/utils.sh
+++ b/test/utils/utils.sh
@@ -10,7 +10,7 @@ if [ -f /etc/debian_version ]; then
10 libdir=$(dirname "$(dpkg -L firejail | grep faudit)") 10 libdir=$(dirname "$(dpkg -L firejail | grep faudit)")
11 export PATH="$PATH:$libdir" 11 export PATH="$PATH:$libdir"
12fi 12fi
13export PATH="$PATH:/usr/lib/firejail" 13export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail"
14 14
15echo "testing" > ~/firejail-test-file-7699 15echo "testing" > ~/firejail-test-file-7699
16echo "testing" > /tmp/firejail-test-file-7699 16echo "testing" > /tmp/firejail-test-file-7699
@@ -39,7 +39,7 @@ echo "TESTING: version (test/utils/version.exp)"
39echo "TESTING: help (test/utils/help.exp)" 39echo "TESTING: help (test/utils/help.exp)"
40./help.exp 40./help.exp
41 41
42which man 42which man 2>/dev/null
43if [ "$?" -eq 0 ]; 43if [ "$?" -eq 0 ];
44then 44then
45 echo "TESTING: man (test/utils/man.exp)" 45 echo "TESTING: man (test/utils/man.exp)"