Searched defs:bools (Results 1 - 6 of 6) sorted by relevance

/external/selinux/libsepol/tests/
H A Dtest-linker-cond-map.c57 void test_cond_expr_mapping(policydb_t * p, avrule_decl_t * d, test_cond_expr_t * bools, int len) argument
70 CU_ASSERT(expr->expr_type == bools[i].expr_type);
71 if (bools[i].bool) {
72 CU_ASSERT(strcmp(p->sym_val_to_name[SYM_BOOLS][expr->bool - 1], bools[i].bool) == 0);
91 test_cond_expr_t bools[2]; local
102 bools[0].bool = "g_b_bool_1";
103 bools[0].expr_type = COND_BOOL;
104 test_cond_expr_mapping(base, d, bools, 1);
112 bools[0].bool = "o1_b_bool_1";
113 bools[
122 test_cond_expr_t bools[3]; local
[all...]
/external/selinux/policycoreutils/sestatus/
H A Dsestatus.c189 char **bools; local
343 if (security_get_boolean_names(&bools, &nbool) >= 0) {
347 if (strlen(bools[i]) + 1 > COL)
348 COL = strlen(bools[i]) + 1;
351 printf_tab(bools[i]);
353 rc = security_get_boolean_active(bools[i]);
365 c = security_get_boolean_pending(bools[i]);
382 free(bools[i]);
384 free(bools);
/external/selinux/libselinux/src/
H A Daudit2why.c63 static int check_booleans(struct boolean_t **bools) argument
150 *bools = calloc(sizeof(struct boolean_t), fcnt + 1);
151 struct boolean_t *b = *bools;
317 struct boolean_t *bools; local
388 if (check_booleans(&bools) == 0) {
396 struct boolean_t *b = bools;
401 b = bools;
409 free(bools);
/external/selinux/libsepol/src/
H A Dconditional.c61 static int bool_present(unsigned int target, unsigned int bools[], argument
70 while (i < num_bools && target != bools[i])
83 /* same number of bools? */
87 /* make sure all the bools in a are also in b */
342 * number of bools.
372 ("Found expr with no bools and only a ! - this should never happen.\n");
387 /* find all the bools in the expression */
408 /* save the default values for the bools so we can play with them */
414 /* loop through all possible combinations of values for bools in expression */
416 /* temporarily set the value for all the bools i
[all...]
/external/selinux/libsemanage/src/
H A Ddirect_api.c1060 dbase_config_t *bools = semanage_bool_dbase_local(sh); local
1134 bools_modified = bools->dtable->is_modified(bools->dbase);
/external/selinux/policycoreutils/sepolicy/sepolicy/
H A D__init__.py577 bools = None variable
579 global bools
580 if not bools:
581 bools = info(BOOLEAN)
582 return bools
709 global bools
718 bools = None
758 bools = []
773 if (b[0], enabled) not in bools and (b[0], not enabled) not in bools
[all...]

Completed in 152 milliseconds