Home
last modified time | relevance | path

Searched refs:avrule_t (Results 1 – 17 of 17) sorted by relevance

/third_party/selinux/checkpolicy/
Dpolicy_define.h11 #define COND_ERR ((avrule_t *)-1)
15 avrule_t *define_cond_compute_type(int which);
16 avrule_t *define_cond_pol_list(avrule_t *avlist, avrule_t *stmt);
17 avrule_t *define_cond_te_avtab(int which);
18 avrule_t *define_cond_filename_trans(void);
32 int define_conditional(cond_expr_t *expr, avrule_t *t_list, avrule_t *f_list );
Dpolicy_define.c1604 static int define_compute_type_helper(int which, avrule_t ** rule) in define_compute_type_helper()
1610 avrule_t *avrule; in define_compute_type_helper()
1615 avrule = malloc(sizeof(avrule_t)); in define_compute_type_helper()
1698 avrule_t *avrule; in define_compute_type()
1719 avrule_t *define_cond_compute_type(int which) in define_cond_compute_type()
1722 avrule_t *avrule; in define_cond_compute_type()
1733 return (avrule_t *) 1; in define_cond_compute_type()
1812 avrule_t *define_cond_pol_list(avrule_t * avlist, avrule_t * sl) in define_cond_pol_list()
1816 return (avrule_t *) 1; in define_cond_pol_list()
2037 static int define_te_avtab_xperms_helper(int which, avrule_t ** rule) in define_te_avtab_xperms_helper()
[all …]
Dmodule_compiler.h82 void append_avrule(avrule_t * avrule);
Dpolicy_parse.y369 …{ if (pass == 2) { if (define_conditional((cond_expr_t*)$2, (avrule_t*)$4, (avrule_t*)$6) < 0) ret…
404 { $$ = define_cond_pol_list((avrule_t *)$1, (avrule_t *)$2); }
Dmodule_compiler.c34 avrule_t *last_avrule;
1218 avrule_t *tmp; in append_cond_list()
1238 void append_avrule(avrule_t * avrule) in append_avrule()
/third_party/selinux/libsepol/src/
Dassertion.c34 avrule_t *avrule;
47 static void report_failure(sepol_handle_t *handle, policydb_t *p, const avrule_t *avrule, in report_failure()
146 policydb_t *p, const avrule_t *avrule, in report_assertion_extended_permissions()
219 avrule_t *avrule = a->avrule; in report_assertion_avtab_matches()
294 static int report_assertion_failures(sepol_handle_t *handle, policydb_t *p, avrule_t *avrule) in report_assertion_failures()
324 static int check_assertion_extended_permissions_avtab(avrule_t *avrule, avtab_t *avtab, in check_assertion_extended_permissions_avtab()
379 static int check_assertion_extended_permissions(avrule_t *avrule, avtab_t *avtab, in check_assertion_extended_permissions()
445 static int check_assertion_self_match(avtab_key_t *k, avrule_t *avrule, policydb_t *p) in check_assertion_self_match()
476 avrule_t *avrule = a->avrule; in check_assertion_avtab_match()
517 int check_assertion(policydb_t *p, avrule_t *avrule) in check_assertion()
[all …]
Dexpand.c1908 avrule_t * source_rule, avtab_t * dest_avtab, in expand_rule_helper()
1963 avrule_t * source_rule, avtab_t * dest_avtab, in convert_and_expand_rule()
1999 static int cond_avrule_list_copy(policydb_t * dest_pol, avrule_t * source_rules, in cond_avrule_list_copy()
2004 avrule_t *cur; in cond_avrule_list_copy()
2419 avrule_t * source_rule, avtab_t * dest_avtab, in expand_rule()
2636 avrule_t * source_rule) in copy_neverallow()
2639 avrule_t *avrule; in copy_neverallow()
2653 avrule = (avrule_t *) malloc(sizeof(avrule_t)); in copy_neverallow()
2760 avrule_t *cur_avrule; in copy_and_expand_avrule_block()
2863 avrule_t *tail, *to_be_appended; in discard_tunables()
Dpolicydb.c614 void avrule_init(avrule_t * x) in avrule_init()
616 memset(x, 0, sizeof(avrule_t)); in avrule_init()
621 void avrule_destroy(avrule_t * x) in avrule_destroy()
747 void avrule_list_destroy(avrule_t * x) in avrule_list_destroy()
749 avrule_t *next, *cur; in avrule_list_destroy()
3510 static avrule_t *avrule_read(policydb_t * p, struct policy_file *fp) in avrule_read()
3515 avrule_t *avrule; in avrule_read()
3518 avrule = (avrule_t *) malloc(sizeof(avrule_t)); in avrule_read()
3716 int avrule_read_list(policydb_t * p, avrule_t ** avrules, in avrule_read_list()
3720 avrule_t *cur, *tail; in avrule_read_list()
Dlink.c1225 static int copy_avrule_list(avrule_t * list, avrule_t ** dst, in copy_avrule_list()
1229 avrule_t *cur, *new_rule = NULL, *tail; in copy_avrule_list()
1239 if ((new_rule = (avrule_t *) malloc(sizeof(avrule_t))) == NULL) { in copy_avrule_list()
Dwrite.c59 avrule_t * avrules, struct policy_file *fp);
1743 static int avrule_write(policydb_t *p, avrule_t * avrule, in avrule_write()
1834 static int avrule_write_list(policydb_t *p, avrule_t * avrules, in avrule_write_list()
1838 avrule_t *avrule; in avrule_write_list()
Dconditional.c351 avrule_t *tmp2; in cond_normalize_expr()
Dpolicydb_validate.c872 static int validate_avrules(sepol_handle_t *handle, const avrule_t *avrule, int conditional, const … in validate_avrules()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h300 } avrule_t; typedef
459 avrule_t *avrules;
675 extern void avrule_init(avrule_t * x);
676 extern void avrule_destroy(avrule_t * x);
677 extern void avrule_list_destroy(avrule_t * x);
699 extern int check_assertion(policydb_t *p, avrule_t *avrule);
701 policydb_t * p, avrule_t * avrules);
730 extern int avrule_read_list(policydb_t * p, avrule_t ** avrules,
Dconditional.h85 avrule_t *avtrue_list;
86 avrule_t *avfalse_list;
Dexpand.h74 avrule_t * source_rule, avtab_t * dest_avtab,
/third_party/selinux/checkpolicy/test/
Ddismod.c213 static int display_avrule(avrule_t * avrule, policydb_t * policy, in display_avrule()
622 avrule_t *avrule; in display_avdecl()
647 avrule_t *avrule = decl->avrules; in display_avdecl()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c4612 static avrule_t *__cil_init_sepol_avrule(uint32_t kind, struct cil_tree_node *node) in __cil_init_sepol_avrule()
4614 avrule_t *avrule; in __cil_init_sepol_avrule()
4620 avrule = cil_malloc(sizeof(avrule_t)); in __cil_init_sepol_avrule()
4642 static void __cil_destroy_sepol_avrules(avrule_t *curr) in __cil_destroy_sepol_avrules()
4644 avrule_t *next; in __cil_destroy_sepol_avrules()
4796 avrule_t *rule; in cil_check_neverallow()