aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/fs_whitelist.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c
index ad7fea227..849861805 100644
--- a/src/firejail/fs_whitelist.c
+++ b/src/firejail/fs_whitelist.c
@@ -550,29 +550,6 @@ void fs_whitelist(void) {
550 if (mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_STRICTATIME | MS_REC, "mode=1777,gid=0") < 0) 550 if (mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_STRICTATIME | MS_REC, "mode=1777,gid=0") < 0)
551 errExit("mounting tmpfs on /tmp"); 551 errExit("mounting tmpfs on /tmp");
552 fs_logger("tmpfs /tmp"); 552 fs_logger("tmpfs /tmp");
553
554 // mount appimage directory if necessary
555 if (arg_appimage) {
556 const char *dir = appimage_getdir();
557 assert(dir);
558 char *wdir;
559 if (asprintf(&wdir, "%s/%s", RUN_WHITELIST_TMP_DIR, dir + 4) == -1)
560 errExit("asprintf");
561
562 // create directory
563 if (mkdir(dir, 0755) < 0)
564 errExit("mkdir");
565 if (chown(dir, getuid(), getgid()) < 0)
566 errExit("chown");
567 if (chmod(dir, 0755) < 0)
568 errExit("chmod");
569
570 // mount
571 if (mount(wdir, dir, NULL, MS_BIND|MS_REC, NULL) < 0)
572 errExit("mount bind");
573 fs_logger2("whitelist", dir);
574 free(wdir);
575 }
576 } 553 }
577 554
578 // /media mountpoint 555 // /media mountpoint