瀏覽代碼

allowed __NR_sigaltstack

Yury Bikuzin 10 月之前
父節點
當前提交
3048255d2b
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      util/Seccomp_linux.c

+ 6 - 0
util/Seccomp_linux.c

@@ -374,6 +374,12 @@ static Er_DEFUN(struct sock_fprog* mkFilter(struct Allocator* alloc))
         IFEQ(__NR_fcntl64, success),
         #endif
 
+        // 2024-01-09 by Caleb's advice
+        // it is used by Seccomp_test
+        #ifdef __NR_sigaltstack
+        IFEQ(__NR_sigaltstack, success),
+        #endif
+
         RET(SECCOMP_RET_TRAP),
 
         LABEL(ioctl_setip),