• Home
  • Raw
  • Download

Lines Matching refs:retval

287 	long niceval, retval = -ESRCH;  in SYSCALL_DEFINE2()  local
304 if (niceval > retval) in SYSCALL_DEFINE2()
305 retval = niceval; in SYSCALL_DEFINE2()
315 if (niceval > retval) in SYSCALL_DEFINE2()
316 retval = niceval; in SYSCALL_DEFINE2()
332 if (niceval > retval) in SYSCALL_DEFINE2()
333 retval = niceval; in SYSCALL_DEFINE2()
344 return retval; in SYSCALL_DEFINE2()
371 int retval; in __sys_setregid() local
387 retval = -EPERM; in __sys_setregid()
411 retval = security_task_fix_setgid(new, old, LSM_SETID_RE); in __sys_setregid()
412 if (retval < 0) in __sys_setregid()
419 return retval; in __sys_setregid()
437 int retval; in __sys_setgid() local
449 retval = -EPERM; in __sys_setgid()
457 retval = security_task_fix_setgid(new, old, LSM_SETID_ID); in __sys_setgid()
458 if (retval < 0) in __sys_setgid()
465 return retval; in __sys_setgid()
528 int retval; in __sys_setreuid() local
544 retval = -EPERM; in __sys_setreuid()
563 retval = set_user(new); in __sys_setreuid()
564 if (retval < 0) in __sys_setreuid()
572 retval = security_task_fix_setuid(new, old, LSM_SETID_RE); in __sys_setreuid()
573 if (retval < 0) in __sys_setreuid()
576 retval = set_cred_ucounts(new); in __sys_setreuid()
577 if (retval < 0) in __sys_setreuid()
585 return retval; in __sys_setreuid()
609 int retval; in __sys_setuid() local
621 retval = -EPERM; in __sys_setuid()
625 retval = set_user(new); in __sys_setuid()
626 if (retval < 0) in __sys_setuid()
635 retval = security_task_fix_setuid(new, old, LSM_SETID_ID); in __sys_setuid()
636 if (retval < 0) in __sys_setuid()
639 retval = set_cred_ucounts(new); in __sys_setuid()
640 if (retval < 0) in __sys_setuid()
648 return retval; in __sys_setuid()
666 int retval; in __sys_setresuid() local
709 retval = set_user(new); in __sys_setresuid()
710 if (retval < 0) in __sys_setresuid()
720 retval = security_task_fix_setuid(new, old, LSM_SETID_RES); in __sys_setresuid()
721 if (retval < 0) in __sys_setresuid()
724 retval = set_cred_ucounts(new); in __sys_setresuid()
725 if (retval < 0) in __sys_setresuid()
733 return retval; in __sys_setresuid()
744 int retval; in SYSCALL_DEFINE3() local
751 retval = put_user(ruid, ruidp); in SYSCALL_DEFINE3()
752 if (!retval) { in SYSCALL_DEFINE3()
753 retval = put_user(euid, euidp); in SYSCALL_DEFINE3()
754 if (!retval) in SYSCALL_DEFINE3()
757 return retval; in SYSCALL_DEFINE3()
768 int retval; in __sys_setresgid() local
814 retval = security_task_fix_setgid(new, old, LSM_SETID_RES); in __sys_setresgid()
815 if (retval < 0) in __sys_setresgid()
822 return retval; in __sys_setresgid()
833 int retval; in SYSCALL_DEFINE3() local
840 retval = put_user(rgid, rgidp); in SYSCALL_DEFINE3()
841 if (!retval) { in SYSCALL_DEFINE3()
842 retval = put_user(egid, egidp); in SYSCALL_DEFINE3()
843 if (!retval) in SYSCALL_DEFINE3()
844 retval = put_user(sgid, sgidp); in SYSCALL_DEFINE3()
847 return retval; in SYSCALL_DEFINE3()
1142 int retval; in do_getpgid() local
1148 retval = -ESRCH; in do_getpgid()
1156 retval = security_task_getpgid(p); in do_getpgid()
1157 if (retval) in do_getpgid()
1160 retval = pid_vnr(grp); in do_getpgid()
1163 return retval; in do_getpgid()
1184 int retval; in SYSCALL_DEFINE1() local
1190 retval = -ESRCH; in SYSCALL_DEFINE1()
1198 retval = security_task_getsid(p); in SYSCALL_DEFINE1()
1199 if (retval) in SYSCALL_DEFINE1()
1202 retval = pid_vnr(sid); in SYSCALL_DEFINE1()
1205 return retval; in SYSCALL_DEFINE1()
1594 int retval = 0; in do_prlimit() local
1611 retval = -ESRCH; in do_prlimit()
1622 retval = -EPERM; in do_prlimit()
1623 if (!retval) in do_prlimit()
1624 retval = security_task_setrlimit(tsk, resource, new_rlim); in do_prlimit()
1626 if (!retval) { in do_prlimit()
1639 if (!retval && new_rlim && resource == RLIMIT_CPU && in do_prlimit()
1645 return retval; in do_prlimit()