/system/sepolicy/tools/sepolicy-analyze/ |
neverallow.c | 374 struct avrule *neverallows = NULL, *avrule; local 399 avrule = calloc(1, sizeof *avrule); 400 if (!avrule) 403 avrule->specified = AVRULE_NEVERALLOW; 405 if (read_typeset(policydb, &p, end, &avrule->stypes, &avrule->flags)) 408 if (read_typeset(policydb, &p, end, &avrule->ttypes, &avrule->flags) [all...] |
/external/selinux/libsepol/src/ |
assertion.c | 34 avrule_t *avrule; member in struct:avtab_match_args 39 static void report_failure(sepol_handle_t *handle, policydb_t *p, const avrule_t *avrule, 43 if (avrule->source_filename) { 45 avrule->source_line, avrule->source_filename, avrule->line, 50 } else if (avrule->line) { 52 avrule->line, p->p_type_val_to_name[stype], 141 policydb_t *p, const avrule_t *avrule, 176 rc = check_extended_permissions(avrule->xperms, xperms) 218 avrule_t *avrule = a->avrule; local 455 avrule_t *avrule = a->avrule; local [all...] |
write.c | 1601 avrule_t *avrule; local [all...] |
expand.c | 2598 avrule_t *avrule; local [all...] |
policydb.c | 3042 avrule_t *avrule; local [all...] |
module_to_cil.c | 574 log_err("Unknown avrule type: %i", type); 1060 static int avrule_list_to_cil(int indent, struct policydb *pdb, struct avrule *avrule_list, struct list *attr_list) 1063 struct avrule *avrule; local 1072 for (avrule = avrule_list; avrule != NULL; avrule = avrule->next) { 1073 ts = &avrule->stypes; 1079 ts = &avrule->ttypes [all...] |
/external/selinux/checkpolicy/test/ |
dismod.c | 214 int display_avrule(avrule_t * avrule, policydb_t * policy, 220 if (avrule == NULL) { 224 if (avrule->specified & AVRULE_AV) { 225 if (avrule->specified & AVRULE_ALLOWED) { 228 if (avrule->specified & AVRULE_AUDITALLOW) { 231 if (avrule->specified & AVRULE_DONTAUDIT) { 234 } else if (avrule->specified & AVRULE_TYPE) { 235 if (avrule->specified & AVRULE_TRANSITION) { 238 if (avrule->specified & AVRULE_MEMBER) { 241 if (avrule->specified & AVRULE_CHANGE) 598 avrule_t *avrule; local 623 avrule_t *avrule = decl->avrules; local [all...] |
/external/selinux/checkpolicy/ |
module_compiler.c | 25 avrule_block_t *avrule; member in union:stack_item_u 31 int type; /* for above union: 1 = avrule block, 2 = conditional */ 32 avrule_decl_t *decl; /* if in an avrule block, which 35 int in_else; /* if in an avrule block, within ELSE branch */ 89 /* the first declaration within the global avrule 1348 void append_avrule(avrule_t * avrule) 1360 decl->avrules = avrule; 1362 stack_top->last_avrule->next = avrule; 1364 stack_top->last_avrule = avrule; [all...] |
policy_define.c | 1522 avrule_t *avrule; local 1527 avrule = malloc(sizeof(avrule_t)); 1528 if (!avrule) { 1532 avrule_init(avrule); 1533 avrule->specified = which; 1534 avrule->line = policydb_lineno; 1535 avrule->source_line = source_lineno; 1536 avrule->source_filename = strdup(source_file); 1537 if (!avrule->source_filename) { 1543 if (set_types(&avrule->stypes, id, &add, 0) 1601 avrule_t *avrule; local 1625 avrule_t *avrule; local 1945 avrule_t *avrule; local 2302 avrule_t *avrule; local 2402 avrule_t *avrule; local 2542 avrule_t *avrule; local 2562 avrule_t *avrule; local [all...] |
/external/selinux/libsepol/cil/src/ |
cil_policy.c | 596 cil_log(CIL_INFO, "Unknown avrule with kind=%d src=%s tgt=%s\n", 1006 struct cil_avrule *avrule = (struct cil_avrule*)current->data; local 1007 rc = cil_avrule_to_policy(file_arr, ALLOWS, avrule); 1009 cil_log(CIL_INFO, "Failed to write avrule to policy\n"); [all...] |
cil_verify.c | 876 struct cil_avrule *avrule = NULL; local 877 avrule = rule_node->data; 878 if (avrule->rule_kind == CIL_AVRULE_NEVERALLOW) { [all...] |
cil_post.c | 1864 struct cil_avrule *avrule = node->data; local [all...] |
cil_binary.c | 4229 avrule_t *avrule; local [all...] |
/external/selinux/libsepol/include/sepol/policydb/ |
policydb.h | 258 typedef struct avrule { struct 289 struct avrule *next; 658 extern int check_assertion(policydb_t *p, avrule_t *avrule);
|