aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/fs.c')
-rw-r--r--src/firejail/fs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c
index 803b081c9..7a4ef5f8d 100644
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -18,6 +18,7 @@
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*/ 19*/
20#include "firejail.h" 20#include "firejail.h"
21#include "../include/gcov_wrapper.h"
21#include <sys/mount.h> 22#include <sys/mount.h>
22#include <sys/stat.h> 23#include <sys/stat.h>
23#include <sys/statvfs.h> 24#include <sys/statvfs.h>
@@ -33,10 +34,6 @@
33#define O_PATH 010000000 34#define O_PATH 010000000
34#endif 35#endif
35 36
36#ifdef HAVE_GCOV
37#include "../include/gcov_wrapper.h"
38#endif
39
40#define MAX_BUF 4096 37#define MAX_BUF 4096
41#define EMPTY_STRING ("") 38#define EMPTY_STRING ("")
42// check noblacklist statements not matched by a proper blacklist in disable-*.inc files 39// check noblacklist statements not matched by a proper blacklist in disable-*.inc files
@@ -1206,9 +1203,8 @@ void fs_overlayfs(void) {
1206 fs_logger("whitelist /tmp"); 1203 fs_logger("whitelist /tmp");
1207 1204
1208 // chroot in the new filesystem 1205 // chroot in the new filesystem
1209#ifdef HAVE_GCOV
1210 __gcov_flush(); 1206 __gcov_flush();
1211#endif 1207
1212 if (chroot(oroot) == -1) 1208 if (chroot(oroot) == -1)
1213 errExit("chroot"); 1209 errExit("chroot");
1214 1210