Lines Matching refs:error

64 	int error = 0;  in may_change_ptraced_domain()  local
76 error = aa_may_ptrace(tracerp, to_profile, PTRACE_MODE_ATTACH); in may_change_ptraced_domain()
82 return error; in may_change_ptraced_domain()
350 int error = 0; in apparmor_bprm_set_creds() local
367 error = aa_path_name(&bprm->file->f_path, profile->path_flags, &buffer, in apparmor_bprm_set_creds()
369 if (error) { in apparmor_bprm_set_creds()
372 error = 0; in apparmor_bprm_set_creds()
436 error = -ENOENT; in apparmor_bprm_set_creds()
446 error = -ENOMEM; in apparmor_bprm_set_creds()
449 error = -EACCES; in apparmor_bprm_set_creds()
455 error = -EACCES; in apparmor_bprm_set_creds()
463 error = -EPERM; in apparmor_bprm_set_creds()
476 error = may_change_ptraced_domain(new_profile); in apparmor_bprm_set_creds()
477 if (error) { in apparmor_bprm_set_creds()
514 error = aa_audit_file(profile, &perms, GFP_KERNEL, OP_EXEC, MAY_EXEC, in apparmor_bprm_set_creds()
515 name, target, cond.uid, info, error); in apparmor_bprm_set_creds()
521 return error; in apparmor_bprm_set_creds()
613 int error = 0; in aa_change_hat() local
631 error = -EPERM; in aa_change_hat()
650 error = -ECHILD; in aa_change_hat()
652 error = -ENOENT; in aa_change_hat()
674 error = -ENOMEM; in aa_change_hat()
682 error = -EPERM; in aa_change_hat()
687 error = may_change_ptraced_domain(hat); in aa_change_hat()
688 if (error) { in aa_change_hat()
690 error = -EPERM; in aa_change_hat()
695 error = aa_set_current_hat(hat, token); in aa_change_hat()
696 if (error == -EACCES) in aa_change_hat()
699 else if (name && !error) in aa_change_hat()
701 error = -ENOENT; in aa_change_hat()
708 error = aa_restore_previous_profile(token); in aa_change_hat()
716 error = aa_audit_file(profile, &perms, GFP_KERNEL, in aa_change_hat()
718 target, GLOBAL_ROOT_UID, info, error); in aa_change_hat()
725 return error; in aa_change_hat()
751 int op, error = 0; in aa_change_profile() local
787 error = -ENOENT; in aa_change_profile()
805 error = -EACCES; in aa_change_profile()
813 error = -ENOENT; in aa_change_profile()
820 error = -ENOMEM; in aa_change_profile()
826 error = may_change_ptraced_domain(target); in aa_change_profile()
827 if (error) { in aa_change_profile()
836 error = aa_set_current_onexec(target); in aa_change_profile()
838 error = aa_replace_current_profile(target); in aa_change_profile()
842 error = aa_audit_file(profile, &perms, GFP_KERNEL, op, request, in aa_change_profile()
843 name, hname, GLOBAL_ROOT_UID, info, error); in aa_change_profile()
849 return error; in aa_change_profile()