SYS_SECCOMP
Florian Weimer
fweimer@redhat.com
Mon Apr 7 15:13:10 GMT 2025
> yeah, i mean what you get in si_code to tell you that the SIGSYS was
> from seccomp.
>
> bionic gets them for free from the uapi <asm-generic/siginfo.h>:
>
> /*
> * SIGSYS si_codes
> */
> #define SYS_SECCOMP 1 /* seccomp triggered */
> #define SYS_USER_DISPATCH 2 /* syscall user dispatch triggered */
> #define NSIGSYS 2
>
> musl seems to have copy & pasted them into <signal.h>.
Ahh, I was confused. So these look like system call constants from
<sys/syscall.h>, but actually arent. At least there does not seem to be
a conflict because the system call constant is called SYS_seccomp.
We should add the missign SYS_* constants to our <signal.h>.
Thanks,
Florian
More information about the Libc-alpha
mailing list