diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/preproc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/firejail/preproc.c b/src/firejail/preproc.c index da50e9a82..0517f3506 100644 --- a/src/firejail/preproc.c +++ b/src/firejail/preproc.c | |||
@@ -85,7 +85,10 @@ void preproc_build_firejail_dir(void) { | |||
85 | } | 85 | } |
86 | 86 | ||
87 | create_empty_file_as_root(RUN_RO_FILE, S_IRUSR); | 87 | create_empty_file_as_root(RUN_RO_FILE, S_IRUSR); |
88 | fs_remount(RUN_RO_FILE, MOUNT_READONLY, 0); | ||
89 | |||
88 | create_empty_dir_as_root(RUN_RO_DIR, S_IRUSR); | 90 | create_empty_dir_as_root(RUN_RO_DIR, S_IRUSR); |
91 | fs_remount(RUN_RO_DIR, MOUNT_READONLY, 0); | ||
89 | } | 92 | } |
90 | 93 | ||
91 | // build /run/firejail/mnt directory | 94 | // build /run/firejail/mnt directory |