Lines Matching refs:error

86  * @error: 0 if operation allowed else failure error code
88 * Returns: %0 or error on failure
93 kuid_t ouid, const char *info, int error)
105 aad(&sa)->error = error;
108 if (likely(!aad(&sa)->error)) {
135 return aad(&sa)->error;
161 int error;
163 error = aa_path_name(path, flags, buffer, name, &info,
165 if (error) {
168 NULL, NULL, cond->uid, info, error));
169 return error;
288 int error;
293 error = path_name(op, &profile->label, path,
296 if (error)
297 return error;
311 * Returns: %0 else error if access denied or other error
320 int error;
327 error = fn_for_each_confined(label, profile,
333 return error;
366 int error;
368 error = path_name(OP_LINK, &profile->label, link, profile->path_flags,
370 if (error)
374 error = path_name(OP_LINK, &profile->label, target, profile->path_flags,
376 if (error)
379 error = -EACCES;
430 error = 0;
434 NULL, cond->uid, info, error);
453 * Returns: %0 if allowed else error
466 int error;
471 error = -ENOMEM;
475 error = fn_for_each_confined(label, profile,
481 return error;
516 int flags, error;
529 error = fn_for_each_not_in_set(flabel, label, profile,
532 if (denied && !error) {
542 error = fn_for_each(label, profile,
547 error = fn_for_each_not_in_set(label, flabel, profile,
552 if (!error)
557 return error;
565 int error;
574 error = aa_sock_file_perm(label, op, request, sock);
578 last_error(error, aa_sock_file_perm(flabel, op, request, sock));
580 if (!error)
583 return error;
594 * Returns: %0 if access allowed else error
602 int error = 0;
632 error = __file_path_perm(op, label, flabel, file, request,
636 error = __file_sock_perm(op, label, flabel, file, request,
641 return error;