Lines Matching refs:CAP_NET_ADMIN
212 /* test harness should run with CAP_NET_ADMIN, but let's make sure */
215 ret = cap_get_flag(self->caps, CAP_NET_ADMIN, CAP_EFFECTIVE, &tmp);
217 TH_LOG("unable to get CAP_NET_ADMIN cap flag");
220 TH_LOG("expecting CAP_NET_ADMIN to be set for the test harness");
222 /* at this point we know CAP_NET_ADMIN is available, so setting the
230 /* remove CAP_NET_ADMIN from our effective set */
231 cap_value_t net_admin[] = { CAP_NET_ADMIN };
235 TH_LOG("couldn't clear CAP_NET_ADMIN");
239 TH_LOG("cap_set_proc should drop CAP_NET_ADMIN");
250 /* restore CAP_NET_ADMIN to our effective set */
253 TH_LOG("couldn't restore CAP_NET_ADMIN");
257 TH_LOG("cap_set_proc should set CAP_NET_ADMIN");