Home
last modified time | relevance | path

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

/external/selinux/policycoreutils/setsebool/
Dsetsebool.c100 static int selinux_set_boolean_list(size_t boolcnt, in selinux_set_boolean_list() argument
104 if (security_set_boolean_list(boolcnt, boollist, 0)) { in selinux_set_boolean_list()
123 static int semanage_set_boolean_list(size_t boolcnt, in semanage_set_boolean_list() argument
167 for (j = 0; j < boolcnt; j++) { in semanage_set_boolean_list()
227 size_t boolcnt = end - start; in setbool() local
229 SELboolean *vallist = calloc(boolcnt, sizeof(SELboolean)); in setbool()
271 if (semanage_set_boolean_list(boolcnt, vallist) < 0) in setbool()
274 if (selinux_set_boolean_list(boolcnt, vallist) < 0) in setbool()
297 for (i = 0; i < boolcnt; i++) in setbool()
307 for (i = 0; i < boolcnt; i++) in setbool()
/external/selinux/libselinux/src/
Dbooleans.c372 static int save_booleans(size_t boolcnt, SELboolean * boollist) in save_booleans() argument
385 int *used = (int *)malloc(sizeof(int) * boolcnt); in save_booleans()
390 for (i = 0; i < boolcnt; i++) in save_booleans()
425 for (i = 0; i < boolcnt; i++) { in save_booleans()
440 if (i == boolcnt) { in save_booleans()
454 for (i = 0; i < boolcnt; i++) { in save_booleans()
490 int security_set_boolean_list(size_t boolcnt, SELboolean * boollist, in security_set_boolean_list() argument
495 for (i = 0; i < boolcnt; i++) { in security_set_boolean_list()
508 return save_booleans(boolcnt, boollist); in security_set_boolean_list()
568 int security_set_boolean_list(size_t boolcnt __attribute__((unused)), in security_set_boolean_list() argument
Daudit2why.c39 static int boolcnt = 0; variable
57 boollist[boolcnt] = malloc(sizeof(struct boolean_t)); in load_booleans()
58 boollist[boolcnt]->name = strdup(sepol_bool_get_name(boolean)); in load_booleans()
59 boollist[boolcnt]->active = sepol_bool_get_value(boolean); in load_booleans()
60 boolcnt++; in load_booleans()
74 int *foundlist = calloc(boolcnt, sizeof(int)); in check_booleans()
79 for (i = 0; i < boolcnt; i++) { in check_booleans()
171 for (i = 0; i < boolcnt; i++) { in finish()
183 boolcnt = 0; in finish()
/external/selinux/libselinux/include/selinux/
Dselinux.h307 extern int security_set_boolean_list(size_t boolcnt,