Searched refs:boollist (Results 1 – 5 of 5) sorted by relevance
/external/selinux/libselinux/src/ |
D | audit2why.c | 38 static struct boolean_t **boollist = NULL; 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() 80 char *name = boollist[i]->name; in check_booleans() 81 int active = boollist[i]->active; in check_booleans() 155 b[i].name = strdup(boollist[ctr]->name); in check_booleans() 156 b[i].active = !boollist[ctr]->active; in check_booleans() 172 free(boollist[i]->name); in finish() 173 free(boollist[i]); in finish() [all …]
|
D | booleans.c | 372 static int save_booleans(size_t boolcnt, SELboolean * boollist) in save_booleans() argument 426 if (strcmp(boollist[i].name, boolname) in save_booleans() 430 boollist[i].value); in save_booleans() 457 boollist[i].name, boollist[i].value); in save_booleans() 480 static void rollback(SELboolean * boollist, int end) in rollback() argument 485 security_set_boolean(boollist[i].name, in rollback() 486 security_get_boolean_active(boollist[i]. in rollback() 490 int security_set_boolean_list(size_t boolcnt, SELboolean * boollist, in security_set_boolean_list() argument 496 if (security_set_boolean(boollist[i].name, boollist[i].value)) { in security_set_boolean_list() 497 rollback(boollist, i); in security_set_boolean_list() [all …]
|
/external/selinux/policycoreutils/setsebool/ |
D | setsebool.c | 101 SELboolean * boollist) in selinux_set_boolean_list() argument 104 if (security_set_boolean_list(boolcnt, boollist, 0)) { in selinux_set_boolean_list() 124 SELboolean * boollist) in semanage_set_boolean_list() argument 172 if (semanage_bool_set_name(handle, boolean, boollist[j].name) < in semanage_set_boolean_list() 176 semanage_bool_set_value(boolean, boollist[j].value); in semanage_set_boolean_list() 185 fprintf(stderr, "Boolean %s is not defined\n", boollist[j].name); in semanage_set_boolean_list() 196 boollist[j].name); in semanage_set_boolean_list()
|
/external/selinux/python/sepolicy/sepolicy/ |
D | __init__.py | 615 boollist = [] 622 boollist.append(p) 625 return boollist
|
/external/selinux/libselinux/include/selinux/ |
D | selinux.h | 308 SELboolean * boollist, int permanent);
|