diff options
Diffstat (limited to 'src/firejail/fs.c')
-rw-r--r-- | src/firejail/fs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index df5e8410b..6505177d0 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -127,6 +127,17 @@ void fs_build_firejail_dir(void) { | |||
127 | errExit("chmod"); | 127 | errExit("chmod"); |
128 | } | 128 | } |
129 | 129 | ||
130 | if (stat(RUN_FIREJAIL_X11_DIR, &s)) { | ||
131 | if (arg_debug) | ||
132 | printf("Creating %s directory\n", RUN_FIREJAIL_X11_DIR); | ||
133 | if (mkdir(RUN_FIREJAIL_X11_DIR, 0755) == -1) | ||
134 | errExit("mkdir"); | ||
135 | if (chown(RUN_FIREJAIL_X11_DIR, 0, 0) < 0) | ||
136 | errExit("chown"); | ||
137 | if (chmod(RUN_FIREJAIL_X11_DIR, 0755) < 0) | ||
138 | errExit("chmod"); | ||
139 | } | ||
140 | |||
130 | create_empty_dir(); | 141 | create_empty_dir(); |
131 | create_empty_file(); | 142 | create_empty_file(); |
132 | } | 143 | } |