Static: support for openat2() features.

Support for chrooting, rejecting symlinks, and rejecting crossing mounting
points on a per-request basis during static file serving.
This commit is contained in:
Zhidao HONG
2021-04-29 22:04:34 +08:00
parent 113afb09ea
commit 53279af5d4
10 changed files with 313 additions and 27 deletions

View File

@@ -242,6 +242,10 @@
#include <sys/mount.h>
#endif
#if (NXT_HAVE_OPENAT2)
#include <linux/openat2.h>
#endif
#if (NXT_TEST_BUILD)
#include <nxt_test_build.h>
#endif