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

  /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...]
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...]
policydb.c 3042 avrule_t *avrule; local
    [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...]
  /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/sepolgen/src/sepolgen/
access.py 155 def avrule_to_access_vectors(avrule):
156 """Convert an avrule into a list of access vectors.
159 an AVRule can more than one source type, target type, and
160 object class. This function expands a single avrule into a
162 defined in the AVRule.
166 if isinstance(avrule, AccessVector):
167 return [avrule]
169 for src_type in avrule.src_types:
170 for tgt_type in avrule.tgt_types:
171 for obj_class in avrule.obj_classes
    [all...]
policygen.py 158 rule = refpolicy.AVRule(av)
375 for avrule in node.avrules():
376 r.types.update(avrule.src_types)
377 r.types.update(avrule.tgt_types)
378 for obj in avrule.obj_classes:
379 r.add_obj_class(obj, avrule.perms)
interfaces.py 264 for avrule in interface.avrules():
265 if avrule.rule_type != refpolicy.AVRule.ALLOW:
271 avs = access.avrule_to_access_vectors(avrule)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/
access.py 155 def avrule_to_access_vectors(avrule):
156 """Convert an avrule into a list of access vectors.
159 an AVRule can more than one source type, target type, and
160 object class. This function expands a single avrule into a
162 defined in the AVRule.
166 if isinstance(avrule, AccessVector):
167 return [avrule]
169 for src_type in avrule.src_types:
170 for tgt_type in avrule.tgt_types:
171 for obj_class in avrule.obj_classes
    [all...]
policygen.py 158 rule = refpolicy.AVRule(av)
375 for avrule in node.avrules():
376 r.types.update(avrule.src_types)
377 r.types.update(avrule.tgt_types)
378 for obj in avrule.obj_classes:
379 r.add_obj_class(obj, avrule.perms)
interfaces.py 264 for avrule in interface.avrules():
265 if avrule.rule_type != refpolicy.AVRule.ALLOW:
271 avs = access.avrule_to_access_vectors(avrule)
  /external/selinux/libsepol/cil/src/
cil_find.c 290 int cil_find_matching_avrule(struct cil_tree_node *node, struct cil_avrule *avrule, struct cil_avrule *target, struct cil_list *matching, int match_self)
293 struct cil_symtab_datum *s1 = avrule->src;
294 struct cil_symtab_datum *t1 = avrule->tgt;
298 if (match_self != CIL_TRUE && avrule == target) goto exit;
300 if (avrule->rule_kind != target->rule_kind) goto exit;
302 if (avrule->is_extended != target->is_extended) goto exit;
331 if (cil_classperms_list_match_any(avrule->perms.classperms, target->perms.classperms)) {
335 if (cil_permissionx_match_any(avrule->perms.x.permx, target->perms.x.permx)) {
382 cil_log(CIL_ERR, "An error occured while searching for avrule in AST\n");
cil.c     [all...]
cil_binary.c 4229 avrule_t *avrule; local
    [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_internal.h 974 void cil_avrule_init(struct cil_avrule **avrule);
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_post.c 1864 struct cil_avrule *avrule = node->data; local
    [all...]
  /external/selinux/checkpolicy/
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...]
module_compiler.h 82 void append_avrule(avrule_t * avrule);
103 /* Called whenever existing an avrule block. Check that the block had
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...]
  /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);

Completed in 411 milliseconds