diff options
author | 2016-08-12 20:29:22 -0400 | |
---|---|---|
committer | 2016-08-12 20:29:22 -0400 | |
commit | 5b52a6ec651bc01378ea692e008115fef3e69b7d (patch) | |
tree | 0901e336c0f9aea613561915ca6d6504afd494a8 /src | |
parent | fix make dist/make deb (diff) | |
download | firejail-5b52a6ec651bc01378ea692e008115fef3e69b7d.tar.gz firejail-5b52a6ec651bc01378ea692e008115fef3e69b7d.tar.zst firejail-5b52a6ec651bc01378ea692e008115fef3e69b7d.zip |
removed /bin/bash check for chroot
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index 86126672e..bf78a2e3b 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -1111,13 +1111,13 @@ int fs_check_chroot_dir(const char *rootdir) { | |||
1111 | free(name); | 1111 | free(name); |
1112 | 1112 | ||
1113 | // check /bin/bash | 1113 | // check /bin/bash |
1114 | if (asprintf(&name, "%s/bin/bash", rootdir) == -1) | 1114 | // if (asprintf(&name, "%s/bin/bash", rootdir) == -1) |
1115 | errExit("asprintf"); | 1115 | // errExit("asprintf"); |
1116 | if (stat(name, &s) == -1) { | 1116 | // if (stat(name, &s) == -1) { |
1117 | fprintf(stderr, "Error: cannot find /bin/bash in chroot directory\n"); | 1117 | // fprintf(stderr, "Error: cannot find /bin/bash in chroot directory\n"); |
1118 | return 1; | 1118 | // return 1; |
1119 | } | 1119 | // } |
1120 | free(name); | 1120 | // free(name); |
1121 | 1121 | ||
1122 | // check x11 socket directory | 1122 | // check x11 socket directory |
1123 | if (getenv("FIREJAIL_X11")) { | 1123 | if (getenv("FIREJAIL_X11")) { |