Lines Matching refs:rules
187 struct aa_perms *aa_lookup_condperms(kuid_t subj_uid, struct aa_policydb *rules, in aa_lookup_condperms() argument
190 unsigned int index = ACCEPT_TABLE(rules->dfa)[state]; in aa_lookup_condperms()
192 if (!(rules->perms)) in aa_lookup_condperms()
195 if ((ACCEPT_TABLE2(rules->dfa)[state] & ACCEPT_FLAG_OWNER)) { in aa_lookup_condperms()
197 return &(rules->perms[index]); in aa_lookup_condperms()
198 return &(rules->perms[index + 1]); in aa_lookup_condperms()
201 return &(rules->perms[index]); in aa_lookup_condperms()
231 struct aa_ruleset *rules = profile->label.rules[0]; in __aa_path_perm() local
235 ((flags & PATH_SOCK_COND) && !RULE_MEDIATES_v9NET(rules))) in __aa_path_perm()
237 aa_str_perms(rules->file, rules->file->start[AA_CLASS_FILE], in __aa_path_perm()
330 struct aa_ruleset *rules = profile->label.rules[0]; in profile_path_link() local
353 state = aa_str_perms(rules->file, in profile_path_link()
354 rules->file->start[AA_CLASS_FILE], lname, in profile_path_link()
361 state = aa_dfa_null_transition(rules->file->dfa, state); in profile_path_link()
362 aa_str_perms(rules->file, state, tname, cond, &perms); in profile_path_link()
384 aa_str_perms(rules->file, rules->file->start[AA_CLASS_FILE], in profile_path_link()