Lines Matching defs:policydb
2 #include <sepol/policydb/policydb.h>
3 #include <sepol/policydb/util.h>
12 void display_allow(policydb_t *policydb, avtab_key_t *key, int idx, uint32_t perms)
15 policydb->p_type_val_to_name[key->source_type
18 policydb->p_type_val_to_name[key->target_type
20 policydb->p_class_val_to_name[key->target_class - 1],
22 (policydb, key->target_class, perms));
25 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf)
53 if (policydb_init(policydb)) {
54 fprintf(stderr, "Could not initialize policydb!\n");
59 ret = policydb_read(policydb, pf, 0);