Lines Matching refs:error
90 * @error: 0 if operation allowed else failure error code
92 * Returns: %0 or error on failure
98 kuid_t ouid, const char *info, int error)
110 ad.error = error;
113 if (likely(!ad.error)) {
140 return ad.error;
167 int error;
169 error = aa_path_name(path, flags, buffer, name, &info,
171 if (error) {
175 NULL, NULL, cond->uid, info, error));
176 return error;
256 int error;
261 error = path_name(op, subj_cred, &profile->label, path,
264 if (error)
265 return error;
280 * Returns: %0 else error if access denied or other error
290 int error;
297 error = fn_for_each_confined(label, profile,
303 return error;
339 int error;
341 error = path_name(OP_LINK, subj_cred, &profile->label, link,
344 if (error)
348 error = path_name(OP_LINK, subj_cred, &profile->label, target,
351 if (error)
354 error = -EACCES;
406 error = 0;
411 NULL, cond->uid, info, error);
431 * Returns: %0 if allowed else error
445 int error;
450 error = -ENOMEM;
454 error = fn_for_each_confined(label, profile,
460 return error;
498 int flags, error;
511 error = fn_for_each_not_in_set(flabel, label, profile,
515 if (denied && !error) {
525 error = fn_for_each(label, profile,
531 error = fn_for_each_not_in_set(label, flabel, profile,
537 if (!error)
542 return error;
551 int error;
560 error = aa_sock_file_perm(subj_cred, label, op, request, sock);
564 last_error(error, aa_sock_file_perm(subj_cred, flabel, op,
567 if (!error)
570 return error;
582 * Returns: %0 if access allowed else error
591 int error = 0;
621 error = __file_path_perm(op, subj_cred, label, flabel, file,
625 error = __file_sock_perm(op, subj_cred, label, flabel, file,
630 return error;