Searched refs:boollist (Results 1 – 8 of 8) sorted by relevance
/external/selinux/libselinux/src/ |
D | audit2why.c | 37 static struct boolean_t **boollist = NULL; variable 56 boollist[boolcnt] = malloc(sizeof(struct boolean_t)); in load_booleans() 57 boollist[boolcnt]->name = strdup(sepol_bool_get_name(boolean)); in load_booleans() 58 boollist[boolcnt]->active = sepol_bool_get_value(boolean); in load_booleans() 79 char *name = boollist[i]->name; in check_booleans() 80 int active = boollist[i]->active; in check_booleans() 154 b[i].name = strdup(boollist[ctr]->name); in check_booleans() 155 b[i].active = !boollist[ctr]->active; in check_booleans() 171 free(boollist[i]->name); in finish() 172 free(boollist[i]); in finish() [all …]
|
D | booleans.c | 381 static int save_booleans(size_t boolcnt, SELboolean * boollist) in save_booleans() argument 435 if (strcmp(boollist[i].name, boolname) in save_booleans() 439 boollist[i].value); in save_booleans() 466 boollist[i].name, boollist[i].value); in save_booleans() 489 static void rollback(SELboolean * boollist, int end) in rollback() argument 494 security_set_boolean(boollist[i].name, in rollback() 495 security_get_boolean_active(boollist[i]. in rollback() 499 int security_set_boolean_list(size_t boolcnt, SELboolean * boollist, in security_set_boolean_list() argument 505 if (security_set_boolean(boollist[i].name, boollist[i].value)) { in security_set_boolean_list() 506 rollback(boollist, i); in security_set_boolean_list() [all …]
|
/external/libselinux/src/ |
D | booleans.c | 235 static void rollback(SELboolean * boollist, int end) in hidden_def() 240 security_set_boolean(boollist[i].name, in hidden_def() 241 security_get_boolean_active(boollist[i]. in hidden_def() 245 int security_set_boolean_list(size_t boolcnt, SELboolean * const boollist, in security_set_boolean_list() argument 251 if (security_set_boolean(boollist[i].name, boollist[i].value)) { in security_set_boolean_list() 252 rollback(boollist, i); in security_set_boolean_list()
|
/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/policycoreutils/sepolicy/ |
D | search.c | 309 PyObject *boollist = NULL; in get_bool() local 319 boollist = PyList_New(0); in get_bool() 320 if (! boollist) goto err; in get_bool() 332 if (py_append_obj(boollist, obj)) in get_bool() 350 if (py_append_obj(boollist, tuple)) in get_bool() 357 return boollist; in get_bool() 363 py_decref(boollist); in get_bool() 747 PyObject *boollist = NULL; in get_av_results() local 872 py_decref(boollist); in get_av_results()
|
/external/libselinux/include/selinux/ |
D | selinux.h | 212 SELboolean * const boollist, int permanent);
|
/external/selinux/policycoreutils/sepolicy/sepolicy/ |
D | __init__.py | 360 boollist = [] 367 boollist.append(p) 370 return boollist
|
/external/selinux/libselinux/include/selinux/ |
D | selinux.h | 308 SELboolean * boollist, int permanent);
|