From 66a988fcf007a6d8610db64f1ad85d34fcbc625f Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 26 Sep 2016 15:26:28 -0400 Subject: more CVE-2016-7545 --- src/firejail/sandbox.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index 272737c06..a348add34 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c @@ -86,6 +86,7 @@ static void sandbox_handler(int sig){ // broadcast a SIGKILL kill(-1, SIGKILL); +#if 0 int fd = open("/dev/tty", O_RDWR); if (fd != -1) { ioctl(fd, TCFLSH, TCIFLUSH); @@ -96,6 +97,7 @@ static void sandbox_handler(int sig){ ioctl(1, TCFLSH, TCIFLUSH); ioctl(2, TCFLSH, TCIFLUSH); } +#endif exit(sig); } @@ -906,6 +908,7 @@ int sandbox(void* sandbox_arg) { } int status = monitor_application(app_pid); // monitor application +#if 0 int fd = open("/dev/tty", O_RDWR); if (fd != -1) { ioctl(fd, TCFLSH, TCIFLUSH); @@ -916,6 +919,7 @@ int sandbox(void* sandbox_arg) { ioctl(1, TCFLSH, TCIFLUSH); ioctl(2, TCFLSH, TCIFLUSH); } +#endif if (WIFEXITED(status)) { // if we had a proper exit, return that exit status -- cgit v1.2.3-70-g09d2