Lines Matching refs:rules
182 struct aa_perms *aa_lookup_condperms(kuid_t subj_uid, struct aa_policydb *rules, in aa_lookup_condperms() argument
185 unsigned int index = ACCEPT_TABLE(rules->dfa)[state]; in aa_lookup_condperms()
187 if (!(rules->perms)) in aa_lookup_condperms()
190 if ((ACCEPT_TABLE2(rules->dfa)[state] & ACCEPT_FLAG_OWNER)) { in aa_lookup_condperms()
192 return &(rules->perms[index]); in aa_lookup_condperms()
193 return &(rules->perms[index + 1]); in aa_lookup_condperms()
196 return &(rules->perms[index]); in aa_lookup_condperms()
226 struct aa_ruleset *rules = profile->label.rules[0]; in __aa_path_perm() local
230 ((flags & PATH_SOCK_COND) && !RULE_MEDIATES_v9NET(rules))) in __aa_path_perm()
232 aa_str_perms(rules->file, rules->file->start[AA_CLASS_FILE], in __aa_path_perm()
325 struct aa_ruleset *rules = profile->label.rules[0]; in profile_path_link() local
348 state = aa_str_perms(rules->file, in profile_path_link()
349 rules->file->start[AA_CLASS_FILE], lname, in profile_path_link()
356 state = aa_dfa_null_transition(rules->file->dfa, state); in profile_path_link()
357 aa_str_perms(rules->file, state, tname, cond, &perms); in profile_path_link()
379 aa_str_perms(rules->file, rules->file->start[AA_CLASS_FILE], in profile_path_link()