mirror of
https://github.com/bdnugget/kcgi.git
synced 2026-11-07 05:47:27 +00:00
Add newfstatat() syscall to seccomp filter allow list.
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 commit is contained in:
1 parent
12c1d9d7db
commit
9be0864fef
1 file changed
+3
@@ -173,6 +173,9 @@ static const struct sock_filter preauth_work[] = {
|
||||
SC_ALLOW(readv),
|
||||
SC_ALLOW(lseek), /* for kutil_openlog logging */
|
||||
SC_ALLOW(fstat), /* for kutil_openlog logging */
|
||||
#ifdef __NR_newfstatat
|
||||
SC_ALLOW(newfstatat), /* for kutil_openlog logging */
|
||||
#endif
|
||||
SC_ALLOW(write),
|
||||
SC_ALLOW(writev),
|
||||
SC_ALLOW(close),
|
||||
|
||||
Reference in new issue
Block a user