shithub: sandbox

Download patch

ref: 6e0376d073909eff79fa7dfa6bd959ac94776b66
parent: e34ab21615de76e0b0f558956d6f08b0e91a3955
author: grobe0ba <[email protected]>
date: Sun Apr 23 13:57:34 EDT 2023

use /srv/clone

--- a/tcp17019.helper
+++ b/tcp17019.helper
@@ -9,4 +9,10 @@
 		exec /rc/bin/sandbox
 
 ramfs
-/bin/auth/box -ee'|'pMA -r/fd -r/dev -c/dev/null -c/tmp -c/mnt/term -r/rc/bin -r/$objtype/bin -r/sys/man -r/lib -c$home -r/proc -s /rc/bin/sandbox
+<[3]/srv/clone{
+	id=`{<[0=3]read}
+	<[3=0]{
+		bind -c /srv/$id /srv
+		/bin/auth/box -ee'|'pMA -r/fd -c/env -r/dev -c/dev/null -r/lib -c/mnt/term -c/mnt/temp -c/mnt/wsys -r/rc/bin -r/$objtype/bin -r/sys/man -c/tmp -c$home -r/proc -s /rc/bin/sandbox
+	}
+}