diff options
author | netblue30 <netblue30@yahoo.com> | 2016-03-10 06:57:37 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-03-10 06:57:37 -0500 |
commit | 72fc55802327d678f96b7b94e989040aa5ec020b (patch) | |
tree | 3eb42a7540cf92ca5b514923a987234700497c7b | |
parent | fix overlayfs problem (diff) | |
download | firejail-72fc55802327d678f96b7b94e989040aa5ec020b.tar.gz firejail-72fc55802327d678f96b7b94e989040aa5ec020b.tar.zst firejail-72fc55802327d678f96b7b94e989040aa5ec020b.zip |
overlay fix
-rw-r--r-- | src/firejail/fs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index 920f6d87d..61f9175db 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -873,6 +873,7 @@ void fs_overlayfs(void) { | |||
873 | errExit("asprintf"); | 873 | errExit("asprintf"); |
874 | if (mount("/dev", dev, NULL, MS_BIND|MS_REC, NULL) < 0) | 874 | if (mount("/dev", dev, NULL, MS_BIND|MS_REC, NULL) < 0) |
875 | errExit("mounting /dev"); | 875 | errExit("mounting /dev"); |
876 | fs_logger("whitelist /dev"); | ||
876 | 877 | ||
877 | // mount-bind run directory | 878 | // mount-bind run directory |
878 | if (arg_debug) | 879 | if (arg_debug) |
@@ -881,7 +882,8 @@ void fs_overlayfs(void) { | |||
881 | if (asprintf(&run, "%s/run", oroot) == -1) | 882 | if (asprintf(&run, "%s/run", oroot) == -1) |
882 | errExit("asprintf"); | 883 | errExit("asprintf"); |
883 | if (mount("/run", run, NULL, MS_BIND|MS_REC, NULL) < 0) | 884 | if (mount("/run", run, NULL, MS_BIND|MS_REC, NULL) < 0) |
884 | errExit("mounting /dev"); | 885 | errExit("mounting /run"); |
886 | fs_logger("whitelist /run"); | ||
885 | 887 | ||
886 | // chroot in the new filesystem | 888 | // chroot in the new filesystem |
887 | if (chroot(oroot) == -1) | 889 | if (chroot(oroot) == -1) |