Isolation: allowed the use of credentials with unpriv userns.
The setuid/setgid syscalls requires root capabilities but if the kernel supports unprivileged user namespace then the child process has the full set of capabilities in the new namespace, then we can allow setting "user" and "group" in such cases (this is a common security use case). Tests were added to ensure user gets meaningful error messages for uid/gid mapping misconfigurations.
This commit is contained in:
@@ -64,6 +64,7 @@ nxt_int_t nxt_malloc_test(nxt_thread_t *thr);
|
||||
nxt_int_t nxt_utf8_test(nxt_thread_t *thr);
|
||||
nxt_int_t nxt_http_parse_test(nxt_thread_t *thr);
|
||||
nxt_int_t nxt_strverscmp_test(nxt_thread_t *thr);
|
||||
nxt_int_t nxt_clone_creds_test(nxt_thread_t *thr);
|
||||
|
||||
|
||||
#endif /* _NXT_TESTS_H_INCLUDED_ */
|
||||
|
||||
Reference in New Issue
Block a user