diff options
Diffstat (limited to 'src/firejail/fs_bin.c')
-rw-r--r-- | src/firejail/fs_bin.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/firejail/fs_bin.c b/src/firejail/fs_bin.c index c906e32c0..6cc1bf3ab 100644 --- a/src/firejail/fs_bin.c +++ b/src/firejail/fs_bin.c | |||
@@ -212,11 +212,7 @@ void fs_private_bin_list(void) { | |||
212 | assert(private_list); | 212 | assert(private_list); |
213 | 213 | ||
214 | // create /run/firejail/mnt/bin directory | 214 | // create /run/firejail/mnt/bin directory |
215 | if (mkdir(RUN_BIN_DIR, 0755) == -1) | 215 | mkdir_attr(RUN_BIN_DIR, 0755, 0, 0); |
216 | errExit("mkdir"); | ||
217 | if (chmod(RUN_BIN_DIR, 0755) == -1) | ||
218 | errExit("chmod"); | ||
219 | ASSERT_PERMS(RUN_BIN_DIR, 0, 0, 0755); | ||
220 | 216 | ||
221 | // copy the list of files in the new etc directory | 217 | // copy the list of files in the new etc directory |
222 | // using a new child process without root privileges | 218 | // using a new child process without root privileges |