forked from netblue30/firejail
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
netblue30
committed
Nov 7, 2016
1 parent
6f1816a
commit c0b5b9a
Showing
9 changed files
with
39 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#!/bin/bash | ||
|
||
echo "TESTING: 1.1 - simple args" | ||
firejail --quiet ./argtest arg1 arg2 | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit arg1 arg2 | ||
|
||
# simple quotes, testing spaces in file names | ||
echo "TESTING: 1.2 - args with space and \"" | ||
firejail --quiet ./argtest "arg1 tail" "arg2 tail" | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit "arg1 tail" "arg2 tail" | ||
|
||
echo "TESTING: 1.3 - args with space and '" | ||
firejail --quiet ./argtest 'arg1 tail' 'arg2 tail' | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit 'arg1 tail' 'arg2 tail' | ||
|
||
# escaped space in file names | ||
echo "TESTING: 1.4 - args with space and \\" | ||
firejail --quiet ./argtest arg1\ tail arg2\ tail | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit arg1\ tail arg2\ tail | ||
|
||
# & char appears in URLs - URLs should be quoted | ||
echo "TESTING: 1.5 - args with & and \"" | ||
firejail --quiet ./argtest "arg1&tail" "arg2&tail" | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit "arg1&tail" "arg2&tail" | ||
|
||
echo "TESTING: 1.6 - args with & and '" | ||
firejail --quiet ./argtest 'arg1&tail' 'arg2&tail' | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit 'arg1&tail' 'arg2&tail' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#!/bin/bash | ||
|
||
echo "TESTING: 3.1 - simple args" | ||
firejail --join=joinrun ./argtest arg1 arg2 | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun /usr/lib/firejail/faudit arg1 arg2 | ||
|
||
# simple quotes, testing spaces in file names | ||
echo "TESTING: 3.2 - args with space and \"" | ||
firejail --quiet ./argtest "arg1 tail" "arg2 tail" | ||
firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit "arg1 tail" "arg2 tail" | ||
|
||
echo "TESTING: 3.3 - args with space and '" | ||
firejail --quiet ./argtest 'arg1 tail' 'arg2 tail' | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit 'arg1 tail' 'arg2 tail' | ||
|
||
# escaped space in file names | ||
echo "TESTING: 3.4 - args with space and \\" | ||
firejail --quiet ./argtest arg1\ tail arg2\ tail | ||
firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit arg1\ tail arg2\ tail | ||
|
||
# & char appears in URLs - URLs should be quoted | ||
echo "TESTING: 3.5 - args with & and \"" | ||
firejail --quiet ./argtest "arg1&tail" "arg2&tail" | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit "arg1&tail" "arg2&tail" | ||
|
||
echo "TESTING: 3.6 - args with & and '" | ||
firejail --quiet ./argtest 'arg1&tail' 'arg2&tail' | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet /usr/lib/firejail/faudit 'arg1&tail' 'arg2&tail' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#!/bin/bash | ||
|
||
echo "TESTING: 4.1 - simple args" | ||
firejail --output=out ./argtest arg1 arg2 | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit arg1 arg2 | ||
|
||
# simple quotes, testing spaces in file names | ||
echo "TESTING: 4.2 - args with space and \"" | ||
firejail --output=out ./argtest "arg1 tail" "arg2 tail" | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit "arg1 tail" "arg2 tail" | ||
|
||
echo "TESTING: 4.3 - args with space and '" | ||
firejail --output=out ./argtest 'arg1 tail' 'arg2 tail' | ||
firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit 'arg1 tail' 'arg2 tail' | ||
|
||
# escaped space in file names | ||
echo "TESTING: 4.4 - args with space and \\" | ||
firejail --output=out ./argtest arg1\ tail arg2\ tail | ||
firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit arg1\ tail arg2\ tail | ||
|
||
# & char appears in URLs - URLs should be quoted | ||
echo "TESTING: 4.5 - args with & and \"" | ||
firejail --output=out ./argtest "arg1&tail" "arg2&tail" | ||
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit "arg1&tail" "arg2&tail" | ||
|
||
echo "TESTING: 4.6 - args with & and '" | ||
firejail --output=out ./argtest 'arg1&tail' 'arg2&tail' | ||
firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out /usr/lib/firejail/faudit 'arg1&tail' 'arg2&tail' |
This file was deleted.
Oops, something went wrong.