From bfe63202722791b5ba088dd1ee88f49d6ef2a90d Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 4 Apr 2016 20:28:26 -0400 Subject: grsecurity: testing --- test/chromium-x11.exp | 7 +++++++ test/chromium.exp | 8 ++++++++ test/deluge.exp | 8 ++++++++ test/evince.exp | 8 ++++++++ test/fbreader.exp | 8 ++++++++ test/firefox-x11.exp | 7 +++++++ test/firefox.exp | 10 ++++++++++ test/gnome-mplayer.exp | 8 ++++++++ test/google-chrome.exp | 8 ++++++++ test/hexchat.exp | 9 +++++++++ test/icedove.exp | 8 ++++++++ test/midori.exp | 8 ++++++++ test/opera.exp | 8 ++++++++ test/transmission-gtk-x11.exp | 8 ++++++++ test/transmission-gtk.exp | 7 +++++++ test/transmission-qt.exp | 8 ++++++++ test/vlc.exp | 8 ++++++++ test/weechat.exp | 9 +++++++++ test/xchat.exp | 9 +++++++++ 19 files changed, 154 insertions(+) diff --git a/test/chromium-x11.exp b/test/chromium-x11.exp index 0d8a5dfb3..bcac3233c 100755 --- a/test/chromium-x11.exp +++ b/test/chromium-x11.exp @@ -19,6 +19,13 @@ expect { } 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} diff --git a/test/chromium.exp b/test/chromium.exp index 77325d070..676f7e314 100755 --- a/test/chromium.exp +++ b/test/chromium.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/deluge.exp b/test/deluge.exp index 49266813e..9f5063495 100755 --- a/test/deluge.exp +++ b/test/deluge.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/evince.exp b/test/evince.exp index 0c57f3871..3c3ad4bdd 100755 --- a/test/evince.exp +++ b/test/evince.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/fbreader.exp b/test/fbreader.exp index a4df50932..d2bee880e 100755 --- a/test/fbreader.exp +++ b/test/fbreader.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/firefox-x11.exp b/test/firefox-x11.exp index 8bc7fbd25..7e30437db 100755 --- a/test/firefox-x11.exp +++ b/test/firefox-x11.exp @@ -23,6 +23,13 @@ expect { "no-remote" } 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} diff --git a/test/firefox.exp b/test/firefox.exp index d531cf977..2585e4b5c 100755 --- a/test/firefox.exp +++ b/test/firefox.exp @@ -31,6 +31,16 @@ expect { "no-remote" } 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} diff --git a/test/gnome-mplayer.exp b/test/gnome-mplayer.exp index 193d532ae..6965322fc 100755 --- a/test/gnome-mplayer.exp +++ b/test/gnome-mplayer.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/google-chrome.exp b/test/google-chrome.exp index 7999831d7..389988e3c 100755 --- a/test/google-chrome.exp +++ b/test/google-chrome.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/hexchat.exp b/test/hexchat.exp index 0653bcb13..7e99c8cdf 100755 --- a/test/hexchat.exp +++ b/test/hexchat.exp @@ -26,6 +26,15 @@ expect { "hexchat" } 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} diff --git a/test/icedove.exp b/test/icedove.exp index be5309e07..344febb93 100755 --- a/test/icedove.exp +++ b/test/icedove.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/midori.exp b/test/midori.exp index ec33816dd..470f5de77 100755 --- a/test/midori.exp +++ b/test/midori.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/opera.exp b/test/opera.exp index f536ae866..23eed5504 100755 --- a/test/opera.exp +++ b/test/opera.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/transmission-gtk-x11.exp b/test/transmission-gtk-x11.exp index 6192b277c..4ee3de701 100755 --- a/test/transmission-gtk-x11.exp +++ b/test/transmission-gtk-x11.exp @@ -19,6 +19,14 @@ expect { } 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} diff --git a/test/transmission-gtk.exp b/test/transmission-gtk.exp index 77d5dd30c..1acfc6f94 100755 --- a/test/transmission-gtk.exp +++ b/test/transmission-gtk.exp @@ -23,6 +23,13 @@ expect { } 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} diff --git a/test/transmission-qt.exp b/test/transmission-qt.exp index d27c16d6d..944fd28a2 100755 --- a/test/transmission-qt.exp +++ b/test/transmission-qt.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/vlc.exp b/test/vlc.exp index 53d25c9dd..290c0fc2f 100755 --- a/test/vlc.exp +++ b/test/vlc.exp @@ -27,6 +27,14 @@ expect { } 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} diff --git a/test/weechat.exp b/test/weechat.exp index ac2430280..630af55ee 100755 --- a/test/weechat.exp +++ b/test/weechat.exp @@ -26,6 +26,15 @@ expect { "weechat-curses" } 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} diff --git a/test/xchat.exp b/test/xchat.exp index babbcf87d..cde89d754 100755 --- a/test/xchat.exp +++ b/test/xchat.exp @@ -26,6 +26,15 @@ expect { "xchat" } 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} -- cgit v1.2.3-54-g00ecf