aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 08:14:04 -0500
committerHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 08:15:19 -0500
commitdbf040d9d1cbf1ef6250bdb095c5c118950bcde8 (patch)
tree4e09682734b04601b06660e513e67ba0eb062e55 /kernel/sys.c
parent58fd3aa288939d3097fa04505b25c2f5e6e144d1 (diff)
[CVE-2009-0029] System call wrappers part 02
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'kernel/sys.c')
-rw-r--r--kernel/sys.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 37165e552331..4c33555f8d95 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -756,7 +756,7 @@ error:
756 return retval; 756 return retval;
757} 757}
758 758
759asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid) 759SYSCALL_DEFINE3(getresuid, uid_t __user *, ruid, uid_t __user *, euid, uid_t __user *, suid)
760{ 760{
761 const struct cred *cred = current_cred(); 761 const struct cred *cred = current_cred();
762 int retval; 762 int retval;
@@ -814,7 +814,7 @@ error:
814 return retval; 814 return retval;
815} 815}
816 816
817asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid) 817SYSCALL_DEFINE3(getresgid, gid_t __user *, rgid, gid_t __user *, egid, gid_t __user *, sgid)
818{ 818{
819 const struct cred *cred = current_cred(); 819 const struct cred *cred = current_cred();
820 int retval; 820 int retval;
@@ -1015,7 +1015,7 @@ out:
1015 return err; 1015 return err;
1016} 1016}
1017 1017
1018asmlinkage long sys_getpgid(pid_t pid) 1018SYSCALL_DEFINE1(getpgid, pid_t, pid)
1019{ 1019{
1020 struct task_struct *p; 1020 struct task_struct *p;
1021 struct pid *grp; 1021 struct pid *grp;
@@ -1045,14 +1045,14 @@ out:
1045 1045
1046#ifdef __ARCH_WANT_SYS_GETPGRP 1046#ifdef __ARCH_WANT_SYS_GETPGRP
1047 1047
1048asmlinkage long sys_getpgrp(void) 1048SYSCALL_DEFINE0(getpgrp)
1049{ 1049{
1050 return sys_getpgid(0); 1050 return sys_getpgid(0);
1051} 1051}
1052 1052
1053#endif 1053#endif
1054 1054
1055asmlinkage long sys_getsid(pid_t pid) 1055SYSCALL_DEFINE1(getsid, pid_t, pid)
1056{ 1056{
1057 struct task_struct *p; 1057 struct task_struct *p;
1058 struct pid *sid; 1058 struct pid *sid;