Home
last modified time | relevance | path

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

/external/minijail/
Dsystem.c154 unsigned int last_valid_cap = 0; in get_last_valid_cap() local
156 for (; prctl(PR_CAPBSET_READ, last_valid_cap, 0, 0, 0) >= 0; in get_last_valid_cap()
157 ++last_valid_cap) in get_last_valid_cap()
161 if (last_valid_cap > 0) { in get_last_valid_cap()
162 last_valid_cap--; in get_last_valid_cap()
167 if (fscanf(fp, "%u", &last_valid_cap) != 1) in get_last_valid_cap()
171 return last_valid_cap; in get_last_valid_cap()
Dlibminijail.c1818 static void drop_capbset(uint64_t keep_mask, unsigned int last_valid_cap) in drop_capbset() argument
1822 for (i = 0; i < sizeof(keep_mask) * 8 && i <= last_valid_cap; ++i) { in drop_capbset()
1830 static void drop_caps(const struct minijail *j, unsigned int last_valid_cap) in drop_caps() argument
1845 for (i = 0; i < ncaps && i <= last_valid_cap; ++i) { in drop_caps()
1879 drop_capbset(j->caps, last_valid_cap); in drop_caps()
1911 for (i = 0; i < ncaps && i <= last_valid_cap; ++i) { in drop_caps()
2072 unsigned int last_valid_cap = 0; in minijail_enter() local
2074 last_valid_cap = get_last_valid_cap(); in minijail_enter()
2163 drop_capbset(j->cap_bset, last_valid_cap); in minijail_enter()
2191 drop_caps(j, last_valid_cap); in minijail_enter()
[all …]
Dminijail0_cli.c96 unsigned int last_valid_cap = get_last_valid_cap(); in use_caps() local
98 for (i = 0; i <= last_valid_cap; ++i) { in use_caps()