-
Notifications
You must be signed in to change notification settings - Fork 557
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
Jun 10, 2016
1 parent
ecaf0cb
commit 783251e
Showing
12 changed files
with
125 additions
and
6 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 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 |
---|---|---|
|
@@ -12,3 +12,7 @@ nonewprivs | |
noroot | ||
protocol unix,inet,inet6 | ||
seccomp | ||
|
||
# to test | ||
shell none | ||
private-bin mpv |
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 |
---|---|---|
|
@@ -11,3 +11,6 @@ noroot | |
nosound | ||
protocol unix,inet,inet6 | ||
seccomp | ||
|
||
shell none | ||
private-bin qbittorrent |
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 |
---|---|---|
|
@@ -11,3 +11,6 @@ noroot | |
nosound | ||
protocol unix,inet,inet6 | ||
seccomp | ||
|
||
shell none | ||
private-bin rtorrent |
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 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 |
---|---|---|
|
@@ -12,3 +12,8 @@ nonewprivs | |
noroot | ||
protocol unix,inet,inet6 | ||
seccomp | ||
|
||
|
||
# to test | ||
shell none | ||
private-bin vlc |
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 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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
#!/usr/bin/expect -f | ||
# This file is part of Firejail project | ||
# Copyright (C) 2014-2016 Firejail Authors | ||
# License GPL v2 | ||
|
||
set timeout 10 | ||
spawn $env(SHELL) | ||
match_max 100000 | ||
|
||
send -- "firejail qbittorrent\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 0\n";exit} | ||
"Reading profile /etc/firejail/qbittorrent.profile" | ||
} | ||
expect { | ||
timeout {puts "TESTING ERROR 1\n";exit} | ||
"Child process initialized" | ||
} | ||
sleep 5 | ||
|
||
spawn $env(SHELL) | ||
send -- "firejail --list\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 3\n";exit} | ||
":firejail" | ||
} | ||
expect { | ||
timeout {puts "TESTING ERROR 3.1\n";exit} | ||
"qbittorrent" | ||
} | ||
sleep 1 | ||
|
||
# grsecurity exit | ||
send -- "file /proc/sys/kernel/grsecurity\r" | ||
expect { | ||
timeout {puts "TESTING ERROR - grsecurity detection\n";exit} | ||
"grsecurity: directory" {puts "grsecurity present, exiting...\n";exit} | ||
"cannot open" {puts "grsecurity not present\n"} | ||
} | ||
|
||
send -- "firejail --name=blablabla\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 4\n";exit} | ||
"Child process initialized" | ||
} | ||
sleep 2 | ||
|
||
spawn $env(SHELL) | ||
send -- "firemon --seccomp\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 5\n";exit} | ||
":firejail qbittorrent" | ||
} | ||
expect { | ||
timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | ||
"Seccomp: 2" | ||
} | ||
expect { | ||
timeout {puts "TESTING ERROR 5.1\n";exit} | ||
"name=blablabla" | ||
} | ||
sleep 1 | ||
send -- "firemon --caps\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 6\n";exit} | ||
":firejail qbittorrent" | ||
} | ||
expect { | ||
timeout {puts "TESTING ERROR 6.1\n";exit} | ||
"CapBnd:" | ||
} | ||
expect { | ||
timeout {puts "TESTING ERROR 6.2\n";exit} | ||
"0000000000000000" | ||
} | ||
expect { | ||
timeout {puts "TESTING ERROR 6.3\n";exit} | ||
"name=blablabla" | ||
} | ||
sleep 1 | ||
|
||
puts "\n" | ||
|