diff options
author | 2017-10-15 19:52:16 -0400 | |
---|---|---|
committer | 2017-10-15 19:52:16 -0400 | |
commit | 843e612821cab2d9cc8c3ea3b1989e17e7541f82 (patch) | |
tree | 9a521612a23240c1740953054324bdde5eed9fd6 /src/firejail/fs_etc.c | |
parent | Merge branch 'master' of https://github.com/netblue30/firejail (diff) | |
download | firejail-843e612821cab2d9cc8c3ea3b1989e17e7541f82.tar.gz firejail-843e612821cab2d9cc8c3ea3b1989e17e7541f82.tar.zst firejail-843e612821cab2d9cc8c3ea3b1989e17e7541f82.zip |
trace install time for private directories
Diffstat (limited to 'src/firejail/fs_etc.c')
-rw-r--r-- | src/firejail/fs_etc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/firejail/fs_etc.c b/src/firejail/fs_etc.c index 9502844b2..1fa1b83c3 100644 --- a/src/firejail/fs_etc.c +++ b/src/firejail/fs_etc.c | |||
@@ -140,6 +140,8 @@ void fs_private_dir_list(const char *private_dir, const char *private_run_dir, c | |||
140 | assert(private_run_dir); | 140 | assert(private_run_dir); |
141 | assert(private_list); | 141 | assert(private_list); |
142 | 142 | ||
143 | timetrace_start(); | ||
144 | |||
143 | // create /run/firejail/mnt/etc directory | 145 | // create /run/firejail/mnt/etc directory |
144 | mkdir_attr(private_run_dir, 0755, 0, 0); | 146 | mkdir_attr(private_run_dir, 0755, 0, 0); |
145 | fs_logger2("tmpfs", private_dir); | 147 | fs_logger2("tmpfs", private_dir); |
@@ -173,4 +175,7 @@ void fs_private_dir_list(const char *private_dir, const char *private_run_dir, c | |||
173 | if (mount(private_run_dir, private_dir, NULL, MS_BIND|MS_REC, NULL) < 0) | 175 | if (mount(private_run_dir, private_dir, NULL, MS_BIND|MS_REC, NULL) < 0) |
174 | errExit("mount bind"); | 176 | errExit("mount bind"); |
175 | fs_logger2("mount", private_dir); | 177 | fs_logger2("mount", private_dir); |
178 | |||
179 | if (!arg_quiet) | ||
180 | fprintf(stderr, "Private %s installed in %0.2f ms\n", private_dir, timetrace_end()); | ||
176 | } | 181 | } |