diff options
Diffstat (limited to 'src/firejail/fs_home.c')
-rw-r--r-- | src/firejail/fs_home.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/firejail/fs_home.c b/src/firejail/fs_home.c index 98d62b685..714417867 100644 --- a/src/firejail/fs_home.c +++ b/src/firejail/fs_home.c | |||
@@ -159,7 +159,6 @@ static void copy_xauthority(void) { | |||
159 | // private mode (--private=homedir): | 159 | // private mode (--private=homedir): |
160 | // mount homedir on top of /home/user, | 160 | // mount homedir on top of /home/user, |
161 | // tmpfs on top of /root in nonroot mode, | 161 | // tmpfs on top of /root in nonroot mode, |
162 | // tmpfs on top of /tmp in root mode, | ||
163 | // set skel files, | 162 | // set skel files, |
164 | // restore .Xauthority | 163 | // restore .Xauthority |
165 | void fs_private_homedir(void) { | 164 | void fs_private_homedir(void) { |
@@ -214,7 +213,6 @@ void fs_private_homedir(void) { | |||
214 | // private mode (--private): | 213 | // private mode (--private): |
215 | // mount tmpfs over /home/user, | 214 | // mount tmpfs over /home/user, |
216 | // tmpfs on top of /root in nonroot mode, | 215 | // tmpfs on top of /root in nonroot mode, |
217 | // tmpfs on top of /tmp in root mode | ||
218 | // set skel files, | 216 | // set skel files, |
219 | // restore .Xauthority | 217 | // restore .Xauthority |
220 | void fs_private(void) { | 218 | void fs_private(void) { |
@@ -353,20 +351,6 @@ void fs_check_private_dir(void) { | |||
353 | } | 351 | } |
354 | } | 352 | } |
355 | 353 | ||
356 | #if 0 | ||
357 | static int mkpath(char* file_path, mode_t mode) { | ||
358 | assert(file_path && *file_path); | ||
359 | char* p; | ||
360 | for (p=strchr(file_path+1, '/'); p; p=strchr(p+1, '/')) { | ||
361 | *p='\0'; | ||
362 | if (mkdir(file_path, mode)==-1) { | ||
363 | if (errno!=EEXIST) { *p='/'; return -1; } | ||
364 | } | ||
365 | *p='/'; | ||
366 | } | ||
367 | return 0; | ||
368 | } | ||
369 | #endif | ||
370 | 354 | ||
371 | static void duplicate(char *name) { | 355 | static void duplicate(char *name) { |
372 | char *cmd; | 356 | char *cmd; |