From f03a0574d0cd6b6625da768f629649468dc3d6ab Mon Sep 17 00:00:00 2001 From: smitsohu Date: Mon, 15 Mar 2021 15:53:48 +0100 Subject: finding a place for appimage mount adds support to run appimage in a chroot --- src/firejail/sandbox.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index 60c097cf2..743d84b43 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c @@ -630,8 +630,6 @@ int sandbox(void* sandbox_arg) { errExit("mounting " RUN_FIREJAIL_LIB_DIR); // keep a copy of dhclient executable before the filesystem is modified dhcp_store_exec(); - // mount appimage before the filesystem is modified - appimage_mount(); //**************************** // log sandbox data @@ -826,6 +824,11 @@ int sandbox(void* sandbox_arg) { #endif fs_basic_fs(); + //**************************** + // appimage + //**************************** + appimage_mount(); + //**************************** // private mode //**************************** @@ -1155,14 +1158,12 @@ int sandbox(void* sandbox_arg) { //**************************** // continue security filters //**************************** - // set capabilities set_caps(); //**************************************** // relay status information to join option //**************************************** - char *set_sandbox_status = create_join_file(); //**************************************** @@ -1223,7 +1224,6 @@ int sandbox(void* sandbox_arg) { //**************************************** // set cpu affinity //**************************************** - if (cfg.cpus) set_cpu_affinity(); -- cgit v1.2.3-54-g00ecf