Lines Matching refs:error
99 kuid_t ouid, const char *info, int error) in aa_audit_file() argument
111 ad.error = error; in aa_audit_file()
114 if (likely(!ad.error)) { in aa_audit_file()
141 return ad.error; in aa_audit_file()
155 int error; in path_name() local
157 error = aa_path_name(path, flags, buffer, name, &info, in path_name()
159 if (error) { in path_name()
163 NULL, NULL, cond->uid, info, error)); in path_name()
164 return error; in path_name()
249 int error; in profile_path_perm() local
254 error = path_name(op, subj_cred, &profile->label, path, in profile_path_perm()
257 if (error) in profile_path_perm()
258 return error; in profile_path_perm()
283 int error; in aa_path_perm() local
290 error = fn_for_each_confined(label, profile, in aa_path_perm()
296 return error; in aa_path_perm()
331 int error; in profile_path_link() local
333 error = path_name(OP_LINK, subj_cred, &profile->label, link, in profile_path_link()
336 if (error) in profile_path_link()
340 error = path_name(OP_LINK, subj_cred, &profile->label, target, in profile_path_link()
343 if (error) in profile_path_link()
346 error = -EACCES; in profile_path_link()
398 error = 0; in profile_path_link()
403 NULL, cond->uid, info, error); in profile_path_link()
439 int error; in aa_path_link() local
444 error = -ENOMEM; in aa_path_link()
448 error = fn_for_each_confined(label, profile, in aa_path_link()
454 return error; in aa_path_link()
492 int flags, error; in __file_path_perm() local
505 error = fn_for_each_not_in_set(flabel, label, profile, in __file_path_perm()
509 if (denied && !error) { in __file_path_perm()
519 error = fn_for_each(label, profile, in __file_path_perm()
525 error = fn_for_each_not_in_set(label, flabel, profile, in __file_path_perm()
531 if (!error) in __file_path_perm()
536 return error; in __file_path_perm()
544 int error; in __file_sock_perm() local
551 error = aa_sock_file_perm(subj_cred, label, op, request, file); in __file_sock_perm()
555 last_error(error, aa_sock_file_perm(subj_cred, flabel, op, in __file_sock_perm()
558 if (!error) in __file_sock_perm()
561 return error; in __file_sock_perm()
611 int error = 0; in aa_file_perm() local
642 error = __file_path_perm(op, subj_cred, label, flabel, file, in aa_file_perm()
646 error = __file_sock_perm(op, subj_cred, label, flabel, file, in aa_file_perm()
651 return error; in aa_file_perm()