Home
last modified time | relevance | path

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

/Linux-v6.1/tools/testing/selftests/landlock/
Dcommon.h107 cap_t cap_p; in _init_caps() local
116 cap_p = cap_get_proc(); in _init_caps()
117 EXPECT_NE(NULL, cap_p) in _init_caps()
121 EXPECT_NE(-1, cap_clear(cap_p)) in _init_caps()
126 EXPECT_NE(-1, cap_set_flag(cap_p, CAP_PERMITTED, in _init_caps()
132 EXPECT_NE(-1, cap_set_proc(cap_p)) in _init_caps()
136 EXPECT_NE(-1, cap_free(cap_p)) in _init_caps()
158 cap_t cap_p; in _effective_cap() local
160 cap_p = cap_get_proc(); in _effective_cap()
161 EXPECT_NE(NULL, cap_p) in _effective_cap()
[all …]