Add small unprivileged chroot

This commit is contained in:
MaxHearnden 2023-11-26 18:53:18 +00:00
parent ca2ba18b60
commit a135fc1eca
2 changed files with 126 additions and 0 deletions

10
sysa/after_wrap.kaem Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
PATH=./${ARCH_DIR}/bin
./${ARCH_DIR}/bin/M2-Mesoplanet --architecture ${ARCH} \
-f sysa/wrap.c \
-o ./${ARCH_DIR}/bin/wrap \
--temp-directory ./x86/artifact
exec ./${ARCH_DIR}/bin/wrap ./${ARCH_DIR}/bin/kaem --verbose --strict --file sysa/after.kaem