summaryrefslogtreecommitdiffstats
path: root/src/firejail/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/fs.c')
-rw-r--r--src/firejail/fs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c
index cad101bf9..b0add91e2 100644
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -959,4 +959,11 @@ void fs_chroot(const char *rootdir) {
959} 959}
960#endif 960#endif
961 961
962void fs_private_tmp(void) {
963 // mount tmpfs on top of /run/firejail/mnt
964 if (arg_debug)
965 printf("Mounting tmpfs on /tmp directory\n");
966 if (mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_STRICTATIME | MS_REC, "mode=777,gid=0") < 0)
967 errExit("mounting /tmp/firejail/mnt");
968}
962 969