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.c327 static void rollback(SELboolean * boollist, int end) in rollback() argument
332 security_set_boolean(boollist[i].name, in rollback()
333 security_get_boolean_active(boollist[i]. in rollback()
337 int security_set_boolean_list(size_t boolcnt, SELboolean * boollist, in security_set_boolean_list() argument
343 boollist[i].value = !!boollist[i].value; in security_set_boolean_list()
344 if (security_set_boolean(boollist[i].name, boollist[i].value)) { in security_set_boolean_list()
345 rollback(boollist, i); in security_set_boolean_list()
373 SELboolean * boollist __attribute__((unused)), in security_set_boolean_list() argument
/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.h319 SELboolean * boollist, int permanent);
/external/selinux/python/sepolicy/sepolicy/
D__init__.py702 boollist = []
709 boollist.append(p)
712 return boollist