-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
This can be observed (seems like at least on master and all sandboxed releases from 1.1.0 above) by:
- Compiling a simple executable, like
main(){}
- Adding sth like this:
--- a/src/sio2jail.cc
+++ b/src/sio2jail.cc
@@ -2,10 +2,14 @@
#include "s2japp/Application.h"
#include <iostream>
+#include <sys/wait.h>
int main(int argc, const char* argv[]) {
try {
- return s2j::app::Application(argc, argv).main();
+ int ret = s2j::app::Application(argc, argv).main();
+ while (wait(NULL)>0)
+ std::cerr << "bruh";
+ return ret;
}
catch (const std::exception& ex) {
std::cerr << "Exception occurred: " << ex.what() << std::endl;
- Building and running sio2jail with arbitrary (?) args, for example
--mount-namespace off ~/a
; adding-t 1
gives the same result - Witnessing the bruh
Alternatively, one can add sleep(100) before the while and check htop or sth of this nature.
One way to fix this is executing the while
from above silently, though that may be more of a workaround than an actual solution.
Metadata
Metadata
Assignees
Labels
No labels