self-link: go/nsjail-wrapper
This is a minimal wrapper around nsjail for the purposes of task isolation as part of the verified builds project. It is intended to be deployed in the same directory as nsjail
with setuid
root. This binary is narrowly defined to exclusively work within the context of bbagent
running in a swarming task.
This will be implemented such that the launched process will always have less permissions than the calling process.
The wrapper will fulfill a few functions
nsjail
This will include things like:
Currently, the uid will be that of the calling user.
luciexe
contractThis includes things like:
stdin
is undisturbedSIGTERM
$LUCI_CONTEXT
is available