Skip to content

Commit a354f92

Browse files
committed
fix: SIGSYS error on Linux build
Linux executable needs additional syscall. This behaviour changed since initial check. It could be caused either by updating dependencies or Go compiler.
1 parent 956e2f0 commit a354f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/sandbox_linux_amd64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func Sandbox() error {
2424
// similar to stdio pledge
2525
"clone3", "close", "epoll_create1", "epoll_ctl", "epoll_pwait",
2626
"exit_group", "fcntl", "fstat", "futex", "getpid", "getrandom",
27-
"getsockopt", "gettid", "mmap", "mprotect", "munmap", "nanosleep",
27+
"getsockopt", "gettid", "madvise", "mmap", "mprotect", "munmap", "nanosleep",
2828
"pipe2", "read", "rseq", "rt_sigprocmask", "rt_sigreturn",
2929
"sched_getaffinity", "sched_yield", "set_robust_list", "setsockopt",
3030
"sigaltstack", "tgkill", "uname", "write",

0 commit comments

Comments
 (0)