Home
last modified time | relevance | path

Searched refs:noroot (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/landlock/
H A Dcommon.h52 const unsigned int noroot = SECBIT_NOROOT | SECBIT_NOROOT_LOCKED; in _init_caps() local
54 if ((cap_get_secbits() & noroot) != noroot) in _init_caps()
55 EXPECT_EQ(0, cap_set_secbits(noroot)); in _init_caps()
/linux/tools/testing/selftests/exec/
H A Dcheck-exec.c43 const unsigned int noroot = SECBIT_NOROOT | SECBIT_NOROOT_LOCKED; in drop_privileges() local
46 if ((cap_get_secbits() & noroot) != noroot) in drop_privileges()
47 EXPECT_EQ(0, cap_set_secbits(noroot)); in drop_privileges()