summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README6
-rw-r--r--README.md2
-rw-r--r--RELNOTES3
-rw-r--r--etc/audacity.profile5
-rw-r--r--etc/bleachbit.profile8
-rw-r--r--etc/bless.profile14
-rw-r--r--etc/deadbeef.profile10
-rw-r--r--etc/dino.profile5
-rw-r--r--etc/disable-programs.inc5
-rw-r--r--etc/eog.profile5
-rw-r--r--etc/evince.profile4
-rw-r--r--etc/evolution.profile5
-rw-r--r--etc/file-roller.profile7
-rw-r--r--etc/firefox.profile4
-rw-r--r--etc/gedit.profile9
-rw-r--r--etc/gimp.profile4
-rw-r--r--etc/gnome-calculator.profile13
-rw-r--r--etc/hexchat.profile4
-rw-r--r--etc/jd-gui.profile13
-rw-r--r--etc/keepass.profile8
-rw-r--r--etc/keepassx.profile4
-rw-r--r--etc/keepassx2.profile6
-rw-r--r--etc/keepassxc.profile6
-rw-r--r--etc/kodi.profile27
-rw-r--r--etc/libreoffice.profile4
-rw-r--r--etc/lollypop.profile10
-rw-r--r--etc/meld.profile29
-rw-r--r--etc/multimc5.profile9
-rw-r--r--etc/mumble.profile4
-rw-r--r--etc/pdfsam.profile13
-rw-r--r--etc/pithos.profile9
-rw-r--r--etc/qtox.profile5
-rw-r--r--etc/ssh.profile11
-rw-r--r--etc/steam.profile6
-rw-r--r--etc/totem.profile12
-rw-r--r--etc/viewnior.profile30
-rw-r--r--etc/viking.profile30
-rw-r--r--etc/vlc.profile3
-rw-r--r--etc/wget.profile8
-rw-r--r--etc/wireshark.profile4
-rw-r--r--etc/xonotic.profile9
-rw-r--r--etc/youtube-dl.profile26
-rw-r--r--platform/debian/conffiles5
-rw-r--r--src/firecfg/firecfg.config5
-rw-r--r--src/firejail/fs.c2
-rw-r--r--src/firejail/fs_home.c3
-rwxr-xr-xtest/arguments/arguments.sh7
-rwxr-xr-xtest/arguments/bashrun.sh12
-rwxr-xr-xtest/arguments/joinrun.sh12
-rwxr-xr-xtest/arguments/outrun.sh12
-rwxr-xr-xtest/environment/csh.exp2
-rwxr-xr-xtest/environment/zsh.exp2
-rwxr-xr-xtest/fcopy/cmdline.exp8
-rwxr-xr-xtest/fcopy/dircopy.exp2
-rwxr-xr-xtest/fcopy/fcopy.sh7
-rwxr-xr-xtest/fcopy/filecopy.exp2
-rwxr-xr-xtest/fcopy/linkcopy.exp2
-rwxr-xr-xtest/filters/filters.sh7
-rwxr-xr-xtest/filters/fseccomp.exp30
-rwxr-xr-xtest/fs/mkdir_mkfile.exp10
-rwxr-xr-xtest/fs/private-home-dir.exp10
-rwxr-xr-xtest/fs/private.exp8
-rwxr-xr-xtest/fs/whitelist-double.exp4
-rwxr-xr-xtest/fs/whitelist-empty.exp12
-rwxr-xr-xtest/network/4bridges_arp.exp12
-rwxr-xr-xtest/network/4bridges_ip.exp12
-rwxr-xr-xtest/network/interface.exp8
-rwxr-xr-xtest/network/net_defaultgw.exp3
-rwxr-xr-xtest/network/net_defaultgw2.exp6
-rwxr-xr-xtest/network/net_ip.exp3
-rwxr-xr-xtest/network/net_profile.exp6
-rwxr-xr-xtest/utils/audit.exp2
72 files changed, 508 insertions, 107 deletions
diff --git a/README b/README
index c532907af..d6258e8e4 100644
--- a/README
+++ b/README
@@ -183,7 +183,7 @@ Fred-Barclay (https://github.com/Fred-Barclay)
183 - tighten keepassx 183 - tighten keepassx
184 - added Thunar profile 184 - added Thunar profile
185 - added mousepad, qpicview, and cvlc profiles 185 - added mousepad, qpicview, and cvlc profiles
186 - addedd BibleTime profile 186 - added BibleTime and profiles
187G4JC (http://sourceforge.net/u/gaming4jc/profile/) 187G4JC (http://sourceforge.net/u/gaming4jc/profile/)
188 - ARM support 188 - ARM support
189 - profile fixes 189 - profile fixes
@@ -356,6 +356,10 @@ SpotComms (https://github.com/SpotComms)
356 - added PDFSam, Pithos, and Xonotic profiles 356 - added PDFSam, Pithos, and Xonotic profiles
357 - disabled Go, Rust, and OpenSSL in disable-devel.conf 357 - disabled Go, Rust, and OpenSSL in disable-devel.conf
358 - added dino profile 358 - added dino profile
359 - added Kodi profile
360 - lots of profile tightening
361 - added viking, youtube-dl, meld profiles
362 - more profile tightening
359SYN-cook (https://github.com/SYN-cook) 363SYN-cook (https://github.com/SYN-cook)
360 - keepass/keepassx browser fixes 364 - keepass/keepassx browser fixes
361 - disable-common.inc fixes 365 - disable-common.inc fixes
diff --git a/README.md b/README.md
index 89f459798..ddc1a9639 100644
--- a/README.md
+++ b/README.md
@@ -196,4 +196,4 @@ simple-scan, skanlite, ssh-agent, tracker, transmission-cli, transmission-show,
196xed, pluma, Cryptocat, Bless, Gnome 2048, Gnome Calculator, Gnome Contacts, JD-GUI, Lollypop, MultiMC5, 196xed, pluma, Cryptocat, Bless, Gnome 2048, Gnome Calculator, Gnome Contacts, JD-GUI, Lollypop, MultiMC5,
197PDFSam, Pithos, Xonotic, wireshark, keepassx2, QupZilla, FossaMail, Uzbl browser, xmms, iridium browser, 197PDFSam, Pithos, Xonotic, wireshark, keepassx2, QupZilla, FossaMail, Uzbl browser, xmms, iridium browser,
198Kino, Thunar, Geeqie, Engrampa, Scribus, mousepad, gpicview, keepassxc, cvlc, MediathekView, baloo_file, 198Kino, Thunar, Geeqie, Engrampa, Scribus, mousepad, gpicview, keepassxc, cvlc, MediathekView, baloo_file,
199Nylas, dino, BibleTime 199Nylas, dino, BibleTime, viewnior, Kodi, viking, youtube-dl, meld
diff --git a/RELNOTES b/RELNOTES
index d2c4d7cd9..77a097506 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -36,7 +36,8 @@ firejail (0.9.46-rc1) baseline; urgency=low
36 * new profiles: Xonotic, wireshark, keepassx2, QupZilla, FossaMail, 36 * new profiles: Xonotic, wireshark, keepassx2, QupZilla, FossaMail,
37 * new profiles: Uzbl browser, iridium browser, Thunar, Geeqie, Engrampa, 37 * new profiles: Uzbl browser, iridium browser, Thunar, Geeqie, Engrampa,
38 * new profiles: Scribus, mousepad, gpicview, keepassxc, cvlc, MediathekView, 38 * new profiles: Scribus, mousepad, gpicview, keepassxc, cvlc, MediathekView,
39 * new profiles: baloo_file, Nylas, dino, BibleTime 39 * new profiles: baloo_file, Nylas, dino, BibleTime, viewnior, Kodi, viking,
40 * new profiles: youtube-dl, meld
40 * bugfixes 41 * bugfixes
41 -- netblue30 <netblue30@yahoo.com> Fri, 7 Apr 2017 08:00:00 -0500 42 -- netblue30 <netblue30@yahoo.com> Fri, 7 Apr 2017 08:00:00 -0500
42 43
diff --git a/etc/audacity.profile b/etc/audacity.profile
index 4394416ff..779cd8cdb 100644
--- a/etc/audacity.profile
+++ b/etc/audacity.profile
@@ -11,7 +11,9 @@ include /etc/firejail/disable-passwdmgr.inc
11include /etc/firejail/disable-programs.inc 11include /etc/firejail/disable-programs.inc
12 12
13caps.drop all 13caps.drop all
14net none
14netfilter 15netfilter
16no3d
15nogroups 17nogroups
16nonewprivs 18nonewprivs
17noroot 19noroot
@@ -23,3 +25,6 @@ tracelog
23private-bin audacity 25private-bin audacity
24private-dev 26private-dev
25private-tmp 27private-tmp
28
29noexec ${HOME}
30noexec /tmp
diff --git a/etc/bleachbit.profile b/etc/bleachbit.profile
index b406b9985..7ea55f505 100644
--- a/etc/bleachbit.profile
+++ b/etc/bleachbit.profile
@@ -9,17 +9,21 @@ include /etc/firejail/disable-devel.inc
9include /etc/firejail/disable-passwdmgr.inc 9include /etc/firejail/disable-passwdmgr.inc
10 10
11caps.drop all 11caps.drop all
12net none
12netfilter 13netfilter
14no3d
13nogroups 15nogroups
14nonewprivs 16nonewprivs
15noroot 17noroot
16nosound 18nosound
17shell none
18seccomp
19protocol unix 19protocol unix
20seccomp
21shell none
20 22
21# private-bin 23# private-bin
22# private-dev 24# private-dev
23# private-tmp 25# private-tmp
24# private-etc 26# private-etc
25 27
28noexec ${HOME}
29noexec /tmp
diff --git a/etc/bless.profile b/etc/bless.profile
index b8325de39..869f13cc0 100644
--- a/etc/bless.profile
+++ b/etc/bless.profile
@@ -17,8 +17,20 @@ include /etc/firejail/disable-devel.inc
17 17
18#Options 18#Options
19caps.drop all 19caps.drop all
20net none
20netfilter 21netfilter
22no3d
23nogroups
21nonewprivs 24nonewprivs
22noroot 25noroot
23protocol unix,inet,inet6 26nosound
27protocol unix
24seccomp 28seccomp
29shell none
30
31private-dev
32private-etc fonts,mono
33private-tmp
34
35noexec ${HOME}
36noexec /tmp
diff --git a/etc/deadbeef.profile b/etc/deadbeef.profile
index 603d6345c..efd8b463b 100644
--- a/etc/deadbeef.profile
+++ b/etc/deadbeef.profile
@@ -11,7 +11,17 @@ include /etc/firejail/disable-devel.inc
11include /etc/firejail/disable-passwdmgr.inc 11include /etc/firejail/disable-passwdmgr.inc
12 12
13caps.drop all 13caps.drop all
14netfilter
15no3d
16nogroups
14nonewprivs 17nonewprivs
15noroot 18noroot
16protocol unix,inet,inet6 19protocol unix,inet,inet6
17seccomp 20seccomp
21shell none
22
23private-dev
24private-tmp
25
26noexec ${HOME}
27noexec /tmp
diff --git a/etc/dino.profile b/etc/dino.profile
index a71ab27d7..3de858618 100644
--- a/etc/dino.profile
+++ b/etc/dino.profile
@@ -13,9 +13,9 @@ include /etc/firejail/disable-programs.inc
13whitelist ${HOME}/Downloads 13whitelist ${HOME}/Downloads
14mkdir ${HOME}/.local/share/dino 14mkdir ${HOME}/.local/share/dino
15whitelist ${HOME}/.local/share/dino 15whitelist ${HOME}/.local/share/dino
16include /etc/firejail/whitelist-common.inc
16 17
17caps.drop all 18caps.drop all
18machine-id
19netfilter 19netfilter
20no3d 20no3d
21nogroups 21nogroups
@@ -30,3 +30,6 @@ private-bin dino
30#private-etc fonts #breaks server connection 30#private-etc fonts #breaks server connection
31private-dev 31private-dev
32private-tmp 32private-tmp
33
34noexec ${HOME}
35noexec /tmp
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc
index bad1f0263..32adac298 100644
--- a/etc/disable-programs.inc
+++ b/etc/disable-programs.inc
@@ -124,6 +124,7 @@ blacklist ${HOME}/.config/totem
124blacklist ${HOME}/.config/tox 124blacklist ${HOME}/.config/tox
125blacklist ${HOME}/.config/transmission 125blacklist ${HOME}/.config/transmission
126blacklist ${HOME}/.config/uGet 126blacklist ${HOME}/.config/uGet
127blacklist ${HOME}/.config/viewnior
127blacklist ${HOME}/.config/vivaldi 128blacklist ${HOME}/.config/vivaldi
128blacklist ${HOME}/.config/vlc 129blacklist ${HOME}/.config/vlc
129blacklist ${HOME}/.config/wesnoth 130blacklist ${HOME}/.config/wesnoth
@@ -198,6 +199,7 @@ blacklist ${HOME}/.kde/share/config/okularrc
198blacklist ${HOME}/.killingfloor 199blacklist ${HOME}/.killingfloor
199blacklist ${HOME}/.kino-history 200blacklist ${HOME}/.kino-history
200blacklist ${HOME}/.kinorc 201blacklist ${HOME}/.kinorc
202blacklist ${HOME}/.kodi
201blacklist ${HOME}/.linphone-history.db 203blacklist ${HOME}/.linphone-history.db
202blacklist ${HOME}/.linphonerc 204blacklist ${HOME}/.linphonerc
203blacklist ${HOME}/.lmmsrc.xml 205blacklist ${HOME}/.lmmsrc.xml
@@ -230,6 +232,7 @@ blacklist ${HOME}/.local/share/gnome-music
230blacklist ${HOME}/.local/share/gnome-photos 232blacklist ${HOME}/.local/share/gnome-photos
231blacklist ${HOME}/.local/share/kate 233blacklist ${HOME}/.local/share/kate
232blacklist ${HOME}/.local/share/lollypop 234blacklist ${HOME}/.local/share/lollypop
235blacklist ${HOME}/.local/share/meld
233blacklist ${HOME}/.local/share/multimc5 236blacklist ${HOME}/.local/share/multimc5
234blacklist ${HOME}/.local/share/mupen64plus 237blacklist ${HOME}/.local/share/mupen64plus
235blacklist ${HOME}/.local/share/nautilus 238blacklist ${HOME}/.local/share/nautilus
@@ -286,6 +289,8 @@ blacklist ${HOME}/.synfig
286blacklist ${HOME}/.tconn 289blacklist ${HOME}/.tconn
287blacklist ${HOME}/.thunderbird 290blacklist ${HOME}/.thunderbird
288blacklist ${HOME}/.ts3client 291blacklist ${HOME}/.ts3client
292blacklist ${HOME}/.viking
293blacklist ${HOME}/.viking-maps
289blacklist ${HOME}/.vst 294blacklist ${HOME}/.vst
290blacklist ${HOME}/.w3m 295blacklist ${HOME}/.w3m
291blacklist ${HOME}/.warzone2100-3.* 296blacklist ${HOME}/.warzone2100-3.*
diff --git a/etc/eog.profile b/etc/eog.profile
index c5afec7fa..7c2cd557c 100644
--- a/etc/eog.profile
+++ b/etc/eog.profile
@@ -11,7 +11,9 @@ include /etc/firejail/disable-devel.inc
11include /etc/firejail/disable-passwdmgr.inc 11include /etc/firejail/disable-passwdmgr.inc
12 12
13caps.drop all 13caps.drop all
14net none
14netfilter 15netfilter
16no3d
15nogroups 17nogroups
16nonewprivs 18nonewprivs
17noroot 19noroot
@@ -24,3 +26,6 @@ private-bin eog
24private-dev 26private-dev
25private-etc fonts 27private-etc fonts
26private-tmp 28private-tmp
29
30noexec ${HOME}
31noexec /tmp
diff --git a/etc/evince.profile b/etc/evince.profile
index 94cefdd8b..ae50425b9 100644
--- a/etc/evince.profile
+++ b/etc/evince.profile
@@ -13,6 +13,7 @@ include /etc/firejail/disable-passwdmgr.inc
13caps.drop all 13caps.drop all
14netfilter 14netfilter
15#net none - creates some problems on some distributions 15#net none - creates some problems on some distributions
16no3d
16nogroups 17nogroups
17nonewprivs 18nonewprivs
18noroot 19noroot
@@ -27,3 +28,6 @@ private-dev
27private-etc fonts 28private-etc fonts
28# evince needs access to /tmp/mozilla* to work in firefox 29# evince needs access to /tmp/mozilla* to work in firefox
29# private-tmp 30# private-tmp
31
32noexec ${HOME}
33noexec /tmp
diff --git a/etc/evolution.profile b/etc/evolution.profile
index cb6615716..04bf480ff 100644
--- a/etc/evolution.profile
+++ b/etc/evolution.profile
@@ -9,6 +9,7 @@ noblacklist ~/.cache/evolution
9noblacklist ~/.pki 9noblacklist ~/.pki
10noblacklist ~/.pki/nssdb 10noblacklist ~/.pki/nssdb
11noblacklist ~/.gnupg 11noblacklist ~/.gnupg
12noblacklist ~/.bogofilter
12 13
13noblacklist /var/spool/mail 14noblacklist /var/spool/mail
14noblacklist /var/mail 15noblacklist /var/mail
@@ -20,6 +21,7 @@ include /etc/firejail/disable-passwdmgr.inc
20 21
21caps.drop all 22caps.drop all
22netfilter 23netfilter
24no3d
23nogroups 25nogroups
24nonewprivs 26nonewprivs
25noroot 27noroot
@@ -30,3 +32,6 @@ shell none
30 32
31private-dev 33private-dev
32private-tmp 34private-tmp
35
36noexec ${HOME}
37noexec /tmp
diff --git a/etc/file-roller.profile b/etc/file-roller.profile
index 804d20ce1..a3f687651 100644
--- a/etc/file-roller.profile
+++ b/etc/file-roller.profile
@@ -9,13 +9,15 @@ include /etc/firejail/disable-devel.inc
9include /etc/firejail/disable-passwdmgr.inc 9include /etc/firejail/disable-passwdmgr.inc
10 10
11caps.drop all 11caps.drop all
12net none
13netfilter
14no3d
12nogroups 15nogroups
13nonewprivs 16nonewprivs
14noroot 17noroot
15nosound 18nosound
16protocol unix 19protocol unix
17seccomp 20seccomp
18netfilter
19shell none 21shell none
20tracelog 22tracelog
21 23
@@ -23,3 +25,6 @@ tracelog
23# private-tmp 25# private-tmp
24private-dev 26private-dev
25# private-etc fonts 27# private-etc fonts
28
29noexec ${HOME}
30noexec /tmp
diff --git a/etc/firefox.profile b/etc/firefox.profile
index 1bc3eb769..4d96c05c8 100644
--- a/etc/firefox.profile
+++ b/etc/firefox.profile
@@ -21,6 +21,7 @@ nonewprivs
21noroot 21noroot
22protocol unix,inet,inet6,netlink 22protocol unix,inet,inet6,netlink
23seccomp 23seccomp
24shell none
24tracelog 25tracelog
25 26
26whitelist ${DOWNLOADS} 27whitelist ${DOWNLOADS}
@@ -59,3 +60,6 @@ include /etc/firejail/whitelist-common.inc
59#private-etc passwd,group,hostname,hosts,localtime,nsswitch.conf,resolv.conf,xdg,gtk-2.0,gtk-3.0,X11,pango,fonts,firefox,mime.types,mailcap,asound.conf,pulse 60#private-etc passwd,group,hostname,hosts,localtime,nsswitch.conf,resolv.conf,xdg,gtk-2.0,gtk-3.0,X11,pango,fonts,firefox,mime.types,mailcap,asound.conf,pulse
60private-dev 61private-dev
61private-tmp 62private-tmp
63
64noexec ${HOME}
65noexec /tmp
diff --git a/etc/gedit.profile b/etc/gedit.profile
index 9f4eee9b3..07bdb1bbe 100644
--- a/etc/gedit.profile
+++ b/etc/gedit.profile
@@ -14,17 +14,22 @@ include /etc/firejail/disable-programs.inc
14include /etc/firejail/disable-passwdmgr.inc 14include /etc/firejail/disable-passwdmgr.inc
15 15
16caps.drop all 16caps.drop all
17netfilter
18net none
19no3d
17nogroups 20nogroups
18nonewprivs 21nonewprivs
19noroot 22noroot
20nosound 23nosound
21protocol unix 24protocol unix
22seccomp 25seccomp
23netfilter
24shell none 26shell none
25tracelog 27tracelog
26 28
27# private-bin gedit 29# private-bin gedit
28private-tmp
29private-dev 30private-dev
30# private-etc fonts 31# private-etc fonts
32private-tmp
33
34noexec ${HOME}
35noexec /tmp
diff --git a/etc/gimp.profile b/etc/gimp.profile
index 4088bd680..5f8ccb4fb 100644
--- a/etc/gimp.profile
+++ b/etc/gimp.profile
@@ -10,16 +10,18 @@ include /etc/firejail/disable-passwdmgr.inc
10 10
11caps.drop all 11caps.drop all
12netfilter 12netfilter
13net none
13nogroups 14nogroups
14nonewprivs 15nonewprivs
15noroot 16noroot
16nosound 17nosound
17protocol unix 18protocol unix
18seccomp 19seccomp
20shell none
19 21
20# gimp plugins are installed by the user in ~/.gimp-2.8/plug-ins/ directory 22# gimp plugins are installed by the user in ~/.gimp-2.8/plug-ins/ directory
21# if you are not using external plugins, you can enable noexec statement below 23# if you are not using external plugins, you can enable noexec statement below
22# noexec ${HOME} 24# noexec ${HOME}
23 25
24noexec /tmp 26noexec /tmp
25 27
diff --git a/etc/gnome-calculator.profile b/etc/gnome-calculator.profile
index 714a97650..e9366f07d 100644
--- a/etc/gnome-calculator.profile
+++ b/etc/gnome-calculator.profile
@@ -17,7 +17,20 @@ include /etc/firejail/whitelist-common.inc
17#Options 17#Options
18caps.drop all 18caps.drop all
19netfilter 19netfilter
20#net none
21no3d
22nogroups
20nonewprivs 23nonewprivs
21noroot 24noroot
25nosound
22protocol unix,inet,inet6 26protocol unix,inet,inet6
23seccomp 27seccomp
28shell none
29
30private-bin gnome-calculator
31private-dev
32private-etc fonts
33private-tmp
34
35noexec ${HOME}
36noexec /tmp
diff --git a/etc/hexchat.profile b/etc/hexchat.profile
index 53f447f7e..d24f492d8 100644
--- a/etc/hexchat.profile
+++ b/etc/hexchat.profile
@@ -13,6 +13,7 @@ include /etc/firejail/disable-devel.inc
13 13
14caps.drop all 14caps.drop all
15netfilter 15netfilter
16no3d
16nogroups 17nogroups
17nonewprivs 18nonewprivs
18noroot 19noroot
@@ -30,3 +31,6 @@ private-bin hexchat
30#debug note: private-bin requires perl, python, etc on some systems 31#debug note: private-bin requires perl, python, etc on some systems
31private-dev 32private-dev
32private-tmp 33private-tmp
34
35noexec ${HOME}
36noexec /tmp
diff --git a/etc/jd-gui.profile b/etc/jd-gui.profile
index 2ba1a4380..6ff618187 100644
--- a/etc/jd-gui.profile
+++ b/etc/jd-gui.profile
@@ -16,8 +16,19 @@ include /etc/firejail/disable-devel.inc
16 16
17#Options 17#Options
18caps.drop all 18caps.drop all
19net none
19netfilter 20netfilter
21no3d
22nogroups
20nonewprivs 23nonewprivs
21noroot 24noroot
22protocol unix,inet,inet6 25nosound
26protocol unix
23seccomp 27seccomp
28shell none
29
30private-dev
31private-tmp
32
33noexec ${HOME}
34noexec /tmp
diff --git a/etc/keepass.profile b/etc/keepass.profile
index d269c3e8a..abe52eca3 100644
--- a/etc/keepass.profile
+++ b/etc/keepass.profile
@@ -15,14 +15,18 @@ include /etc/firejail/disable-devel.inc
15include /etc/firejail/disable-passwdmgr.inc 15include /etc/firejail/disable-passwdmgr.inc
16 16
17caps.drop all 17caps.drop all
18netfilter
19no3d
18nogroups 20nogroups
19nonewprivs 21nonewprivs
20noroot 22noroot
21nosound 23nosound
22protocol unix,inet,inet6 24protocol unix,inet,inet6
23seccomp 25seccomp
24netfilter
25shell none 26shell none
26 27
27private-tmp
28private-dev 28private-dev
29private-tmp
30
31noexec ${HOME}
32noexec /tmp
diff --git a/etc/keepassx.profile b/etc/keepassx.profile
index 379b8a668..845a1bcc9 100644
--- a/etc/keepassx.profile
+++ b/etc/keepassx.profile
@@ -15,6 +15,7 @@ include /etc/firejail/disable-passwdmgr.inc
15 15
16caps.drop all 16caps.drop all
17net none 17net none
18no3d
18nogroups 19nogroups
19nonewprivs 20nonewprivs
20noroot 21noroot
@@ -28,3 +29,6 @@ private-bin keepassx
28private-etc fonts 29private-etc fonts
29private-dev 30private-dev
30private-tmp 31private-tmp
32
33noexec ${HOME}
34noexec /tmp
diff --git a/etc/keepassx2.profile b/etc/keepassx2.profile
index a21caf3f1..32dddc2fe 100644
--- a/etc/keepassx2.profile
+++ b/etc/keepassx2.profile
@@ -15,6 +15,7 @@ include /etc/firejail/disable-passwdmgr.inc
15 15
16caps.drop all 16caps.drop all
17net none 17net none
18no3d
18nogroups 19nogroups
19nonewprivs 20nonewprivs
20noroot 21noroot
@@ -24,6 +25,9 @@ seccomp
24shell none 25shell none
25 26
26private-bin keepassx2 27private-bin keepassx2
27private-etc fonts
28private-dev 28private-dev
29private-etc fonts
29private-tmp 30private-tmp
31
32noexec ${HOME}
33noexec /tmp
diff --git a/etc/keepassxc.profile b/etc/keepassxc.profile
index 654a30682..369d4a5ae 100644
--- a/etc/keepassxc.profile
+++ b/etc/keepassxc.profile
@@ -16,6 +16,7 @@ include /etc/firejail/disable-passwdmgr.inc
16# To use KeePassHTTP, comment out `net none` 16# To use KeePassHTTP, comment out `net none`
17caps.drop all 17caps.drop all
18net none 18net none
19no3d
19nogroups 20nogroups
20nonewprivs 21nonewprivs
21noroot 22noroot
@@ -25,6 +26,9 @@ seccomp
25shell none 26shell none
26 27
27private-bin keepassxc 28private-bin keepassxc
28private-etc fonts
29private-dev 29private-dev
30private-etc fonts
30private-tmp 31private-tmp
32
33noexec ${HOME}
34noexec /tmp
diff --git a/etc/kodi.profile b/etc/kodi.profile
new file mode 100644
index 000000000..b81b010bf
--- /dev/null
+++ b/etc/kodi.profile
@@ -0,0 +1,27 @@
1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file.
3include /etc/firejail/kodi.local
4
5# Firejail profile for kodi
6noblacklist ${HOME}/.kodi
7
8include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-passwdmgr.inc
10include /etc/firejail/disable-programs.inc
11include /etc/firejail/disable-devel.inc
12
13caps.drop all
14netfilter
15nogroups
16nonewprivs
17noroot
18protocol unix,inet,inet6,netlink
19seccomp
20shell none
21tracelog
22
23private-dev
24private-tmp
25
26noexec ${HOME}
27noexec /tmp
diff --git a/etc/libreoffice.profile b/etc/libreoffice.profile
index 685073e7c..fb82195b3 100644
--- a/etc/libreoffice.profile
+++ b/etc/libreoffice.profile
@@ -17,7 +17,11 @@ nonewprivs
17noroot 17noroot
18protocol unix,inet,inet6 18protocol unix,inet,inet6
19seccomp 19seccomp
20shell none
20tracelog 21tracelog
21 22
22private-dev 23private-dev
23# whitelist /tmp/.X11-unix/ 24# whitelist /tmp/.X11-unix/
25
26noexec ${HOME}
27noexec /tmp
diff --git a/etc/lollypop.profile b/etc/lollypop.profile
index 06ed415d6..e84118b9e 100644
--- a/etc/lollypop.profile
+++ b/etc/lollypop.profile
@@ -18,7 +18,17 @@ include /etc/firejail/disable-devel.inc
18#Options 18#Options
19caps.drop all 19caps.drop all
20netfilter 20netfilter
21no3d
22nogroups
21nonewprivs 23nonewprivs
22noroot 24noroot
23protocol unix,inet,inet6 25protocol unix,inet,inet6
24seccomp 26seccomp
27shell none
28
29private-dev
30private-etc fonts
31private-tmp
32
33noexec ${HOME}
34noexec /tmp
diff --git a/etc/meld.profile b/etc/meld.profile
new file mode 100644
index 000000000..4b95b866d
--- /dev/null
+++ b/etc/meld.profile
@@ -0,0 +1,29 @@
1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file.
3include /etc/firejail/meld.local
4
5# Firejail profile for meld
6noblacklist ${HOME}/.local/share/meld
7
8include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-devel.inc
10include /etc/firejail/disable-passwdmgr.inc
11include /etc/firejail/disable-programs.inc
12
13caps.drop all
14net none
15netfilter
16no3d
17nogroups
18nonewprivs
19noroot
20nosound
21protocol unix
22seccomp
23shell none
24
25private-dev
26private-tmp
27
28noexec ${HOME}
29noexec /tmp
diff --git a/etc/multimc5.profile b/etc/multimc5.profile
index 6b8946be3..12a7646ae 100644
--- a/etc/multimc5.profile
+++ b/etc/multimc5.profile
@@ -26,6 +26,15 @@ include /etc/firejail/whitelist-common.inc
26#Options 26#Options
27caps.drop all 27caps.drop all
28netfilter 28netfilter
29nogroups
29nonewprivs 30nonewprivs
30noroot 31noroot
31protocol unix,inet,inet6 32protocol unix,inet,inet6
33#seccomp
34shell none
35
36private-dev
37private-tmp
38
39noexec ${HOME}
40noexec /tmp
diff --git a/etc/mumble.profile b/etc/mumble.profile
index d5405a6ae..c5c6a4d1a 100644
--- a/etc/mumble.profile
+++ b/etc/mumble.profile
@@ -18,6 +18,7 @@ include /etc/firejail/whitelist-common.inc
18 18
19caps.drop all 19caps.drop all
20netfilter 20netfilter
21no3d
21nonewprivs 22nonewprivs
22nogroups 23nogroups
23noroot 24noroot
@@ -28,3 +29,6 @@ tracelog
28 29
29private-bin mumble 30private-bin mumble
30private-tmp 31private-tmp
32
33noexec ${HOME}
34noexec /tmp
diff --git a/etc/pdfsam.profile b/etc/pdfsam.profile
index 37adabb39..dfe463c98 100644
--- a/etc/pdfsam.profile
+++ b/etc/pdfsam.profile
@@ -14,8 +14,19 @@ include /etc/firejail/disable-devel.inc
14 14
15#Options 15#Options
16caps.drop all 16caps.drop all
17net none
17netfilter 18netfilter
19no3d
20nogroups
18nonewprivs 21nonewprivs
19noroot 22noroot
20protocol unix,inet,inet6 23nosound
24protocol unix
21seccomp 25seccomp
26shell none
27
28private-dev
29private-tmp
30
31noexec ${HOME}
32noexec /tmp
diff --git a/etc/pithos.profile b/etc/pithos.profile
index 500e35989..c25b5772b 100644
--- a/etc/pithos.profile
+++ b/etc/pithos.profile
@@ -17,7 +17,16 @@ include /etc/firejail/whitelist-common.inc
17#Options 17#Options
18caps.drop all 18caps.drop all
19netfilter 19netfilter
20no3d
21nogroups
20nonewprivs 22nonewprivs
21noroot 23noroot
22protocol unix,inet,inet6 24protocol unix,inet,inet6
23seccomp 25seccomp
26shell none
27
28private-dev
29private-tmp
30
31noexec ${HOME}
32noexec /tmp
diff --git a/etc/qtox.profile b/etc/qtox.profile
index 40a959d05..f3158b206 100644
--- a/etc/qtox.profile
+++ b/etc/qtox.profile
@@ -3,7 +3,8 @@
3include /etc/firejail/qtox.local 3include /etc/firejail/qtox.local
4 4
5# qTox instant messaging profile 5# qTox instant messaging profile
6noblacklist ${HOME}/.config/tox 6noblacklist ~/.config/tox
7noblacklist ~/.config/qt5ct
7include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
8include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
9include /etc/firejail/disable-devel.inc 10include /etc/firejail/disable-devel.inc
@@ -11,6 +12,8 @@ include /etc/firejail/disable-passwdmgr.inc
11 12
12mkdir ${HOME}/.config/tox 13mkdir ${HOME}/.config/tox
13whitelist ${HOME}/.config/tox 14whitelist ${HOME}/.config/tox
15mkdir ${HOME}/.config/qt5ct
16whitelist ${HOME}/.config/qt5ct
14whitelist ${DOWNLOADS} 17whitelist ${DOWNLOADS}
15 18
16caps.drop all 19caps.drop all
diff --git a/etc/ssh.profile b/etc/ssh.profile
index b1ef6b27e..425841399 100644
--- a/etc/ssh.profile
+++ b/etc/ssh.profile
@@ -14,7 +14,18 @@ include /etc/firejail/disable-passwdmgr.inc
14 14
15caps.drop all 15caps.drop all
16netfilter 16netfilter
17no3d
18nogroups
17nonewprivs 19nonewprivs
18noroot 20noroot
21nosound
19protocol unix,inet,inet6 22protocol unix,inet,inet6
20seccomp 23seccomp
24shell none
25tracelog
26
27private-dev
28#private-tmp #Breaks when exiting
29
30noexec ${HOME}
31noexec /tmp
diff --git a/etc/steam.profile b/etc/steam.profile
index b527589de..536588e4b 100644
--- a/etc/steam.profile
+++ b/etc/steam.profile
@@ -12,7 +12,13 @@ include /etc/firejail/disable-passwdmgr.inc
12 12
13caps.drop all 13caps.drop all
14netfilter 14netfilter
15nogroups
15nonewprivs 16nonewprivs
16noroot 17noroot
17protocol unix,inet,inet6,netlink 18protocol unix,inet,inet6,netlink
18seccomp 19seccomp
20shell none
21tracelog
22
23private-dev
24private-tmp
diff --git a/etc/totem.profile b/etc/totem.profile
index 0b3942cf0..fadfbb00b 100644
--- a/etc/totem.profile
+++ b/etc/totem.profile
@@ -12,8 +12,18 @@ include /etc/firejail/disable-devel.inc
12include /etc/firejail/disable-passwdmgr.inc 12include /etc/firejail/disable-passwdmgr.inc
13 13
14caps.drop all 14caps.drop all
15netfilter
16nogroups
15nonewprivs 17nonewprivs
16noroot 18noroot
17netfilter
18protocol unix,inet,inet6 19protocol unix,inet,inet6
19seccomp 20seccomp
21shell none
22
23private-bin totem
24private-dev
25private-etc fonts
26private-tmp
27
28noexec ${HOME}
29noexec /tmp
diff --git a/etc/viewnior.profile b/etc/viewnior.profile
new file mode 100644
index 000000000..190c04e39
--- /dev/null
+++ b/etc/viewnior.profile
@@ -0,0 +1,30 @@
1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file.
3include /etc/firejail/viewnior.local
4
5# Firejail profile for viewnior
6noblacklist ~/.config/viewnior
7
8include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-programs.inc
10include /etc/firejail/disable-devel.inc
11include /etc/firejail/disable-passwdmgr.inc
12
13blacklist ~/.bashrc
14blacklist ~/.Xauthority
15
16caps.drop all
17net none
18nogroups
19nonewprivs
20noroot
21nosound
22protocol unix
23seccomp
24shell none
25tracelog
26
27private-bin viewnior
28private-dev
29private-etc fonts
30private-tmp
diff --git a/etc/viking.profile b/etc/viking.profile
new file mode 100644
index 000000000..2b68d731c
--- /dev/null
+++ b/etc/viking.profile
@@ -0,0 +1,30 @@
1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file.
3include /etc/firejail/viking.local
4
5# Firejail profile for viking
6
7noblacklist ${HOME}/.viking
8noblacklist ${HOME}/.viking-maps
9
10include /etc/firejail/disable-common.inc
11include /etc/firejail/disable-programs.inc
12include /etc/firejail/disable-passwdmgr.inc
13include /etc/firejail/disable-devel.inc
14
15caps.drop all
16netfilter
17no3d
18nogroups
19nonewprivs
20noroot
21nosound
22protocol unix,inet,inet6
23seccomp
24shell none
25
26private-dev
27private-tmp
28
29noexec ${HOME}
30noexec /tmp
diff --git a/etc/vlc.profile b/etc/vlc.profile
index 0c96f0108..21282dfbd 100644
--- a/etc/vlc.profile
+++ b/etc/vlc.profile
@@ -22,3 +22,6 @@ shell none
22private-bin vlc,cvlc,nvlc,rvlc,qvlc,svlc 22private-bin vlc,cvlc,nvlc,rvlc,qvlc,svlc
23# private-dev 23# private-dev
24private-tmp 24private-tmp
25
26noexec ${HOME}
27noexec /tmp
diff --git a/etc/wget.profile b/etc/wget.profile
index cd156a376..3ba97d95d 100644
--- a/etc/wget.profile
+++ b/etc/wget.profile
@@ -10,11 +10,11 @@ include /etc/firejail/disable-passwdmgr.inc
10 10
11caps.drop all 11caps.drop all
12netfilter 12netfilter
13no3d
14nogroups
13nonewprivs 15nonewprivs
14noroot 16noroot
15nogroups
16nosound 17nosound
17no3d
18protocol unix,inet,inet6 18protocol unix,inet,inet6
19seccomp 19seccomp
20shell none 20shell none
@@ -22,7 +22,9 @@ shell none
22blacklist /tmp/.X11-unix 22blacklist /tmp/.X11-unix
23 23
24# private-bin wget 24# private-bin wget
25# private-etc resolv.conf
26private-dev 25private-dev
26# private-etc resolv.conf
27private-tmp 27private-tmp
28 28
29noexec ${HOME}
30noexec /tmp
diff --git a/etc/wireshark.profile b/etc/wireshark.profile
index 90909edf1..dc224b31c 100644
--- a/etc/wireshark.profile
+++ b/etc/wireshark.profile
@@ -18,6 +18,7 @@ include /etc/firejail/disable-passwdmgr.inc
18#protocol unix,inet,inet6,netlink 18#protocol unix,inet,inet6,netlink
19 19
20netfilter 20netfilter
21no3d
21nogroups 22nogroups
22nonewprivs 23nonewprivs
23nosound 24nosound
@@ -28,3 +29,6 @@ tracelog
28#private-bin wireshark 29#private-bin wireshark
29private-dev 30private-dev
30private-tmp 31private-tmp
32
33noexec ${HOME}
34noexec /tmp
diff --git a/etc/xonotic.profile b/etc/xonotic.profile
index f2690c6c3..6bfb26484 100644
--- a/etc/xonotic.profile
+++ b/etc/xonotic.profile
@@ -23,7 +23,16 @@ include /etc/firejail/whitelist-common.inc
23#Options 23#Options
24caps.drop all 24caps.drop all
25netfilter 25netfilter
26nogroups
26nonewprivs 27nonewprivs
27noroot 28noroot
28protocol unix,inet,inet6 29protocol unix,inet,inet6
29seccomp 30seccomp
31shell none
32
33private-bin xonotic-sdl,xonotic-glx,blind-id
34private-dev
35private-tmp
36
37noexec ${HOME}
38noexec /tmp
diff --git a/etc/youtube-dl.profile b/etc/youtube-dl.profile
new file mode 100644
index 000000000..720a27af2
--- /dev/null
+++ b/etc/youtube-dl.profile
@@ -0,0 +1,26 @@
1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file.
3include /etc/firejail/youtube-dl.local
4
5# Firejail profile for youtube-dl
6
7include /etc/firejail/disable-common.inc
8include /etc/firejail/disable-programs.inc
9include /etc/firejail/disable-passwdmgr.inc
10include /etc/firejail/disable-devel.inc
11
12caps.drop all
13netfilter
14no3d
15nogroups
16nonewprivs
17noroot
18nosound
19protocol unix,inet,inet6
20seccomp
21shell none
22
23private-dev
24
25noexec ${HOME}
26noexec /tmp
diff --git a/platform/debian/conffiles b/platform/debian/conffiles
index 5f994128a..0f1f14bf5 100644
--- a/platform/debian/conffiles
+++ b/platform/debian/conffiles
@@ -119,6 +119,7 @@
119/etc/firejail/keepassx2.profile 119/etc/firejail/keepassx2.profile
120/etc/firejail/keepassxc.profile 120/etc/firejail/keepassxc.profile
121/etc/firejail/kmail.profile 121/etc/firejail/kmail.profile
122/etc/firejail/kodi.profile
122/etc/firejail/konversation.profile 123/etc/firejail/konversation.profile
123/etc/firejail/less.profile 124/etc/firejail/less.profile
124/etc/firejail/libreoffice.profile 125/etc/firejail/libreoffice.profile
@@ -137,6 +138,7 @@
137/etc/firejail/mathematica.profile 138/etc/firejail/mathematica.profile
138/etc/firejail/mcabber.profile 139/etc/firejail/mcabber.profile
139/etc/firejail/mediainfo.profile 140/etc/firejail/mediainfo.profile
141/etc/firejail/meld.profile
140/etc/firejail/midori.profile 142/etc/firejail/midori.profile
141/etc/firejail/mousepad.profile 143/etc/firejail/mousepad.profile
142/etc/firejail/mpv.profile 144/etc/firejail/mpv.profile
@@ -205,6 +207,8 @@
205/etc/firejail/unrar.profile 207/etc/firejail/unrar.profile
206/etc/firejail/unzip.profile 208/etc/firejail/unzip.profile
207/etc/firejail/uudeview.profile 209/etc/firejail/uudeview.profile
210/etc/firejail/viewnior.profile
211/etc/firejail/viking.profile
208/etc/firejail/vim.profile 212/etc/firejail/vim.profile
209/etc/firejail/virtualbox.profile 213/etc/firejail/virtualbox.profile
210/etc/firejail/vivaldi.profile 214/etc/firejail/vivaldi.profile
@@ -232,6 +236,7 @@
232/etc/firejail/xviewer.profile 236/etc/firejail/xviewer.profile
233/etc/firejail/xz.profile 237/etc/firejail/xz.profile
234/etc/firejail/xzdec.profile 238/etc/firejail/xzdec.profile
239/etc/firejail/youtube-dl.profile
235/etc/firejail/zathura.profile 240/etc/firejail/zathura.profile
236/etc/firejail/zoom.profile 241/etc/firejail/zoom.profile
237/etc/firejail/wget.profile 242/etc/firejail/wget.profile
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config
index 4a40402d7..dc8df9bac 100644
--- a/src/firecfg/firecfg.config
+++ b/src/firecfg/firecfg.config
@@ -17,6 +17,7 @@ transmission-qt
17transmission-cli 17transmission-cli
18transmission-show 18transmission-show
19uget-gtk 19uget-gtk
20youtube-dl
20 21
21# browsers/email 22# browsers/email
22abrowser 23abrowser
@@ -130,6 +131,7 @@ google-play-music-desktop-player
130gpicview 131gpicview
131img2txt 132img2txt
132k3b 133k3b
134kodi
133mediainfo 135mediainfo
134mediathekview 136mediathekview
135mpv 137mpv
@@ -140,6 +142,7 @@ simple-scan
140skanlite 142skanlite
141spotify 143spotify
142totem 144totem
145viewnior
143vlc 146vlc
144xfburn 147xfburn
145xmms 148xmms
@@ -201,11 +204,13 @@ keepass2
201keepassx 204keepassx
202keepassx2 205keepassx2
203keepassxc 206keepassxc
207meld
204mousepad 208mousepad
205pluma 209pluma
206Thunar 210Thunar
207thunar 211thunar
208tracker 212tracker
213viking
209wireshark 214wireshark
210xiphos 215xiphos
211xed 216xed
diff --git a/src/firejail/fs.c b/src/firejail/fs.c
index fa66da617..025e715e6 100644
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -113,7 +113,7 @@ static void disable_file(OPERATION op, const char *filename) {
113 else { 113 else {
114 if (arg_debug) { 114 if (arg_debug) {
115 if (strcmp(filename, fname)) 115 if (strcmp(filename, fname))
116 printf("Disable %s (requesterd %s)\n", fname, filename); 116 printf("Disable %s (requested %s)\n", fname, filename);
117 else 117 else
118 printf("Disable %s\n", fname); 118 printf("Disable %s\n", fname);
119 } 119 }
diff --git a/src/firejail/fs_home.c b/src/firejail/fs_home.c
index d24f19da7..70f0388e6 100644
--- a/src/firejail/fs_home.c
+++ b/src/firejail/fs_home.c
@@ -23,6 +23,7 @@
23#include <glob.h> 23#include <glob.h>
24#include <dirent.h> 24#include <dirent.h>
25#include <fcntl.h> 25#include <fcntl.h>
26#include <errno.h>
26#include <sys/stat.h> 27#include <sys/stat.h>
27#include <sys/types.h> 28#include <sys/types.h>
28#include <sys/wait.h> 29#include <sys/wait.h>
@@ -301,7 +302,7 @@ void fs_private(void) {
301 if (mkdir(homedir, S_IRWXU) == -1) { 302 if (mkdir(homedir, S_IRWXU) == -1) {
302 if (mkpath_as_root(homedir) == -1) 303 if (mkpath_as_root(homedir) == -1)
303 errExit("mkpath"); 304 errExit("mkpath");
304 if (mkdir(homedir, S_IRWXU) == -1) 305 if (mkdir(homedir, S_IRWXU) == -1 && errno != EEXIST)
305 errExit("mkdir"); 306 errExit("mkdir");
306 } 307 }
307 if (chown(homedir, u, g) < 0) 308 if (chown(homedir, u, g) < 0)
diff --git a/test/arguments/arguments.sh b/test/arguments/arguments.sh
index db4c9b472..d9b7058bf 100755
--- a/test/arguments/arguments.sh
+++ b/test/arguments/arguments.sh
@@ -1,6 +1,11 @@
1#!/bin/bash 1#!/bin/bash
2 2
3[ -f argtest ] || make argtest 3if [ -f /etc/debian_version ]; then
4 libdir=$(dirname "$(dpkg -L firejail | grep faudit)")
5 export PATH="$PATH:$libdir"
6else
7 export PATH="$PATH:/usr/lib/firejail"
8fi
4 9
5echo "TESTING: 1. regular bash session" 10echo "TESTING: 1. regular bash session"
6./bashrun.exp 11./bashrun.exp
diff --git a/test/arguments/bashrun.sh b/test/arguments/bashrun.sh
index 0797c92c2..a4773fd6c 100755
--- a/test/arguments/bashrun.sh
+++ b/test/arguments/bashrun.sh
@@ -1,22 +1,22 @@
1#!/bin/bash 1#!/bin/bash
2 2
3echo "TESTING: 1.1 - simple args" 3echo "TESTING: 1.1 - simple args"
4firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit arg1 arg2 4firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit arg1 arg2
5 5
6# simple quotes, testing spaces in file names 6# simple quotes, testing spaces in file names
7echo "TESTING: 1.2 - args with space and \"" 7echo "TESTING: 1.2 - args with space and \""
8firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit "arg1 tail" "arg2 tail" 8firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit "arg1 tail" "arg2 tail"
9 9
10echo "TESTING: 1.3 - args with space and '" 10echo "TESTING: 1.3 - args with space and '"
11firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit 'arg1 tail' 'arg2 tail' 11firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit 'arg1 tail' 'arg2 tail'
12 12
13# escaped space in file names 13# escaped space in file names
14echo "TESTING: 1.4 - args with space and \\" 14echo "TESTING: 1.4 - args with space and \\"
15firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit arg1\ tail arg2\ tail 15firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit arg1\ tail arg2\ tail
16 16
17# & char appears in URLs - URLs should be quoted 17# & char appears in URLs - URLs should be quoted
18echo "TESTING: 1.5 - args with & and \"" 18echo "TESTING: 1.5 - args with & and \""
19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit "arg1&tail" "arg2&tail" 19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit "arg1&tail" "arg2&tail"
20 20
21echo "TESTING: 1.6 - args with & and '" 21echo "TESTING: 1.6 - args with & and '"
22firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit 'arg1&tail' 'arg2&tail' 22firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit 'arg1&tail' 'arg2&tail'
diff --git a/test/arguments/joinrun.sh b/test/arguments/joinrun.sh
index 2743d823e..3ed166839 100755
--- a/test/arguments/joinrun.sh
+++ b/test/arguments/joinrun.sh
@@ -1,22 +1,22 @@
1#!/bin/bash 1#!/bin/bash
2 2
3echo "TESTING: 3.1 - simple args" 3echo "TESTING: 3.1 - simple args"
4firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun /usr/lib/firejail/faudit arg1 arg2 4firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit arg1 arg2
5 5
6# simple quotes, testing spaces in file names 6# simple quotes, testing spaces in file names
7echo "TESTING: 3.2 - args with space and \"" 7echo "TESTING: 3.2 - args with space and \""
8firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit "arg1 tail" "arg2 tail" 8firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit "arg1 tail" "arg2 tail"
9 9
10echo "TESTING: 3.3 - args with space and '" 10echo "TESTING: 3.3 - args with space and '"
11firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit 'arg1 tail' 'arg2 tail' 11firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit 'arg1 tail' 'arg2 tail'
12 12
13# escaped space in file names 13# escaped space in file names
14echo "TESTING: 3.4 - args with space and \\" 14echo "TESTING: 3.4 - args with space and \\"
15firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit arg1\ tail arg2\ tail 15firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit arg1\ tail arg2\ tail
16 16
17# & char appears in URLs - URLs should be quoted 17# & char appears in URLs - URLs should be quoted
18echo "TESTING: 3.5 - args with & and \"" 18echo "TESTING: 3.5 - args with & and \""
19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit "arg1&tail" "arg2&tail" 19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit "arg1&tail" "arg2&tail"
20 20
21echo "TESTING: 3.6 - args with & and '" 21echo "TESTING: 3.6 - args with & and '"
22firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit 'arg1&tail' 'arg2&tail' 22firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit 'arg1&tail' 'arg2&tail'
diff --git a/test/arguments/outrun.sh b/test/arguments/outrun.sh
index a21243873..e2b3046d6 100755
--- a/test/arguments/outrun.sh
+++ b/test/arguments/outrun.sh
@@ -1,22 +1,22 @@
1#!/bin/bash 1#!/bin/bash
2 2
3echo "TESTING: 4.1 - simple args" 3echo "TESTING: 4.1 - simple args"
4firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit arg1 arg2 4firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit arg1 arg2
5 5
6# simple quotes, testing spaces in file names 6# simple quotes, testing spaces in file names
7echo "TESTING: 4.2 - args with space and \"" 7echo "TESTING: 4.2 - args with space and \""
8firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit "arg1 tail" "arg2 tail" 8firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit "arg1 tail" "arg2 tail"
9 9
10echo "TESTING: 4.3 - args with space and '" 10echo "TESTING: 4.3 - args with space and '"
11firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit 'arg1 tail' 'arg2 tail' 11firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit 'arg1 tail' 'arg2 tail'
12 12
13# escaped space in file names 13# escaped space in file names
14echo "TESTING: 4.4 - args with space and \\" 14echo "TESTING: 4.4 - args with space and \\"
15firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit arg1\ tail arg2\ tail 15firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit arg1\ tail arg2\ tail
16 16
17# & char appears in URLs - URLs should be quoted 17# & char appears in URLs - URLs should be quoted
18echo "TESTING: 4.5 - args with & and \"" 18echo "TESTING: 4.5 - args with & and \""
19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit "arg1&tail" "arg2&tail" 19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit "arg1&tail" "arg2&tail"
20 20
21echo "TESTING: 4.6 - args with & and '" 21echo "TESTING: 4.6 - args with & and '"
22firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit 'arg1&tail' 'arg2&tail' 22firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit 'arg1&tail' 'arg2&tail'
diff --git a/test/environment/csh.exp b/test/environment/csh.exp
index bd0cf8c86..89de94b3c 100755
--- a/test/environment/csh.exp
+++ b/test/environment/csh.exp
@@ -14,7 +14,7 @@ expect {
14} 14}
15sleep 1 15sleep 1
16 16
17send -- "find /home\r" 17send -- "find ~\r"
18expect { 18expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 19 timeout {puts "TESTING ERROR 1\n";exit}
20 ".cshrc" 20 ".cshrc"
diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp
index 4380f476c..1b6cdcdc5 100755
--- a/test/environment/zsh.exp
+++ b/test/environment/zsh.exp
@@ -14,7 +14,7 @@ expect {
14} 14}
15sleep 1 15sleep 1
16 16
17send -- "find /home\r" 17send -- "find ~\r"
18expect { 18expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 19 timeout {puts "TESTING ERROR 1\n";exit}
20 ".zshrc" 20 ".zshrc"
diff --git a/test/fcopy/cmdline.exp b/test/fcopy/cmdline.exp
index 10dd8da58..798c9e718 100755
--- a/test/fcopy/cmdline.exp
+++ b/test/fcopy/cmdline.exp
@@ -7,7 +7,7 @@ set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10send -- "/usr/lib/firejail/fcopy\r" 10send -- "fcopy\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "arguments missing" 13 "arguments missing"
@@ -18,7 +18,7 @@ expect {
18} 18}
19after 100 19after 100
20 20
21send -- "/usr/lib/firejail/fcopy foo\r" 21send -- "fcopy foo\r"
22expect { 22expect {
23 timeout {puts "TESTING ERROR 2\n";exit} 23 timeout {puts "TESTING ERROR 2\n";exit}
24 "arguments missing" 24 "arguments missing"
@@ -29,14 +29,14 @@ expect {
29} 29}
30after 100 30after 100
31 31
32send -- "/usr/lib/firejail/fcopy f%oo1 foo2\r" 32send -- "fcopy f%oo1 foo2\r"
33expect { 33expect {
34 timeout {puts "TESTING ERROR 4\n";exit} 34 timeout {puts "TESTING ERROR 4\n";exit}
35 "invalid source file name" 35 "invalid source file name"
36} 36}
37after 100 37after 100
38 38
39send -- "/usr/lib/firejail/fcopy foo1 f,oo2\r" 39send -- "fcopy foo1 f,oo2\r"
40expect { 40expect {
41 timeout {puts "TESTING ERROR 5\n";exit} 41 timeout {puts "TESTING ERROR 5\n";exit}
42 "invalid dest file name" 42 "invalid dest file name"
diff --git a/test/fcopy/dircopy.exp b/test/fcopy/dircopy.exp
index 573f454c8..e8462ae82 100755
--- a/test/fcopy/dircopy.exp
+++ b/test/fcopy/dircopy.exp
@@ -13,7 +13,7 @@ match_max 100000
13send -- "rm -fr dest/*\r" 13send -- "rm -fr dest/*\r"
14after 100 14after 100
15 15
16send -- "/usr/lib/firejail/fcopy src dest\r" 16send -- "fcopy src dest\r"
17after 100 17after 100
18 18
19send -- "find dest\r" 19send -- "find dest\r"
diff --git a/test/fcopy/fcopy.sh b/test/fcopy/fcopy.sh
index 0ae50399a..d122eff5d 100755
--- a/test/fcopy/fcopy.sh
+++ b/test/fcopy/fcopy.sh
@@ -6,6 +6,13 @@
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8 8
9if [ -f /etc/debian_version ]; then
10 libdir=$(dirname "$(dpkg -L firejail | grep fcopy)")
11 export PATH="$PATH:$libdir"
12else
13 export PATH="$PATH:/usr/lib/firejail"
14fi
15
9mkdir dest 16mkdir dest
10 17
11echo "TESTING: fcopy cmdline (test/fcopy/cmdline.exp)" 18echo "TESTING: fcopy cmdline (test/fcopy/cmdline.exp)"
diff --git a/test/fcopy/filecopy.exp b/test/fcopy/filecopy.exp
index e0d959c32..824a22bba 100755
--- a/test/fcopy/filecopy.exp
+++ b/test/fcopy/filecopy.exp
@@ -13,7 +13,7 @@ match_max 100000
13send -- "rm -fr dest/*\r" 13send -- "rm -fr dest/*\r"
14after 100 14after 100
15 15
16send -- "/usr/lib/firejail/fcopy dircopy.exp dest\r" 16send -- "fcopy dircopy.exp dest\r"
17after 100 17after 100
18 18
19send -- "find dest\r" 19send -- "find dest\r"
diff --git a/test/fcopy/linkcopy.exp b/test/fcopy/linkcopy.exp
index beceb3675..46ee327cb 100755
--- a/test/fcopy/linkcopy.exp
+++ b/test/fcopy/linkcopy.exp
@@ -13,7 +13,7 @@ match_max 100000
13send -- "rm -fr dest/*\r" 13send -- "rm -fr dest/*\r"
14after 100 14after 100
15 15
16send -- "/usr/lib/firejail/fcopy src/dircopy.exp dest\r" 16send -- "fcopy src/dircopy.exp dest\r"
17after 100 17after 100
18 18
19send -- "find dest\r" 19send -- "find dest\r"
diff --git a/test/filters/filters.sh b/test/filters/filters.sh
index 4996e6d66..59d7d7e7f 100755
--- a/test/filters/filters.sh
+++ b/test/filters/filters.sh
@@ -6,6 +6,13 @@
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8 8
9if [ -f /etc/debian_version ]; then
10 libdir=$(dirname "$(dpkg -L firejail | grep fseccomp)")
11 export PATH="$PATH:$libdir"
12else
13 export PATH="$PATH:/usr/lib/firejail"
14fi
15
9echo "TESTING: debug options (test/filters/debug.exp)" 16echo "TESTING: debug options (test/filters/debug.exp)"
10./debug.exp 17./debug.exp
11 18
diff --git a/test/filters/fseccomp.exp b/test/filters/fseccomp.exp
index 4d876df08..433524680 100755
--- a/test/filters/fseccomp.exp
+++ b/test/filters/fseccomp.exp
@@ -8,39 +8,39 @@ spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10after 100 10after 100
11send -- "/usr/lib/firejail/fseccomp debug-syscalls\r" 11send -- "fseccomp debug-syscalls\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 1\n";exit} 13 timeout {puts "TESTING ERROR 1\n";exit}
14 "1 - write" 14 "1 - write"
15} 15}
16 16
17after 100 17after 100
18send -- "/usr/lib/firejail/fseccomp debug-errnos\r" 18send -- "fseccomp debug-errnos\r"
19expect { 19expect {
20 timeout {puts "TESTING ERROR 2\n";exit} 20 timeout {puts "TESTING ERROR 2\n";exit}
21 "1 - EPERM" 21 "1 - EPERM"
22} 22}
23 23
24after 100 24after 100
25send -- "/usr/lib/firejail/fseccomp debug-protocols\r" 25send -- "fseccomp debug-protocols\r"
26expect { 26expect {
27 timeout {puts "TESTING ERROR 3\n";exit} 27 timeout {puts "TESTING ERROR 3\n";exit}
28 "unix, inet, inet6, netlink, packet," 28 "unix, inet, inet6, netlink, packet,"
29} 29}
30 30
31after 100 31after 100
32send -- "/usr/lib/firejail/fseccomp protocol build unix,inet seccomp-test-file\r" 32send -- "fseccomp protocol build unix,inet seccomp-test-file\r"
33after 100 33after 100
34send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" 34send -- "fseccomp print seccomp-test-file\r"
35expect { 35expect {
36 timeout {puts "TESTING ERROR 4.1\n";exit} 36 timeout {puts "TESTING ERROR 4.1\n";exit}
37 "WHITELIST 41 socket" 37 "WHITELIST 41 socket"
38} 38}
39 39
40after 100 40after 100
41send -- "/usr/lib/firejail/fseccomp secondary 64 seccomp-test-file\r" 41send -- "fseccomp secondary 64 seccomp-test-file\r"
42after 100 42after 100
43send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" 43send -- "fseccomp print seccomp-test-file\r"
44expect { 44expect {
45 timeout {puts "TESTING ERROR 5.1\n";exit} 45 timeout {puts "TESTING ERROR 5.1\n";exit}
46 "BLACKLIST 165 mount" 46 "BLACKLIST 165 mount"
@@ -55,9 +55,9 @@ expect {
55} 55}
56 56
57after 100 57after 100
58send -- "/usr/lib/firejail/fseccomp default seccomp-test-file\r" 58send -- "fseccomp default seccomp-test-file\r"
59after 100 59after 100
60send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" 60send -- "fseccomp print seccomp-test-file\r"
61expect { 61expect {
62 timeout {puts "TESTING ERROR 6.1\n";exit} 62 timeout {puts "TESTING ERROR 6.1\n";exit}
63 "BLACKLIST 165 mount" 63 "BLACKLIST 165 mount"
@@ -72,9 +72,9 @@ expect {
72} 72}
73 73
74after 100 74after 100
75send -- "/usr/lib/firejail/fseccomp drop seccomp-test-file chmod,chown\r" 75send -- "fseccomp drop seccomp-test-file chmod,chown\r"
76after 100 76after 100
77send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" 77send -- "fseccomp print seccomp-test-file\r"
78expect { 78expect {
79 timeout {puts "TESTING ERROR 7.1\n";exit} 79 timeout {puts "TESTING ERROR 7.1\n";exit}
80 "BLACKLIST 165 mount" {puts "TESTING ERROR 7.2\n";exit} 80 "BLACKLIST 165 mount" {puts "TESTING ERROR 7.2\n";exit}
@@ -91,9 +91,9 @@ expect {
91} 91}
92 92
93after 100 93after 100
94send -- "/usr/lib/firejail/fseccomp default drop seccomp-test-file chmod,chown\r" 94send -- "fseccomp default drop seccomp-test-file chmod,chown\r"
95after 100 95after 100
96send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" 96send -- "fseccomp print seccomp-test-file\r"
97expect { 97expect {
98 timeout {puts "TESTING ERROR 8.1\n";exit} 98 timeout {puts "TESTING ERROR 8.1\n";exit}
99 "BLACKLIST 165 mount" 99 "BLACKLIST 165 mount"
@@ -115,9 +115,9 @@ expect {
115 "RETURN_ALLOW" 115 "RETURN_ALLOW"
116} 116}
117after 100 117after 100
118send -- "/usr/lib/firejail/fseccomp keep seccomp-test-file chmod,chown\r" 118send -- "fseccomp keep seccomp-test-file chmod,chown\r"
119after 100 119after 100
120send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" 120send -- "fseccomp print seccomp-test-file\r"
121expect { 121expect {
122 timeout {puts "TESTING ERROR 9.1\n";exit} 122 timeout {puts "TESTING ERROR 9.1\n";exit}
123 "WHITELIST 90 chmod" 123 "WHITELIST 90 chmod"
diff --git a/test/fs/mkdir_mkfile.exp b/test/fs/mkdir_mkfile.exp
index 28a5ae459..1faa913e0 100755
--- a/test/fs/mkdir_mkfile.exp
+++ b/test/fs/mkdir_mkfile.exp
@@ -16,11 +16,7 @@ expect {
16} 16}
17sleep 1 17sleep 1
18 18
19send -- "find ~\r" 19send -- "find ~ | LC_ALL=C sort\r"
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "_firejail_test_file"
23}
24expect { 20expect {
25 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
26 "_firejail_test_dir" 22 "_firejail_test_dir"
@@ -41,6 +37,10 @@ expect {
41 timeout {puts "TESTING ERROR 1\n";exit} 37 timeout {puts "TESTING ERROR 1\n";exit}
42 "_firejail_test_dir/dir1/dir2/dir3/file1" 38 "_firejail_test_dir/dir1/dir2/dir3/file1"
43} 39}
40expect {
41 timeout {puts "TESTING ERROR 1\n";exit}
42 "_firejail_test_file"
43}
44after 100 44after 100
45send -- "exit\r" 45send -- "exit\r"
46after 100 46after 100
diff --git a/test/fs/private-home-dir.exp b/test/fs/private-home-dir.exp
index 77baeeb5f..9c97ff4ea 100755
--- a/test/fs/private-home-dir.exp
+++ b/test/fs/private-home-dir.exp
@@ -41,7 +41,11 @@ expect {
41} 41}
42after 100 42after 100
43 43
44send -- "ls -al ~\r" 44send -- "find ~ | LC_ALL=C sort\r"
45expect {
46 timeout {puts "TESTING ERROR 4\n";exit}
47 ".Xauthority"
48}
45expect { 49expect {
46 timeout {puts "TESTING ERROR 2\n";exit} 50 timeout {puts "TESTING ERROR 2\n";exit}
47 ".asoundrc" 51 ".asoundrc"
@@ -50,10 +54,6 @@ expect {
50 timeout {puts "TESTING ERROR 3\n";exit} 54 timeout {puts "TESTING ERROR 3\n";exit}
51 ".bashrc" 55 ".bashrc"
52} 56}
53expect {
54 timeout {puts "TESTING ERROR 4\n";exit}
55 ".Xauthority"
56}
57after 100 57after 100
58 58
59send -- "exit\r" 59send -- "exit\r"
diff --git a/test/fs/private.exp b/test/fs/private.exp
index c7059079d..e522ca5a1 100755
--- a/test/fs/private.exp
+++ b/test/fs/private.exp
@@ -37,18 +37,18 @@ expect {
37} 37}
38after 100 38after 100
39 39
40send -- "ls -al ~\r" 40send -- "find ~ | LC_ALL=C sort\r"
41expect { 41expect {
42 timeout {puts "TESTING ERROR 2\n";exit} 42 timeout {puts "TESTING ERROR 2\n";exit}
43 ".asoundrc" 43 ".Xauthority"
44} 44}
45expect { 45expect {
46 timeout {puts "TESTING ERROR 3\n";exit} 46 timeout {puts "TESTING ERROR 3\n";exit}
47 ".bashrc" 47 ".asoundrc"
48} 48}
49expect { 49expect {
50 timeout {puts "TESTING ERROR 4\n";exit} 50 timeout {puts "TESTING ERROR 4\n";exit}
51 ".Xauthority" 51 ".bashrc"
52} 52}
53after 100 53after 100
54 54
diff --git a/test/fs/whitelist-double.exp b/test/fs/whitelist-double.exp
index dd2336ce1..ac6adc165 100755
--- a/test/fs/whitelist-double.exp
+++ b/test/fs/whitelist-double.exp
@@ -32,10 +32,10 @@ expect {
32 "123" 32 "123"
33} 33}
34 34
35send -- "rm /tmp/firejal-deleteme\r" 35send -- "rm -v /tmp/firejal-deleteme\r"
36expect { 36expect {
37 timeout {puts "TESTING ERROR 3\n";exit} 37 timeout {puts "TESTING ERROR 3\n";exit}
38 "0" 38 "removed"
39} 39}
40after 100 40after 100
41 41
diff --git a/test/fs/whitelist-empty.exp b/test/fs/whitelist-empty.exp
index e1c3ffb4a..9e4406263 100755
--- a/test/fs/whitelist-empty.exp
+++ b/test/fs/whitelist-empty.exp
@@ -14,36 +14,36 @@ expect {
14} 14}
15sleep 1 15sleep 1
16 16
17send -- "ls -l ~/ | wc -l\r" 17send -- "ls -l ~\r"
18expect { 18expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 19 timeout {puts "TESTING ERROR 1\n";exit}
20 "0" 20 "0"
21} 21}
22 22
23send -- "ls -l /tmp | wc -l\r" 23send -- "ls -l /tmp\r"
24expect { 24expect {
25 timeout {puts "TESTING ERROR 2\n";exit} 25 timeout {puts "TESTING ERROR 2\n";exit}
26 "0" 26 "0"
27} 27}
28 28
29send -- "ls -l /media | wc -l\r" 29send -- "ls -l /media\r"
30expect { 30expect {
31 timeout {puts "TESTING ERROR 3\n";exit} 31 timeout {puts "TESTING ERROR 3\n";exit}
32 "0" 32 "0"
33} 33}
34 34
35send -- "ls -l /var | wc -l\r" 35send -- "ls -l /var\r"
36expect { 36expect {
37 timeout {puts "TESTING ERROR 4\n";exit} 37 timeout {puts "TESTING ERROR 4\n";exit}
38 "0" 38 "0"
39} 39}
40 40
41send -- "ls -l /dev | wc -l\r" 41send -- "ls -l /dev\r"
42expect { 42expect {
43 timeout {puts "TESTING ERROR 5\n";exit} 43 timeout {puts "TESTING ERROR 5\n";exit}
44 "0" 44 "0"
45} 45}
46send -- "ls -l /opt | wc -l\r" 46send -- "ls -l /opt\r"
47expect { 47expect {
48 timeout {puts "TESTING ERROR 6\n";exit} 48 timeout {puts "TESTING ERROR 6\n";exit}
49 "0" 49 "0"
diff --git a/test/network/4bridges_arp.exp b/test/network/4bridges_arp.exp
index 80760eb3a..e84ec719c 100755
--- a/test/network/4bridges_arp.exp
+++ b/test/network/4bridges_arp.exp
@@ -150,22 +150,26 @@ expect {
150send -- "ip route show\r" 150send -- "ip route show\r"
151expect { 151expect {
152 timeout {puts "TESTING ERROR 10.2\n";exit} 152 timeout {puts "TESTING ERROR 10.2\n";exit}
153 "10.10.20.0/29 dev eth0 proto kernel scope link" 153 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "old iproute2\n";}
154 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "new iproute2\n";}
154} 155}
155send -- "ip route show\r" 156send -- "ip route show\r"
156expect { 157expect {
157 timeout {puts "TESTING ERROR 10.2\n";exit} 158 timeout {puts "TESTING ERROR 10.2\n";exit}
158 "10.10.30.0/24 dev eth1 proto kernel scope link" 159 "10.10.30.0/24 dev eth1 proto kernel scope link" {puts "old iproute2\n";}
160 "10.10.30.0/24 dev eth1 proto kernel scope link" {puts "new iproute2\n";}
159} 161}
160send -- "ip route show\r" 162send -- "ip route show\r"
161expect { 163expect {
162 timeout {puts "TESTING ERROR 10.2\n";exit} 164 timeout {puts "TESTING ERROR 10.2\n";exit}
163 "10.10.40.0/24 dev eth2 proto kernel scope link" 165 "10.10.40.0/24 dev eth2 proto kernel scope link" {puts "old iproute2\n";}
166 "10.10.40.0/24 dev eth2 proto kernel scope link" {puts "new iproute2\n";}
164} 167}
165send -- "ip route show\r" 168send -- "ip route show\r"
166expect { 169expect {
167 timeout {puts "TESTING ERROR 10.2\n";exit} 170 timeout {puts "TESTING ERROR 10.2\n";exit}
168 "10.10.50.0/24 dev eth3 proto kernel scope link" 171 "10.10.50.0/24 dev eth3 proto kernel scope link" {puts "old iproute2\n";}
172 "10.10.50.0/24 dev eth3 proto kernel scope link" {puts "new iproute2\n";}
169} 173}
170send -- "exit\r" 174send -- "exit\r"
171after 100 175after 100
diff --git a/test/network/4bridges_ip.exp b/test/network/4bridges_ip.exp
index 5e136926b..74a1e5d68 100755
--- a/test/network/4bridges_ip.exp
+++ b/test/network/4bridges_ip.exp
@@ -150,25 +150,29 @@ expect {
150send -- "ip route show\r" 150send -- "ip route show\r"
151expect { 151expect {
152 timeout {puts "TESTING ERROR 10.2\n";exit} 152 timeout {puts "TESTING ERROR 10.2\n";exit}
153 "10.10.20.0/29 dev eth0 proto kernel scope link" 153 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "old iproute2\n";}
154 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "new iproute2\n";}
154} 155}
155 156
156send -- "ip route show\r" 157send -- "ip route show\r"
157expect { 158expect {
158 timeout {puts "TESTING ERROR 10.3\n";exit} 159 timeout {puts "TESTING ERROR 10.3\n";exit}
159 "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" 160 "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" {puts "old iproute2\n";}
161 "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" {puts "new iproute2\n";}
160} 162}
161 163
162send -- "ip route show\r" 164send -- "ip route show\r"
163expect { 165expect {
164 timeout {puts "TESTING ERROR 10.4\n";exit} 166 timeout {puts "TESTING ERROR 10.4\n";exit}
165 "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" 167 "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" {puts "old iproute2\n";}
168 "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" {puts "new iproute2\n";}
166} 169}
167 170
168send -- "ip route show\r" 171send -- "ip route show\r"
169expect { 172expect {
170 timeout {puts "TESTING ERROR 10.5\n";exit} 173 timeout {puts "TESTING ERROR 10.5\n";exit}
171 "10.10.50.0/24 dev eth3 proto kernel scope link" 174 "10.10.50.0/24 dev eth3 proto kernel scope link" {puts "old iproute2\n";}
175 "10.10.50.0/24 dev eth3 proto kernel scope link" {puts "new iproute2\n";}
172} 176}
173 177
174send -- "exit\r" 178send -- "exit\r"
diff --git a/test/network/interface.exp b/test/network/interface.exp
index bd8777c33..638e6d32b 100755
--- a/test/network/interface.exp
+++ b/test/network/interface.exp
@@ -27,8 +27,9 @@ expect {
27 "eth0.5" 27 "eth0.5"
28} 28}
29expect { 29expect {
30 timeout {puts "TESTING ERROR 2n";exit} 30 timeout {puts "TESTING ERROR 2\n";exit}
31 "Link" 31 "Link" {puts "old net-tools\n";}
32 "flags" {puts "new net-tools\n";}
32} 33}
33expect { 34expect {
34 timeout {puts "TESTING ERROR 3\n";exit} 35 timeout {puts "TESTING ERROR 3\n";exit}
@@ -47,7 +48,8 @@ expect {
47} 48}
48expect { 49expect {
49 timeout {puts "TESTING ERROR 6\n";exit} 50 timeout {puts "TESTING ERROR 6\n";exit}
50 "Link" 51 "Link" {puts "old net-tools\n";}
52 "flags" {puts "new net-tools\n";}
51} 53}
52expect { 54expect {
53 timeout {puts "TESTING ERROR 7\n";exit} 55 timeout {puts "TESTING ERROR 7\n";exit}
diff --git a/test/network/net_defaultgw.exp b/test/network/net_defaultgw.exp
index c7178616a..763eee38e 100755
--- a/test/network/net_defaultgw.exp
+++ b/test/network/net_defaultgw.exp
@@ -41,7 +41,8 @@ expect {
41send -- "ip route show\r" 41send -- "ip route show\r"
42expect { 42expect {
43 timeout {puts "TESTING ERROR 10.2\n";exit} 43 timeout {puts "TESTING ERROR 10.2\n";exit}
44 "10.10.20.0/29 dev eth0 proto kernel scope link" 44 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "old iproute2\n";}
45 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "new iproute2\n";}
45} 46}
46send -- "exit\r" 47send -- "exit\r"
47after 100 48after 100
diff --git a/test/network/net_defaultgw2.exp b/test/network/net_defaultgw2.exp
index 088dfeee8..e7483c921 100755
--- a/test/network/net_defaultgw2.exp
+++ b/test/network/net_defaultgw2.exp
@@ -29,13 +29,15 @@ expect {
29send -- "ip route show\r" 29send -- "ip route show\r"
30expect { 30expect {
31 timeout {puts "TESTING ERROR 10.2\n";exit} 31 timeout {puts "TESTING ERROR 10.2\n";exit}
32 "10.10.20.0/29 dev eth0 proto kernel scope link" 32 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "old iproute2\n";}
33 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "new iproute2\n";}
33} 34}
34 35
35send -- "ip route show\r" 36send -- "ip route show\r"
36expect { 37expect {
37 timeout {puts "TESTING ERROR 10.3\n";exit} 38 timeout {puts "TESTING ERROR 10.3\n";exit}
38 "10.10.30.0/24 dev eth1 proto kernel scope link" 39 "10.10.30.0/24 dev eth1 proto kernel scope link" {puts "old iproute2\n";}
40 "10.10.30.0/24 dev eth1 proto kernel scope link" {puts "new iproute2\n";}
39} 41}
40send -- "exit\r" 42send -- "exit\r"
41after 100 43after 100
diff --git a/test/network/net_ip.exp b/test/network/net_ip.exp
index c6b84781c..8ec676dd1 100755
--- a/test/network/net_ip.exp
+++ b/test/network/net_ip.exp
@@ -67,7 +67,8 @@ expect {
67send -- "ip route show\r" 67send -- "ip route show\r"
68expect { 68expect {
69 timeout {puts "TESTING ERROR 10\n";exit} 69 timeout {puts "TESTING ERROR 10\n";exit}
70 "10.10.20.0/29 dev eth0 proto kernel scope link" 70 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "old iproute2\n";}
71 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "new iproute2\n";}
71} 72}
72send -- "exit\r" 73send -- "exit\r"
73after 100 74after 100
diff --git a/test/network/net_profile.exp b/test/network/net_profile.exp
index febbcfcd7..b3bc9b441 100755
--- a/test/network/net_profile.exp
+++ b/test/network/net_profile.exp
@@ -38,13 +38,15 @@ sleep 1
38send -- "ip route show\r" 38send -- "ip route show\r"
39expect { 39expect {
40 timeout {puts "TESTING ERROR 1\n";exit} 40 timeout {puts "TESTING ERROR 1\n";exit}
41 "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" 41 "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" {puts "old iproute2\n";}
42 "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" {puts "new iproute2\n";}
42} 43}
43 44
44send -- "ip route show\r" 45send -- "ip route show\r"
45expect { 46expect {
46 timeout {puts "TESTING ERROR 2\n";exit} 47 timeout {puts "TESTING ERROR 2\n";exit}
47 "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" 48 "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" {puts "old iproute2\n";}
49 "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" {puts "new iproute2\n";}
48} 50}
49 51
50 52
diff --git a/test/utils/audit.exp b/test/utils/audit.exp
index 566493947..f0c1906a0 100755
--- a/test/utils/audit.exp
+++ b/test/utils/audit.exp
@@ -35,7 +35,7 @@ expect {
35after 100 35after 100
36 36
37 37
38send -- "firejail --audit=/usr/lib/firejail/faudit\r" 38send -- "firejail --audit\r"
39expect { 39expect {
40 timeout {puts "TESTING ERROR 6\n";exit} 40 timeout {puts "TESTING ERROR 6\n";exit}
41 "Firejail Audit" 41 "Firejail Audit"