Permalink
Browse files

CVE-2016-7545

  • Loading branch information...
netblue30 committed Sep 27, 2016
1 parent 8ad0743 commit 46dc2b34f1fbbc4597b4ff9f6a3cb28b2d500d1b
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/firejail/join.c
View
@@ -30,6 +30,12 @@ static uint64_t caps = 0;
static int apply_seccomp = 0;
#define BUFLEN 4096
static void signal_handler(int sig){
flush_stdin();
exit(sig);
}
static void extract_command(int argc, char **argv, int index) {
EUID_ASSERT();
if (index >= argc)
@@ -187,6 +193,7 @@ void join(pid_t pid, int argc, char **argv, int index) {
char *homedir = cfg.homedir;
extract_command(argc, argv, index);
signal (SIGTERM, signal_handler);
// if the pid is that of a firejail process, use the pid of the first child process
EUID_ROOT();

0 comments on commit 46dc2b3

Please sign in to comment.