From 3ba8cd9835dfd980fa9d3d8c21f299afeb3d39a7 Mon Sep 17 00:00:00 2001 From: sarila Date: Tue, 9 Dec 2025 11:46:30 +0800 Subject: [PATCH] Update FAQ.md --- FAQ.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FAQ.md b/FAQ.md index 21c9ae18..1974ef3b 100644 --- a/FAQ.md +++ b/FAQ.md @@ -68,7 +68,7 @@ Following syscalls are required: 0,1,3,5,8,9,10,11,12,13,14,15,16,17,24,28,35,39 ``` If you haven't got output like this format, maybe it's your permission problem, try run it with `sudo` again. -Incase you get an output saying **Failed to get the needed syscalls**, here is another way you may try: +In case you get an output saying **Failed to get the needed syscalls**, here is another way you may try: ```shell # install the `strace` command by yourself strace -c python cmd/test/syscall_dig/test.py @@ -94,7 +94,7 @@ Edit the following `ALLOW_SYSCALLS` variable, Add all the above system calls to var ALLOW_SYSCALLS = ${ALLOW_SYSCALLS_LIST} ``` -3. These syscalls is the sandbox already added: `0,1,3,8,9,10,11,12,13,14,15,16,16,24,25,35,39,60,96,102,105,106,110,131,186,201,202,217,228,230,231,233,234,257,262,270,273,291,318,334`. You need to compare what is the extras syscall numbers of previous step. You can use a simple script or ask LLM to archive that. In this case, it's `5, 17, 28, 63, 204, 237, 281, 435` +3. These syscalls are the sandbox already added: `0,1,3,8,9,10,11,12,13,14,15,16,16,24,25,35,39,60,96,102,105,106,110,131,186,201,202,217,228,230,231,233,234,257,262,270,273,291,318,334`. You need to compare what is the extras syscall numbers of previous step. You can use a simple script or ask LLM to archive that. In this case, it's `5, 17, 28, 63, 204, 237, 281, 435` 4. add the correct syscall alias in [/internal/static/python_syscall/syscalls_amd64.go](./internal/static/python_syscall/syscalls_amd64.go), you can find it in the golang lib, like`/usr/lib/go-1.18/src/syscall/zsysnum_linux_amd64.go` ```golang @@ -110,6 +110,6 @@ var ALLOW_SYSCALLS = []int{ syscall.SYS_SCHED_GETAFFINITY, syscall.SYS_MBIND, syscall.SYS_EPOLL_PWAIT, 435, } ``` -If the syscall alias not defined in golang, you can directly use the number instead. +If the syscall alias is not defined in golang, you can directly use the number instead. 5. Build and Run the whole project again.