From 4dce7616909c4e3b6a44901c14ac87a0d5655fef Mon Sep 17 00:00:00 2001 From: smitsohu Date: Wed, 3 Mar 2021 22:22:54 +0100 Subject: sandbox setup: postpone fslogger postpone writing of log file in order to catch filesystem modifications from x11 functions --- src/firejail/sandbox.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index 9a4be5cc0..725449ca1 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c @@ -1025,12 +1025,6 @@ int sandbox(void* sandbox_arg) { //**************************** fs_resolvconf(); - //**************************** - // fs post-processing - //**************************** - fs_logger_print(); - fs_logger_change_owner(); - //**************************** // start dhcp client //**************************** @@ -1079,6 +1073,12 @@ int sandbox(void* sandbox_arg) { // save original umask save_umask(); + //**************************** + // fs post-processing + //**************************** + fs_logger_print(); + fs_logger_change_owner(); + //**************************** // set security filters //**************************** -- cgit v1.2.3-70-g09d2