2 ms·
This is hard to do in the general case: the compilation steps often need system dependencies or to otherwise query system state to do the right thing, which mea
by woodruffw 4y ago
This is hard to do in the general case: the compilation steps often need system dependencies or to otherwise query system state to do the right thing, which means that the sandbox has to accurately reflect the host.
In terms of hooks, audit hooks and events[1] get us some of the way there. But they can be circumvented as well; I wouldn't rely on them for untrusted code.
[1]: https://docs.python.org/3/library/audit_events.html https://docs.python.org/3/library/audit_events.html