HomeSort by relevance Sort by last modified time
    Searched defs:avrule (Results 1 - 15 of 15) sorted by null

  /system/sepolicy/tools/sepolicy-analyze/
neverallow.c 371 struct avrule *neverallows = NULL, *avrule; local
396 avrule = calloc(1, sizeof *avrule);
397 if (!avrule)
400 avrule->specified = AVRULE_NEVERALLOW;
402 if (read_typeset(policydb, &p, end, &avrule->stypes, &avrule->flags))
405 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
471 avrule_t *avrule = a->avrule; local
    [all...]
write.c 1670 avrule_t *avrule; local
    [all...]
expand.c 2630 avrule_t *avrule; local
    [all...]
policydb.c 3205 avrule_t *avrule; local
    [all...]
module_to_cil.c 573 log_err("Unknown avrule type: %i", type);
682 log_err("Unknown avrule xperm type: %i", type);
1160 static int avrule_list_to_cil(int indent, struct policydb *pdb, struct avrule *avrule_list, struct list *attr_list)
1163 struct avrule *avrule; local
1169 for (avrule = avrule_list; avrule != NULL; avrule = avrule->next) {
1170 if ((avrule->specified & (AVRULE_NEVERALLOW|AVRULE_XPERMS_NEVERALLOW)) &
    [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/libsepol/cil/src/
android.c 543 struct cil_avrule *avrule = (struct cil_avrule *)node->data; local
545 if (avrule->src != NULL) {
551 key = avrule->src_str;
554 avrule->src_str = __cil_attrib_get_versname(key, args->num);
557 key = avrule->tgt_str;
560 avrule->tgt_str = __cil_attrib_get_versname(key, args->num);
cil_verify.c 881 struct cil_avrule *avrule = NULL; local
882 avrule = rule_node->data;
883 if (avrule->rule_kind == CIL_AVRULE_NEVERALLOW) {
    [all...]
cil_write_ast.c 743 static int cil_write_avrule_x(struct cil_avrule *avrule, FILE *cil_out) {
748 switch (avrule->rule_kind) {
762 cil_log(CIL_ERR, "Unknown AVRULE type: %d\n", avrule->rule_kind);
767 src = avrule->src_str;
768 tgt = avrule->tgt_str;
770 if (avrule->perms.x.permx_str != NULL) {
771 xperms = strdup(avrule->perms.x.permx_str);
778 rc = cil_unfill_permx(avrule->perms.x.permx, &xperms);
789 static int cil_write_avrule_orig(struct cil_avrule *avrule, FILE *cil_out)
828 struct cil_avrule *avrule = (struct cil_avrule *)node->data; local
    [all...]
cil_post.c 1906 struct cil_avrule *avrule = node->data; local
    [all...]
cil_binary.c 4432 avrule_t *avrule; 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 */
117 /* the first declaration within the global avrule
1228 void append_avrule(avrule_t * avrule)
1240 decl->avrules = avrule;
1242 stack_top->last_avrule->next = avrule;
1244 stack_top->last_avrule = avrule;
1300 /* allocate a new avrule block for this optional block *
    [all...]
policy_define.c 1612 avrule_t *avrule; local
1617 avrule = malloc(sizeof(avrule_t));
1618 if (!avrule) {
1622 avrule_init(avrule);
1623 avrule->specified = which;
1624 avrule->line = policydb_lineno;
1625 avrule->source_line = source_lineno;
1626 avrule->source_filename = strdup(source_file);
1627 if (!avrule->source_filename)
1693 avrule_t *avrule; local
1717 avrule_t *avrule; local
2037 avrule_t *avrule; local
2399 avrule_t *avrule; local
2500 avrule_t *avrule; local
2649 avrule_t *avrule; local
2669 avrule_t *avrule; local
    [all...]
  /external/selinux/libsepol/include/sepol/policydb/
policydb.h 263 typedef struct avrule { struct
294 struct avrule *next;
671 extern int check_assertion(policydb_t *p, avrule_t *avrule);

Completed in 570 milliseconds