aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/sandbox.c
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2020-08-19 01:46:35 +0200
committerLibravatar GitHub <noreply@github.com>2020-08-19 01:46:35 +0200
commitef9fdc4a1f367ec4a0495ca51e3ed44338df0408 (patch)
tree2e3e93b374815c085f9f76ccbc8532bf20fb9b74 /src/firejail/sandbox.c
parentcat option (diff)
parentMerge pull request #3592 from onovy/signal-audio-video (diff)
downloadfirejail-ef9fdc4a1f367ec4a0495ca51e3ed44338df0408.tar.gz
firejail-ef9fdc4a1f367ec4a0495ca51e3ed44338df0408.tar.zst
firejail-ef9fdc4a1f367ec4a0495ca51e3ed44338df0408.zip
Merge branch 'master' into ls
Diffstat (limited to 'src/firejail/sandbox.c')
-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 df33319f6..81d535762 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -654,7 +654,8 @@ int sandbox(void* sandbox_arg) {
654 // ... and mount a tmpfs on top of /run/firejail/mnt directory 654 // ... and mount a tmpfs on top of /run/firejail/mnt directory
655 preproc_mount_mnt_dir(); 655 preproc_mount_mnt_dir();
656 // bind-mount firejail binaries and helper programs 656 // bind-mount firejail binaries and helper programs
657 if (mount(LIBDIR "/firejail", RUN_FIREJAIL_LIB_DIR, "none", MS_BIND, NULL) < 0) 657 if (mount(LIBDIR "/firejail", RUN_FIREJAIL_LIB_DIR, NULL, MS_BIND, NULL) < 0 ||
658 mount(NULL, RUN_FIREJAIL_LIB_DIR, NULL, MS_RDONLY|MS_NOSUID|MS_NODEV|MS_BIND|MS_REMOUNT, NULL) < 0)
658 errExit("mounting " RUN_FIREJAIL_LIB_DIR); 659 errExit("mounting " RUN_FIREJAIL_LIB_DIR);
659 660
660 //**************************** 661 //****************************