Lines Matching refs:policy
66 perm_datum_t *perm, policydb_t *policy, avtab_t *avtab) { in expand_and_check() argument
77 if (expand_avtab(policy, avtab, &exp_avtab)) { in expand_and_check()
116 int check_rule(char *s, char *t, char *c, char *p, policydb_t *policy) { in check_rule() argument
131 src = hashtab_search(policy->p_types.table, s); in check_rule()
138 tgt = hashtab_search(policy->p_types.table, t); in check_rule()
145 cls = hashtab_search(policy->p_classes.table, c); in check_rule()
177 perm, policy, &policy->te_avtab); in check_rule()
185 perm, policy, &policy->te_cond_avtab); in check_rule()
235 char *policy = NULL, *source = NULL, *target = NULL, *class = NULL, *perm = NULL; in main() local
266 policy = optarg; in main()
273 if (!source || !target || !class || !perm || !policy) in main()
279 if (load_policy(policy, &policydb, &pf)) in main()