Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# sandbox container
box = osbox.OS(parse_root(opts.root))
if opts.no_sandbox:
tracer.trace(interpose, args, tracer.dump_syscall)
else:
tracer.trace(interpose, args, box.run)
box.done()
# interactively committing back to host
if opts.interact:
chore.interactive(box)
# check post condition when unit testing
if opts.test:
dbg.info("[!] checking %s" % args[0])
if not chore.check_post(args[0], box.root):
exit(1)