SYS_SECCOMP
enh
enh@google.com
Mon Apr 7 15:07: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>.
On Mon, Apr 7, 2025 at 10:57 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> > seems like SYS_SECCOMP is missing even from current glibc? bionic and
> > musl both have it, but it seems like with glibc you can't even
> > #include <linux/signal.h> as a workaround because that's incompatible
> > with <signal.h>? (this was with `ldd (Debian GLIBC 2.40-6+gl0) 2.40`.)
>
> Wbat exactly do you mean by SYS_SECCOMP? I think the signal is called
> SIGSYS or SIGUNUSED.
>
> Thanks,
> Florian
>
More information about the Libc-alpha
mailing list