Lines Matching defs:error
130 * @error: 0 if operation allowed else failure error code
132 * Returns: %0 or error on failure
139 struct aa_perms *perms, const char *info, int error)
144 if (likely(!error)) {
170 return error;
182 ad.error = error;
301 * @devinfo: error str if (IS_ERR(@devname))
303 * Returns: 0 on success else error
315 int pos, error;
324 error = aa_path_name(mntpath, path_flags(profile, mntpath), buffer,
326 if (error)
329 error = PTR_ERR(devname);
335 error = -EACCES;
343 error = 0;
348 flags, data, AA_MAY_MOUNT, &perms, info, error);
364 * Returns: 0 on success else error
374 int error = -EACCES;
383 error = aa_path_name(devpath, path_flags(profile, devpath),
386 if (error)
387 devname = ERR_PTR(error);
401 int error;
411 error = fn_for_each_confined(label, profile,
417 return error;
427 int error;
437 error = kern_path(dev_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path);
438 if (error)
439 return error;
443 error = -ENOMEM;
447 error = fn_for_each_confined(label, profile,
455 return error;
464 int error;
476 error = fn_for_each_confined(label, profile,
482 return error;
491 int error;
499 error = -ENOMEM;
506 error = fn_for_each_confined(label, profile,
514 return error;
521 int error;
525 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path);
526 if (error)
527 return error;
529 error = aa_move_mount(subj_cred, label, &old_path, path);
532 return error;
542 int error;
563 error = kern_path(dev_name, LOOKUP_FOLLOW, &tmp_path);
564 if (error)
565 return error;
572 error = -ENOMEM;
578 error = -ENOMEM;
581 error = fn_for_each_confined(label, profile,
586 error = fn_for_each_confined(label, profile,
598 return error;
609 int error;
617 error = aa_path_name(path, path_flags(profile, path), buffer, &name,
619 if (error)
627 error = -EACCES;
632 AA_MAY_UMOUNT, &perms, info, error);
640 int error;
650 error = fn_for_each_confined(label, profile,
654 return error;
673 int error;
683 error = aa_path_name(old_path, path_flags(profile, old_path),
686 if (error)
688 error = aa_path_name(new_path, path_flags(profile, new_path),
691 if (error)
694 error = -EACCES;
703 error = 0;
706 error = audit_mount(subj_cred, profile, OP_PIVOTROOT, new_name,
709 &perms, info, error);
710 if (error)
711 return ERR_PTR(error);
723 int error;
731 error = -ENOMEM;
740 error = aa_replace_current_label(target);
741 if (error)
745 /* already audited error */
746 error = PTR_ERR(target);
751 return error;
755 error = fn_for_each(label, profile,
761 error));