Home
last modified time | relevance | path

Searched refs:boollist (Results 1 – 5 of 5) sorted by relevance

/external/selinux/libselinux/src/
Daudit2why.c38 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 …]
Dbooleans.c385 static int save_booleans(size_t boolcnt, SELboolean * boollist) in save_booleans() argument
439 if (strcmp(boollist[i].name, boolname) in save_booleans()
443 boollist[i].value); in save_booleans()
471 boollist[i].name, boollist[i].value); in save_booleans()
494 static void rollback(SELboolean * boollist, int end) in rollback() argument
499 security_set_boolean(boollist[i].name, in rollback()
500 security_get_boolean_active(boollist[i]. in rollback()
504 int security_set_boolean_list(size_t boolcnt, SELboolean * boollist, in security_set_boolean_list() argument
510 boollist[i].value = !!boollist[i].value; in security_set_boolean_list()
511 if (security_set_boolean(boollist[i].name, boollist[i].value)) { in security_set_boolean_list()
[all …]
/external/selinux/policycoreutils/setsebool/
Dsetsebool.c96 SELboolean * boollist) in selinux_set_boolean_list() argument
99 if (security_set_boolean_list(boolcnt, boollist, 0)) { in selinux_set_boolean_list()
119 SELboolean * boollist) in semanage_set_boolean_list() argument
168 if (semanage_bool_set_name(handle, boolean, boollist[j].name) < in semanage_set_boolean_list()
172 semanage_bool_set_value(boolean, boollist[j].value); in semanage_set_boolean_list()
181 fprintf(stderr, "Boolean %s is not defined\n", boollist[j].name); in semanage_set_boolean_list()
192 boollist[j].name); in semanage_set_boolean_list()
/external/selinux/libselinux/include/selinux/
Dselinux.h308 SELboolean * boollist, int permanent);
/external/selinux/python/sepolicy/sepolicy/
D__init__.py703 boollist = []
710 boollist.append(p)
713 return boollist