From 7ca96a7bce2a46c21dfce54c42b3bdc2076ffa26 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Wed, 29 Jul 2026 15:07:47 +0800 Subject: Add chroot info to readme. --- README.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.txt b/README.txt index 8cfad0a..14d1eb8 100644 --- a/README.txt +++ b/README.txt @@ -1,2 +1,22 @@ +RUN: + Run with no logs: GGML_LOG_LEVEL=0 ./lex Run with error logs: GGML_LOG_LEVEL=error ./lex + +CHROOT: + +# Create the jail root +mkdir -p /var/empty/dict_jail/dev + +# Copy or move your model file into the jail +cp Qwen2.5-7B-Instruct-Q4_K_M.gguf /var/empty/dict_jail/ + +# Create necessary device nodes inside the jail +mknod -m 666 /var/empty/dict_jail/dev/null c 2 2 +mknod -m 666 /var/empty/dict_jail/dev/zero c 2 12 + +# Fix permissions so 'nobody' can read the model file +chown -R root:wheel /var/empty/dict_jail +chmod 755 /var/empty/dict_jail +chmod 644 /var/empty/dict_jail/Qwen2.5-7B-Instruct-Q4_K_M.gguf + -- cgit v1.2.3