Browse Source

allowed __NR_sigaltstack

Yury Bikuzin 10 months ago
parent
commit
3048255d2b
1 changed files with 6 additions and 0 deletions
  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),