diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index c2ac4a3fa..1c2f021bb 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -107,7 +107,6 @@ char *fullargv[MAX_ARGS]; // expanded argv for restricted shell | |||
107 | int fullargc = 0; | 107 | int fullargc = 0; |
108 | static pid_t child = 0; | 108 | static pid_t child = 0; |
109 | pid_t sandbox_pid; | 109 | pid_t sandbox_pid; |
110 | static char *appimage_mntdir = NULL; | ||
111 | 110 | ||
112 | static void set_name_file(pid_t pid); | 111 | static void set_name_file(pid_t pid); |
113 | static void delete_name_file(pid_t pid); | 112 | static void delete_name_file(pid_t pid); |
@@ -130,16 +129,13 @@ static void myexit(int rv) { | |||
130 | // delete sandbox files in shared memory | 129 | // delete sandbox files in shared memory |
131 | EUID_ROOT(); | 130 | EUID_ROOT(); |
132 | clear_run_files(sandbox_pid); | 131 | clear_run_files(sandbox_pid); |
133 | if (appimage_mntdir) { | 132 | appimage_clear(); |
134 | umount2(appimage_mntdir, MNT_FORCE); | ||
135 | rmdir(appimage_mntdir); | ||
136 | free(appimage_mntdir); | ||
137 | } | ||
138 | 133 | ||
139 | exit(rv); | 134 | exit(rv); |
140 | } | 135 | } |
141 | 136 | ||
142 | static void my_handler(int s){ | 137 | static void my_handler(int s){ |
138 | printf("**************************\n"); | ||
143 | EUID_ROOT(); | 139 | EUID_ROOT(); |
144 | if (!arg_quiet) { | 140 | if (!arg_quiet) { |
145 | printf("\nParent received signal %d, shutting down the child process...\n", s); | 141 | printf("\nParent received signal %d, shutting down the child process...\n", s); |
@@ -1918,9 +1914,8 @@ int main(int argc, char **argv) { | |||
1918 | else if (arg_appimage) { | 1914 | else if (arg_appimage) { |
1919 | if (arg_debug) | 1915 | if (arg_debug) |
1920 | printf("Configuring appimage environment\n"); | 1916 | printf("Configuring appimage environment\n"); |
1921 | appimage_mntdir = appimage_set(cfg.command_name); | 1917 | appimage_set(cfg.command_name); |
1922 | cfg.window_title = "appimage"; | 1918 | cfg.window_title = "appimage"; |
1923 | //todo: set window title | ||
1924 | } | 1919 | } |
1925 | else { | 1920 | else { |
1926 | // calculate the length of the command | 1921 | // calculate the length of the command |