Searched refs:cap (Results 1 – 5 of 5) sorted by relevance
/busybox-1.35.0/util-linux/ |
D | setpriv.c | 128 static unsigned parse_cap(const char *cap) in parse_cap() argument 130 switch (cap[0]) { in parse_cap() 136 bb_error_msg_and_die("invalid capability '%s'", cap); in parse_cap() 140 cap++; in parse_cap() 141 return cap_name_to_number(cap); in parse_cap() 153 unsigned cap; in set_inh_caps() local 155 cap = parse_cap(capstring); in set_inh_caps() 156 if (CAP_TO_INDEX(cap) >= caps.u32s) in set_inh_caps() 160 caps.data[CAP_TO_INDEX(cap)].inheritable |= CAP_TO_MASK(cap); in set_inh_caps() 162 caps.data[CAP_TO_INDEX(cap)].inheritable &= ~CAP_TO_MASK(cap); in set_inh_caps() [all …]
|
D | switch_root.c | 158 char *cap; in drop_capabilities() local 160 cap = strtok_r(string, ",", &string); in drop_capabilities() 161 while (cap) { in drop_capabilities() 164 cap_idx = cap_name_to_number(cap); in drop_capabilities() 169 bb_error_msg("dropped capability: %s", cap); in drop_capabilities() 170 cap = strtok_r(NULL, ",", &string); in drop_capabilities()
|
/busybox-1.35.0/libbb/ |
D | capability.c | 61 unsigned FAST_FUNC cap_name_to_number(const char *cap) in cap_name_to_number() argument 65 if ((sscanf(cap, "cap_%u", &n)) == 1) { in cap_name_to_number() 70 if (strcasecmp(capabilities[i], cap) == 0) in cap_name_to_number() 73 bb_error_msg_and_die("unknown capability '%s'", cap); in cap_name_to_number() 77 bb_error_msg_and_die("unknown capability '%s'", cap); in cap_name_to_number()
|
/busybox-1.35.0/miscutils/ |
D | bc.c | 259 size_t cap; member 270 size_t cap; member 1096 size_t cap = v->cap * 2; in bc_vec_grow() local 1097 while (cap < v->len + n) cap *= 2; in bc_vec_grow() 1098 v->v = xrealloc(v->v, v->size * cap); in bc_vec_grow() 1099 v->cap = cap; in bc_vec_grow() 1105 v->cap = BC_VEC_START_CAP; in bc_vec_init() 1118 if (v->cap < req) { in bc_vec_expand() 1120 v->cap = req; in bc_vec_expand() 1149 if (len + n > v->cap) bc_vec_grow(v, n); in bc_vec_npush() [all …]
|
/busybox-1.35.0/include/ |
D | libbb.h | 1699 unsigned cap_name_to_number(const char *cap) FAST_FUNC;
|