4 ms·
For what it's worth, Linux 5.6 introduced openat2 [1] which accepts some additional flags controlling path resolution. For example, RESOLVE_IN_ROOT "is as thou
by pmahoney 5y ago
For what it's worth, Linux 5.6 introduced openat2 [1] which accepts some additional flags controlling path resolution.
For example, RESOLVE_IN_ROOT "is as though the calling process had used chroot(2) to (temporarily) modify its root directory (to the directory referred to by dirfd)".
[1] https://man7.org/linux/man-pages/man2/openat2.2.html https://man7.org/linux/man-pages/man2/openat2.2.html