Lines Matching refs:profile

101 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms,  in aa_audit_file()  argument
122 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file()
141 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file()
142 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file()
150 return aa_audit(type, profile, &sa, file_audit_cb); in aa_audit_file()
170 struct aa_profile *profile; in path_name() local
177 fn_for_each_confined(label, profile, in path_name()
178 aa_audit_file(profile, &nullperms, op, request, *name, in path_name()
277 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm() argument
283 if (profile_unconfined(profile)) in __aa_path_perm()
285 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm()
288 return aa_audit_file(profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
293 static int profile_path_perm(const char *op, struct aa_profile *profile, in profile_path_perm() argument
301 if (profile_unconfined(profile)) in profile_path_perm()
304 error = path_name(op, &profile->label, path, in profile_path_perm()
305 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
309 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
329 struct aa_profile *profile; in aa_path_perm() local
336 error = fn_for_each_confined(label, profile, in aa_path_perm()
337 profile_path_perm(op, profile, path, buffer, request, in aa_path_perm()
365 static int profile_path_link(struct aa_profile *profile, in profile_path_link() argument
377 error = path_name(OP_LINK, &profile->label, link, profile->path_flags, in profile_path_link()
383 error = path_name(OP_LINK, &profile->label, target, profile->path_flags, in profile_path_link()
390 state = aa_str_perms(profile->file.dfa, profile->file.start, lname, in profile_path_link()
397 state = aa_dfa_null_transition(profile->file.dfa, state); in profile_path_link()
398 aa_str_perms(profile->file.dfa, state, tname, cond, &perms); in profile_path_link()
420 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link()
442 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
474 struct aa_profile *profile; in aa_path_link() local
479 error = fn_for_each_confined(label, profile, in aa_path_link()
480 profile_path_link(profile, &link, buffer, &target, in aa_path_link()
512 struct aa_profile *profile; in __file_path_perm() local
530 error = fn_for_each_not_in_set(flabel, label, profile, in __file_path_perm()
531 profile_path_perm(op, profile, &file->f_path, buffer, in __file_path_perm()
543 error = fn_for_each(label, profile, in __file_path_perm()
544 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()
548 error = fn_for_each_not_in_set(label, flabel, profile, in __file_path_perm()
549 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()