Lines Matching refs:error
126 * @error: 0 if operation allowed else failure error code
128 * Returns: %0 or error on failure
134 struct aa_perms *perms, const char *info, int error)
139 if (likely(!error)) {
165 return error;
176 aad(&sa)->error = error;
312 * @devinfo: error str if (IS_ERR(@devname))
314 * Returns: 0 on success else error
324 int pos, error;
333 error = aa_path_name(mntpath, path_flags(profile, mntpath), buffer,
335 if (error)
338 error = PTR_ERR(devname);
344 error = -EACCES;
352 error = 0;
356 flags, data, AA_MAY_MOUNT, &perms, info, error);
371 * Returns: 0 on success else error
379 int error = -EACCES;
388 error = aa_path_name(devpath, path_flags(profile, devpath),
391 if (error)
392 devname = ERR_PTR(error);
405 int error;
415 error = fn_for_each_confined(label, profile,
420 return error;
429 int error;
439 error = kern_path(dev_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path);
440 if (error)
441 return error;
445 error = -ENOMEM;
449 error = fn_for_each_confined(label, profile,
457 return error;
465 int error;
477 error = fn_for_each_confined(label, profile,
482 return error;
491 int error;
499 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path);
500 if (error)
501 return error;
505 error = -ENOMEM;
508 error = fn_for_each_confined(label, profile,
516 return error;
526 int error;
547 error = kern_path(dev_name, LOOKUP_FOLLOW, &tmp_path);
548 if (error)
549 return error;
556 error = -ENOMEM;
562 error = -ENOMEM;
565 error = fn_for_each_confined(label, profile,
569 error = fn_for_each_confined(label, profile,
580 return error;
589 int error;
597 error = aa_path_name(path, path_flags(profile, path), buffer, &name,
599 if (error)
607 error = -EACCES;
611 AA_MAY_UMOUNT, &perms, info, error);
618 int error;
628 error = fn_for_each_confined(label, profile,
632 return error;
649 int error;
659 error = aa_path_name(old_path, path_flags(profile, old_path),
662 if (error)
664 error = aa_path_name(new_path, path_flags(profile, new_path),
667 if (error)
670 error = -EACCES;
679 error = 0;
682 error = audit_mount(profile, OP_PIVOTROOT, new_name, old_name,
684 &perms, info, error);
685 if (error)
686 return ERR_PTR(error);
697 int error;
705 error = -ENOMEM;
713 error = -ENOMEM;
716 error = aa_replace_current_label(target);
717 if (error) {
724 /* already audited error */
725 error = PTR_ERR(target);
730 return error;
734 error = fn_for_each(label, profile,
739 error));