Lines Matching refs:profile

92 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms,  in aa_audit_file()  argument
113 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file()
132 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file()
133 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file()
141 return aa_audit(type, profile, &sa, file_audit_cb); in aa_audit_file()
161 struct aa_profile *profile; in path_name() local
168 fn_for_each_confined(label, profile, in path_name()
169 aa_audit_file(profile, &nullperms, op, request, *name, in path_name()
268 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm() argument
274 if (profile_unconfined(profile)) in __aa_path_perm()
276 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm()
279 return aa_audit_file(profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
284 static int profile_path_perm(const char *op, struct aa_profile *profile, in profile_path_perm() argument
292 if (profile_unconfined(profile)) in profile_path_perm()
295 error = path_name(op, &profile->label, path, in profile_path_perm()
296 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
300 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
320 struct aa_profile *profile; in aa_path_perm() local
329 error = fn_for_each_confined(label, profile, in aa_path_perm()
330 profile_path_perm(op, profile, path, buffer, request, in aa_path_perm()
358 static int profile_path_link(struct aa_profile *profile, in profile_path_link() argument
370 error = path_name(OP_LINK, &profile->label, link, profile->path_flags, in profile_path_link()
376 error = path_name(OP_LINK, &profile->label, target, profile->path_flags, in profile_path_link()
383 state = aa_str_perms(profile->file.dfa, profile->file.start, lname, in profile_path_link()
390 state = aa_dfa_null_transition(profile->file.dfa, state); in profile_path_link()
391 aa_str_perms(profile->file.dfa, state, tname, cond, &perms); in profile_path_link()
413 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link()
435 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
467 struct aa_profile *profile; in aa_path_link() local
477 error = fn_for_each_confined(label, profile, in aa_path_link()
478 profile_path_link(profile, &link, buffer, &target, in aa_path_link()
511 struct aa_profile *profile; in __file_path_perm() local
531 error = fn_for_each_not_in_set(flabel, label, profile, in __file_path_perm()
532 profile_path_perm(op, profile, &file->f_path, buffer, in __file_path_perm()
544 error = fn_for_each(label, profile, in __file_path_perm()
545 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()
549 error = fn_for_each_not_in_set(label, flabel, profile, in __file_path_perm()
550 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()