summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README4
-rw-r--r--src/firejail/fs_whitelist.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/README b/README
index eae668874..cad3dbf43 100644
--- a/README
+++ b/README
@@ -18,8 +18,10 @@ License: GPL v2
18Firejail Authors: 18Firejail Authors:
19 19
20netblue30 (netblue30@yahoo.com) 20netblue30 (netblue30@yahoo.com)
21avoidr (https://github.com/avoidr)
22 - whitelist fix
21Bruno Nova (https://github.com/brunonova) 23Bruno Nova (https://github.com/brunonova)
22 -- whitelist fix 24 - whitelist fix
23 - bash arguments fix 25 - bash arguments fix
24Matt Parnell (https://github.com/ilikenwf) 26Matt Parnell (https://github.com/ilikenwf)
25 - whitelisting for core firefox related functionality 27 - whitelisting for core firefox related functionality
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c
index 740bdab3e..8b5444ebc 100644
--- a/src/firejail/fs_whitelist.c
+++ b/src/firejail/fs_whitelist.c
@@ -30,6 +30,8 @@
30static int mkpath(const char* path, mode_t mode) { 30static int mkpath(const char* path, mode_t mode) {
31 assert(path && *path); 31 assert(path && *path);
32 32
33 mode |= 0111;
34
33 // create directories with uid/gid as root or as current user if inside home directory 35 // create directories with uid/gid as root or as current user if inside home directory
34 uid_t uid = getuid(); 36 uid_t uid = getuid();
35 gid_t gid = getgid(); 37 gid_t gid = getgid();