Lines Matching refs:error
134 struct aa_perms *perms, const char *info, int error) in audit_mount() argument
139 if (likely(!error)) { in audit_mount()
165 return error; in audit_mount()
176 aad(&sa)->error = error; in audit_mount()
323 int pos, error; in match_mnt_path_str() local
332 error = aa_path_name(mntpath, path_flags(profile, mntpath), buffer, in match_mnt_path_str()
334 if (error) in match_mnt_path_str()
337 error = PTR_ERR(devname); in match_mnt_path_str()
343 error = -EACCES; in match_mnt_path_str()
351 error = 0; in match_mnt_path_str()
355 flags, data, AA_MAY_MOUNT, &perms, info, error); in match_mnt_path_str()
378 int error = -EACCES; in match_mnt() local
387 error = aa_path_name(devpath, path_flags(profile, devpath), in match_mnt()
390 if (error) in match_mnt()
391 devname = ERR_PTR(error); in match_mnt()
404 int error; in aa_remount() local
412 error = fn_for_each_confined(label, profile, in aa_remount()
417 return error; in aa_remount()
426 int error; in aa_bind_mount() local
436 error = kern_path(dev_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); in aa_bind_mount()
437 if (error) in aa_bind_mount()
438 return error; in aa_bind_mount()
441 error = fn_for_each_confined(label, profile, in aa_bind_mount()
447 return error; in aa_bind_mount()
455 int error; in aa_mount_change_type() local
465 error = fn_for_each_confined(label, profile, in aa_mount_change_type()
470 return error; in aa_mount_change_type()
479 int error; in aa_move_mount() local
487 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); in aa_move_mount()
488 if (error) in aa_move_mount()
489 return error; in aa_move_mount()
492 error = fn_for_each_confined(label, profile, in aa_move_mount()
498 return error; in aa_move_mount()
508 int error; in aa_new_mount() local
529 error = kern_path(dev_name, LOOKUP_FOLLOW, &tmp_path); in aa_new_mount()
530 if (error) in aa_new_mount()
531 return error; in aa_new_mount()
538 error = fn_for_each_confined(label, profile, in aa_new_mount()
542 error = fn_for_each_confined(label, profile, in aa_new_mount()
550 return error; in aa_new_mount()
559 int error; in profile_umount() local
567 error = aa_path_name(path, path_flags(profile, path), buffer, &name, in profile_umount()
569 if (error) in profile_umount()
577 error = -EACCES; in profile_umount()
581 AA_MAY_UMOUNT, &perms, info, error); in profile_umount()
588 int error; in aa_umount() local
595 error = fn_for_each_confined(label, profile, in aa_umount()
599 return error; in aa_umount()
616 int error; in build_pivotroot() local
626 error = aa_path_name(old_path, path_flags(profile, old_path), in build_pivotroot()
629 if (error) in build_pivotroot()
631 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot()
634 if (error) in build_pivotroot()
637 error = -EACCES; in build_pivotroot()
646 error = 0; in build_pivotroot()
649 error = audit_mount(profile, OP_PIVOTROOT, new_name, old_name, in build_pivotroot()
651 &perms, info, error); in build_pivotroot()
652 if (error) in build_pivotroot()
653 return ERR_PTR(error); in build_pivotroot()
664 int error; in aa_pivotroot() local
676 error = -ENOMEM; in aa_pivotroot()
679 error = aa_replace_current_label(target); in aa_pivotroot()
680 if (error) { in aa_pivotroot()
687 error = PTR_ERR(target); in aa_pivotroot()
691 return error; in aa_pivotroot()
695 error = fn_for_each(label, profile, in aa_pivotroot()
700 error)); in aa_pivotroot()