Searched refs:pol (Results 1 – 6 of 6) sorted by relevance
/security/safesetid/ |
D | securityfs.c | 62 struct setuid_ruleset *pol = in __release_ruleset() local 68 hash_for_each_safe(pol->rules, bucket, tmp, rule, next) in __release_ruleset() 70 kfree(pol->policy_str); in __release_ruleset() 71 kfree(pol); in __release_ruleset() 74 static void release_ruleset(struct setuid_ruleset *pol) in release_ruleset() argument 76 call_rcu(&pol->rcu, __release_ruleset); in release_ruleset() 79 static void insert_rule(struct setuid_ruleset *pol, struct setuid_rule *rule) in insert_rule() argument 81 hash_add(pol->rules, &rule->next, __kuid_val(rule->src_uid)); in insert_rule() 84 static int verify_ruleset(struct setuid_ruleset *pol) in verify_ruleset() argument 90 hash_for_each(pol->rules, bucket, rule, next) { in verify_ruleset() [all …]
|
D | lsm.c | 53 struct setuid_ruleset *pol; in setuid_policy_lookup() local 56 pol = rcu_dereference(safesetid_setuid_rules); in setuid_policy_lookup() 57 if (pol) in setuid_policy_lookup() 58 result = _setuid_policy_lookup(pol, src, dst); in setuid_policy_lookup()
|
/security/selinux/ss/ |
D | avtab.h | 97 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, 102 int avtab_read(struct avtab *a, void *fp, struct policydb *pol);
|
D | avtab.c | 387 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item() argument 394 u32 items, items2, val, vers = pol->policyvers; in avtab_read_item() 490 if (!policydb_type_isvalid(pol, key.source_type) || in avtab_read_item() 491 !policydb_type_isvalid(pol, key.target_type) || in avtab_read_item() 492 !policydb_class_isvalid(pol, key.target_class)) { in avtab_read_item() 542 !policydb_type_isvalid(pol, datum.u.data)) { in avtab_read_item() 555 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read() argument 579 rc = avtab_read_item(a, fp, pol, avtab_insertf, NULL); in avtab_read()
|
D | mls.c | 234 int mls_context_to_sid(struct policydb *pol, in mls_context_to_sid() argument 247 if (!pol->mls_enabled) { in mls_context_to_sid() 296 levdatum = hashtab_search(pol->p_levels.table, sensitivity); in mls_context_to_sid() 315 catdatum = hashtab_search(pol->p_cats.table, cur_cat); in mls_context_to_sid() 328 rngdatum = hashtab_search(pol->p_cats.table, rngptr); in mls_context_to_sid()
|
D | services.c | 101 static int selinux_set_mapping(struct policydb *pol, in selinux_set_mapping() argument 133 p_out->value = string_to_security_class(pol, p_in->name); in selinux_set_mapping() 137 if (pol->reject_unknown) in selinux_set_mapping() 151 p_out->perms[k] = string_to_av_perm(pol, p_out->value, in selinux_set_mapping() 156 if (pol->reject_unknown) in selinux_set_mapping() 168 pol->allow_unknown ? "allowed" : "denied"); in selinux_set_mapping() 1391 static int string_to_context_struct(struct policydb *pol, in string_to_context_struct() argument 1420 usrdatum = hashtab_search(pol->p_users.table, scontextp); in string_to_context_struct() 1436 role = hashtab_search(pol->p_roles.table, scontextp); in string_to_context_struct() 1448 typdatum = hashtab_search(pol->p_types.table, scontextp); in string_to_context_struct() [all …]
|