aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/sandbox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index 995e98f9f..da942207e 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -623,7 +623,8 @@ int sandbox(void* sandbox_arg) {
623 // ... and mount a tmpfs on top of /run/firejail/mnt directory 623 // ... and mount a tmpfs on top of /run/firejail/mnt directory
624 preproc_mount_mnt_dir(); 624 preproc_mount_mnt_dir();
625 // bind-mount firejail binaries and helper programs 625 // bind-mount firejail binaries and helper programs
626 if (mount(LIBDIR "/firejail", RUN_FIREJAIL_LIB_DIR, "none", MS_BIND, NULL) < 0) 626 if (mount(LIBDIR "/firejail", RUN_FIREJAIL_LIB_DIR, NULL, MS_BIND, NULL) < 0 ||
627 mount(NULL, RUN_FIREJAIL_LIB_DIR, NULL, MS_RDONLY|MS_NOSUID|MS_NODEV|MS_BIND|MS_REMOUNT, NULL) < 0)
627 errExit("mounting " RUN_FIREJAIL_LIB_DIR); 628 errExit("mounting " RUN_FIREJAIL_LIB_DIR);
628 629
629 //**************************** 630 //****************************