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 578 log_err("Unknown avrule type: %i", type);
687 log_err("Unknown avrule xperm type: %i", type);
1165 static int avrule_list_to_cil(int indent, struct policydb *pdb, struct avrule *avrule_list, struct list *attr_list)
1168 struct avrule *avrule; local
1174 for (avrule = avrule_list; avrule != NULL; avrule = avrule->next) {
1175 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 542 struct cil_avrule *avrule = (struct cil_avrule *)node->data; local
544 if (avrule->src != NULL) {
550 key = avrule->src_str;
553 avrule->src_str = __cil_attrib_get_versname(key, args->num);
556 key = avrule->tgt_str;
559 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 725 static int cil_write_avrule_x(struct cil_avrule *avrule, FILE *cil_out) {
730 switch (avrule->rule_kind) {
744 cil_log(CIL_ERR, "Unknown AVRULE type: %d\n", avrule->rule_kind);
749 src = avrule->src_str;
750 tgt = avrule->tgt_str;
752 if (avrule->perms.x.permx_str != NULL) {
753 xperms = strdup(avrule->perms.x.permx_str);
760 rc = cil_unfill_permx(avrule->perms.x.permx, &xperms);
771 static int cil_write_avrule_orig(struct cil_avrule *avrule, FILE *cil_out)
810 struct cil_avrule *avrule = (struct cil_avrule *)node->data; local
    [all...]
cil_post.c 1898 struct cil_avrule *avrule = node->data; local
    [all...]
cil_binary.c 4414 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 1530 avrule_t *avrule; local
1535 avrule = malloc(sizeof(avrule_t));
1536 if (!avrule) {
1540 avrule_init(avrule);
1541 avrule->specified = which;
1542 avrule->line = policydb_lineno;
1543 avrule->source_line = source_lineno;
1544 avrule->source_filename = strdup(source_file);
1545 if (!avrule->source_filename) {
1551 if (set_types(&avrule->stypes, id, &add, 0)
1611 avrule_t *avrule; local
1635 avrule_t *avrule; local
1955 avrule_t *avrule; local
2317 avrule_t *avrule; local
2418 avrule_t *avrule; local
2567 avrule_t *avrule; local
2587 avrule_t *avrule; local
    [all...]
  /external/selinux/libsepol/include/sepol/policydb/
policydb.h 259 typedef struct avrule { struct
290 struct avrule *next;
667 extern int check_assertion(policydb_t *p, avrule_t *avrule);

Completed in 482 milliseconds