• Home
  • Raw
  • Download

Lines Matching refs:profile

90 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms,  in aa_audit_file()  argument
111 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file()
130 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file()
131 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file()
139 return aa_audit(type, profile, &sa, file_audit_cb); in aa_audit_file()
159 struct aa_profile *profile; in path_name() local
166 fn_for_each_confined(label, profile, in path_name()
167 aa_audit_file(profile, &nullperms, op, request, *name, in path_name()
266 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm() argument
272 if (profile_unconfined(profile)) in __aa_path_perm()
274 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm()
277 return aa_audit_file(profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
282 static int profile_path_perm(const char *op, struct aa_profile *profile, in profile_path_perm() argument
290 if (profile_unconfined(profile)) in profile_path_perm()
293 error = path_name(op, &profile->label, path, in profile_path_perm()
294 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
298 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
318 struct aa_profile *profile; in aa_path_perm() local
327 error = fn_for_each_confined(label, profile, in aa_path_perm()
328 profile_path_perm(op, profile, path, buffer, request, in aa_path_perm()
356 static int profile_path_link(struct aa_profile *profile, in profile_path_link() argument
368 error = path_name(OP_LINK, &profile->label, link, profile->path_flags, in profile_path_link()
374 error = path_name(OP_LINK, &profile->label, target, profile->path_flags, in profile_path_link()
381 state = aa_str_perms(profile->file.dfa, profile->file.start, lname, in profile_path_link()
388 state = aa_dfa_null_transition(profile->file.dfa, state); in profile_path_link()
389 aa_str_perms(profile->file.dfa, state, tname, cond, &perms); in profile_path_link()
411 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link()
433 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
465 struct aa_profile *profile; in aa_path_link() local
475 error = fn_for_each_confined(label, profile, in aa_path_link()
476 profile_path_link(profile, &link, buffer, &target, in aa_path_link()
509 struct aa_profile *profile; in __file_path_perm() local
529 error = fn_for_each_not_in_set(flabel, label, profile, in __file_path_perm()
530 profile_path_perm(op, profile, &file->f_path, buffer, in __file_path_perm()
542 error = fn_for_each(label, profile, in __file_path_perm()
543 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()
547 error = fn_for_each_not_in_set(label, flabel, profile, in __file_path_perm()
548 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()