Lines Matching refs:profile
106 int aa_audit_file(struct aa_profile *profile, struct file_perms *perms, in aa_audit_file() argument
126 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file()
144 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file()
145 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file()
149 return COMPLAIN_MODE(profile) ? 0 : sa.aad->error; in aa_audit_file()
153 return aa_audit(type, profile, gfp, &sa, file_audit_cb); in aa_audit_file()
278 int aa_path_perm(int op, struct aa_profile *profile, struct path *path, in aa_path_perm() argument
286 flags |= profile->path_flags | (S_ISDIR(cond->mode) ? PATH_IS_DIR : 0); in aa_path_perm()
298 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, in aa_path_perm()
303 error = aa_audit_file(profile, &perms, GFP_KERNEL, op, request, name, in aa_path_perm()
348 int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry, in aa_path_link() argument
367 error = aa_path_name(&link, profile->path_flags, &buffer, &lname, in aa_path_link()
373 error = aa_path_name(&target, profile->path_flags, &buffer2, &tname, in aa_path_link()
380 state = aa_str_perms(profile->file.dfa, profile->file.start, lname, in aa_path_link()
387 state = aa_dfa_null_transition(profile->file.dfa, state); in aa_path_link()
388 aa_str_perms(profile->file.dfa, state, tname, &cond, &perms); in aa_path_link()
409 aa_str_perms(profile->file.dfa, profile->file.start, tname, &cond, in aa_path_link()
431 error = aa_audit_file(profile, &lperms, GFP_KERNEL, OP_LINK, request, in aa_path_link()
448 int aa_file_perm(int op, struct aa_profile *profile, struct file *file, in aa_file_perm() argument
456 return aa_path_perm(op, profile, &file->f_path, PATH_DELEGATE_DELETED, in aa_file_perm()