Searched refs:last_valid_cap (Results 1 – 1 of 1) sorted by relevance
1418 unsigned int last_valid_cap = 0; in get_last_valid_cap() local1420 for (; prctl(PR_CAPBSET_READ, last_valid_cap, 0, 0, 0) >= 0; in get_last_valid_cap()1421 ++last_valid_cap); in get_last_valid_cap()1424 if (last_valid_cap > 0) { in get_last_valid_cap()1425 last_valid_cap--; in get_last_valid_cap()1430 if (fscanf(fp, "%u", &last_valid_cap) != 1) in get_last_valid_cap()1434 return last_valid_cap; in get_last_valid_cap()1437 static void drop_capbset(uint64_t keep_mask, unsigned int last_valid_cap) in drop_capbset() argument1441 for (i = 0; i < sizeof(keep_mask) * 8 && i <= last_valid_cap; ++i) { in drop_capbset()1449 static void drop_caps(const struct minijail *j, unsigned int last_valid_cap) in drop_caps() argument[all …]