Searched defs:avrule (Results 1 - 9 of 9) sorted by relevance

/external/libsepol/src/
H A Dassertion.c31 const avrule_t * avrule,
36 if (avrule->source_filename) {
38 avrule->source_line, avrule->source_filename, avrule->line,
44 } else if (avrule->line) {
46 avrule->line, p->p_type_val_to_name[stype],
65 const avrule_t * avrule)
72 for (curperm = avrule->perms; curperm != NULL; curperm = curperm->next) {
81 report_failure(handle, p, avrule, styp
30 report_failure(sepol_handle_t *handle, policydb_t *p, const avrule_t * avrule, unsigned int stype, unsigned int ttype, const class_perm_node_t *curperm, const avtab_ptr_t node) argument
61 check_assertion_helper(sepol_handle_t * handle, policydb_t * p, avtab_t * te_avtab, avtab_t * te_cond_avtab, unsigned int stype, unsigned int ttype, const avrule_t * avrule) argument
[all...]
H A Dwrite.c1484 static int avrule_write(avrule_t * avrule, struct policy_file *fp) argument
1491 buf[items++] = cpu_to_le32(avrule->specified);
1492 buf[items++] = cpu_to_le32(avrule->flags);
1497 if (type_set_write(&avrule->stypes, fp))
1500 if (type_set_write(&avrule->ttypes, fp))
1503 cur = avrule->perms;
1514 cur = avrule->perms;
1532 avrule_t *avrule; local
1534 avrule = avrules;
1536 while (avrule) {
[all...]
H A Dexpand.c2632 avrule_t *avrule; local
2645 avrule = (avrule_t *) malloc(sizeof(avrule_t));
2646 if (!avrule)
2649 avrule_init(avrule);
2650 avrule->specified = AVRULE_NEVERALLOW;
2651 avrule->line = source_rule->line;
2652 avrule->flags = source_rule->flags;
2653 avrule->source_line = source_rule->source_line;
2655 avrule->source_filename = strdup(source_rule->source_filename);
2656 if (!avrule
[all...]
H A Dpolicydb.c3003 avrule_t *avrule; local
3006 avrule = (avrule_t *) malloc(sizeof(avrule_t));
3007 if (!avrule)
3010 avrule_init(avrule);
3016 (avrule)->specified = le32_to_cpu(buf[0]);
3017 (avrule)->flags = le32_to_cpu(buf[1]);
3019 if (type_set_read(&avrule->stypes, fp))
3022 if (type_set_read(&avrule->ttypes, fp))
3046 avrule->perms = cur;
3053 return avrule;
[all...]
/external/sepolicy/tools/sepolicy-analyze/
H A Dneverallow.c374 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
[all...]
/external/checkpolicy/test/
H A Ddismod.c214 int display_avrule(avrule_t * avrule, policydb_t * policy, argument
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
598 avrule_t *avrule; local
623 avrule_t *avrule = decl->avrules; local
[all...]
/external/checkpolicy/
H A Dmodule_compiler.c25 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 */
88 /* the first declaration within the global avrule
1347 void append_avrule(avrule_t * avrule) argument
1359 decl->avrules = avrule;
1361 stack_top->last_avrule->next = avrule;
1363 stack_top->last_avrule = avrule;
1419 /* allocate a new avrule bloc
[all...]
H A Dpolicy_define.c1519 avrule_t *avrule; local
1523 avrule = malloc(sizeof(avrule_t));
1524 if (!avrule) {
1528 avrule_init(avrule);
1529 avrule->specified = which;
1530 avrule->line = policydb_lineno;
1531 avrule->source_line = source_lineno;
1532 avrule->source_filename = strdup(source_file);
1533 if (!avrule->source_filename) {
1539 if (set_types(&avrule
1597 avrule_t *avrule; local
1621 avrule_t *avrule; local
1736 avrule_t *avrule; local
1875 avrule_t *avrule; local
1895 avrule_t *avrule; local
[all...]
/external/libsepol/include/sepol/policydb/
H A Dpolicydb.h242 typedef struct avrule { struct
266 struct avrule *next;

Completed in 133 milliseconds