diff options
Diffstat (limited to 'src/firejail/sandbox.c')
-rw-r--r-- | src/firejail/sandbox.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index 9cb97187e..fc93e1eef 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c | |||
@@ -171,31 +171,6 @@ static void monitor_application(pid_t app_pid) { | |||
171 | printf("Sandbox monitor: monitoring %u\n", app_pid); | 171 | printf("Sandbox monitor: monitoring %u\n", app_pid); |
172 | } | 172 | } |
173 | 173 | ||
174 | #if 0 | ||
175 | // todo: find a way to shut down interfaces before closing the namespace | ||
176 | // the problem is we don't have enough privileges to shutdown interfaces in this moment | ||
177 | // shut down bridge/macvlan interfaces | ||
178 | if (any_bridge_configured()) { | ||
179 | |||
180 | if (cfg.bridge0.configured) { | ||
181 | printf("Shutting down %s\n", cfg.bridge0.devsandbox); | ||
182 | net_if_down( cfg.bridge0.devsandbox); | ||
183 | } | ||
184 | if (cfg.bridge1.configured) { | ||
185 | printf("Shutting down %s\n", cfg.bridge1.devsandbox); | ||
186 | net_if_down( cfg.bridge1.devsandbox); | ||
187 | } | ||
188 | if (cfg.bridge2.configured) { | ||
189 | printf("Shutting down %s\n", cfg.bridge2.devsandbox); | ||
190 | net_if_down( cfg.bridge2.devsandbox); | ||
191 | } | ||
192 | if (cfg.bridge3.configured) { | ||
193 | printf("Shutting down %s\n", cfg.bridge3.devsandbox); | ||
194 | net_if_down( cfg.bridge3.devsandbox); | ||
195 | } | ||
196 | usleep(20000); // 20 ms sleep | ||
197 | } | ||
198 | #endif | ||
199 | } | 174 | } |
200 | 175 | ||
201 | 176 | ||
@@ -672,6 +647,7 @@ int sandbox(void* sandbox_arg) { | |||
672 | } | 647 | } |
673 | 648 | ||
674 | monitor_application(app_pid); // monitor application | 649 | monitor_application(app_pid); // monitor application |
650 | flush_stdin(); | ||
675 | 651 | ||
676 | return 0; | 652 | return 0; |
677 | } | 653 | } |