kristapsdz / kcgi

minimal CGI and FastCGI library for C/C++
https://kristaps.bsd.lv/kcgi
ISC License
275 stars 40 forks source link

Add newfstatat() syscall to seccomp filter allow list. #95

Closed szanni closed 3 years ago

szanni commented 3 years ago

Seemingly newer versions of glibc call newfstatat(), wrapping fstatat() and breaking kutil_openlog().

According to man 2 newfstatat[0] the employed system call might be called fstatat64() on some systems, meaning this patch might not fix all Linux systems.

[0] https://man.archlinux.org/man/newfstatat.2.en

This fixes #92 on my system.