ref: e34ab21615de76e0b0f558956d6f08b0e91a3955
author: grobe0ba <[email protected]>
date: Mon Aug 1 16:15:15 EDT 2022
initial commit
--- /dev/null
+++ b/sandbox
@@ -1,0 +1,6 @@
+#!/bin/rc
+
+netdir=$1
+remote=$2
+
+. <{n=`{read} && ! ~ $#n 0 && read -c $n} >[2=1]
--- /dev/null
+++ b/tcp17019
@@ -1,0 +1,8 @@
+#!/bin/rc
+
+if(~ $#* 3){
+ netdir=$3
+ remote=$2!`{cat $3/remote}
+}
+
+exec tlssrv -a /rc/bin/tcp17019.helper $netdir $remote
--- /dev/null
+++ b/tcp17019.helper
@@ -1,0 +1,12 @@
+#!/bin/rc
+
+netdir=$1
+remote=$2
+
+trusted=(glenda)
+for (i in $trusted)
+ if(~ $user $i)
+ 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