• Home
  • Raw
  • Download

Lines Matching refs:retval

288 	long niceval, retval = -ESRCH;  in SYSCALL_DEFINE2()  local
304 if (niceval > retval) in SYSCALL_DEFINE2()
305 retval = niceval; in SYSCALL_DEFINE2()
316 if (niceval > retval) in SYSCALL_DEFINE2()
317 retval = niceval; in SYSCALL_DEFINE2()
334 if (niceval > retval) in SYSCALL_DEFINE2()
335 retval = niceval; in SYSCALL_DEFINE2()
345 return retval; in SYSCALL_DEFINE2()
372 int retval; in __sys_setregid() local
388 retval = -EPERM; in __sys_setregid()
412 retval = security_task_fix_setgid(new, old, LSM_SETID_RE); in __sys_setregid()
413 if (retval < 0) in __sys_setregid()
420 return retval; in __sys_setregid()
438 int retval; in __sys_setgid() local
450 retval = -EPERM; in __sys_setgid()
458 retval = security_task_fix_setgid(new, old, LSM_SETID_ID); in __sys_setgid()
459 if (retval < 0) in __sys_setgid()
466 return retval; in __sys_setgid()
529 int retval; in __sys_setreuid() local
545 retval = -EPERM; in __sys_setreuid()
564 retval = set_user(new); in __sys_setreuid()
565 if (retval < 0) in __sys_setreuid()
573 retval = security_task_fix_setuid(new, old, LSM_SETID_RE); in __sys_setreuid()
574 if (retval < 0) in __sys_setreuid()
577 retval = set_cred_ucounts(new); in __sys_setreuid()
578 if (retval < 0) in __sys_setreuid()
586 return retval; in __sys_setreuid()
610 int retval; in __sys_setuid() local
622 retval = -EPERM; in __sys_setuid()
626 retval = set_user(new); in __sys_setuid()
627 if (retval < 0) in __sys_setuid()
636 retval = security_task_fix_setuid(new, old, LSM_SETID_ID); in __sys_setuid()
637 if (retval < 0) in __sys_setuid()
640 retval = set_cred_ucounts(new); in __sys_setuid()
641 if (retval < 0) in __sys_setuid()
649 return retval; in __sys_setuid()
667 int retval; in __sys_setresuid() local
710 retval = set_user(new); in __sys_setresuid()
711 if (retval < 0) in __sys_setresuid()
721 retval = security_task_fix_setuid(new, old, LSM_SETID_RES); in __sys_setresuid()
722 if (retval < 0) in __sys_setresuid()
725 retval = set_cred_ucounts(new); in __sys_setresuid()
726 if (retval < 0) in __sys_setresuid()
734 return retval; in __sys_setresuid()
745 int retval; in SYSCALL_DEFINE3() local
752 retval = put_user(ruid, ruidp); in SYSCALL_DEFINE3()
753 if (!retval) { in SYSCALL_DEFINE3()
754 retval = put_user(euid, euidp); in SYSCALL_DEFINE3()
755 if (!retval) in SYSCALL_DEFINE3()
758 return retval; in SYSCALL_DEFINE3()
769 int retval; in __sys_setresgid() local
815 retval = security_task_fix_setgid(new, old, LSM_SETID_RES); in __sys_setresgid()
816 if (retval < 0) in __sys_setresgid()
823 return retval; in __sys_setresgid()
834 int retval; in SYSCALL_DEFINE3() local
841 retval = put_user(rgid, rgidp); in SYSCALL_DEFINE3()
842 if (!retval) { in SYSCALL_DEFINE3()
843 retval = put_user(egid, egidp); in SYSCALL_DEFINE3()
844 if (!retval) in SYSCALL_DEFINE3()
845 retval = put_user(sgid, sgidp); in SYSCALL_DEFINE3()
848 return retval; in SYSCALL_DEFINE3()
1143 int retval; in do_getpgid() local
1149 retval = -ESRCH; in do_getpgid()
1157 retval = security_task_getpgid(p); in do_getpgid()
1158 if (retval) in do_getpgid()
1161 retval = pid_vnr(grp); in do_getpgid()
1164 return retval; in do_getpgid()
1185 int retval; in SYSCALL_DEFINE1() local
1191 retval = -ESRCH; in SYSCALL_DEFINE1()
1199 retval = security_task_getsid(p); in SYSCALL_DEFINE1()
1200 if (retval) in SYSCALL_DEFINE1()
1203 retval = pid_vnr(sid); in SYSCALL_DEFINE1()
1206 return retval; in SYSCALL_DEFINE1()
1454 int retval = 0; in do_prlimit() local
1478 retval = -EPERM; in do_prlimit()
1479 if (!retval) in do_prlimit()
1480 retval = security_task_setrlimit(tsk, resource, new_rlim); in do_prlimit()
1482 if (!retval) { in do_prlimit()
1495 if (!retval && new_rlim && resource == RLIMIT_CPU && in do_prlimit()
1510 return retval; in do_prlimit()