basic/missing_syscall: add missing_fchmodat2()
authorArseny Maslennikov <arseny@altlinux.org>
Fri, 20 Oct 2023 11:22:50 +0000 (14:22 +0300)
committerMike Yuan <me@yhndnzj.com>
Wed, 1 Nov 2023 16:23:12 +0000 (00:23 +0800)
commitc21566d90b691e966f6dce9161031198d4888ad3
tree671ff41b66a71a618b0b03b1658392252795de8e
parent2b5b25f123ceb89b3ff45b2380db1c8a88b046d9
basic/missing_syscall: add missing_fchmodat2()

Follow-up for 8b45281daa3a87b4b7a3248263cd0ba929d15596
and preparation for later commits.

Since libcs are more interested in the POSIX `fchmodat(3)`, they are
unlikely to provide a direct wrapper for this syscall. Thus, the headers
we examine to set `HAVE_*` are picked somewhat arbitrarily.

Also, hook up `try_fchmodat2()` in `test-seccomp.c`. (Also, correct that
function's prototype, despite the fact that mistake would not matter in
practice)

Co-authored-by: Mike Yuan <me@yhndnzj.com>
meson.build
src/basic/missing_syscall.h
src/test/test-seccomp.c