test_vfsuid...ntns_nonzero(9)
β¨ test_vfsuid...ntns_nonzero(9) β¨
okay bestie, welcome to the Kernel API Manual π
β yes, the title up top is literally abbreviated as test_vfsuid...ntns_nonzero(9) because kernel devs love a dramatic ellipsis, but the actual function we're gossiping about is the full thing. let's get into it π«Ά
πΈ NAME πΈ
test_vfsuid_root_in_currentns_nonzero β the icon herself. she's a test that checks vfsuid_root_in_currentns when the UID is non-zero. slay. π₯
π SYNOPSIS π
void test_vfsuid_root_in_currentns_nonzero (struct kunit *test );
that's it. that's the whole vibe. β¨
π¦ ARGUMENTS π¦
testβ the KUnit test context. she's the main character carrying all the state, no cap. π
π DESCRIPTION π
okay so here's the tea β β this test verifies that a non-zero UID correctly returns false. that's the whole job. non-zero UID walks in, function says "nope, not root," returns false, everyone claps. literally that simple, and honestly? iconic. π
like nothing more, nothing less β it's a lil vibe check for that exact behaviour and it ate. π
π SEE ALSO π
- Kernel file
./security/commoncap_test.cβ go read the source, iykyk π test_vfsuid_root_in_currentns_init_ns(9)test_vfsuid_root_in_currentns_invalid(9)test_kuid_root_in_ns_init_ns_uid0(9)test_kuid_root_in_ns_init_ns_nonzero(9)create_test_user_ns_with_mapping(9)test_kuid_root_in_ns_with_mapping(9)test_kuid_root_in_ns_with_different_mappings(9)
the whole friend group fr fr π«Ά go say hi to all of them.
π friendly reminder: this is a KUnit test, so all the details above are load-bearing β don't go "fixing" the function name or the argument type. respect the struct kunit *test or perish. π
and that's the page, bestie!! π§ this lil number lives under ./security and the date on it is October 2026, so mark your calendar and stan responsibly. mwah ππβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms