aboutsummaryrefslogtreecommitdiffstats
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
parent58fd3aa288939d3097fa04505b25c2f5e6e144d1 (diff)
[CVE-2009-0029] System call wrappers part 02
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
-rw-r--r--kernel/sys.c10
-rw-r--r--kernel/timer.c10
2 files changed, 10 insertions, 10 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;
diff --git a/kernel/timer.c b/kernel/timer.c
index 76041df06c57..14a51530a4cd 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1163,7 +1163,7 @@ SYSCALL_DEFINE0(getpid)
1163 * value of ->real_parent under rcu_read_lock(), see 1163 * value of ->real_parent under rcu_read_lock(), see
1164 * release_task()->call_rcu(delayed_put_task_struct). 1164 * release_task()->call_rcu(delayed_put_task_struct).
1165 */ 1165 */
1166asmlinkage long sys_getppid(void) 1166SYSCALL_DEFINE0(getppid)
1167{ 1167{
1168 int pid; 1168 int pid;
1169 1169
@@ -1174,25 +1174,25 @@ asmlinkage long sys_getppid(void)
1174 return pid; 1174 return pid;
1175} 1175}
1176 1176
1177asmlinkage long sys_getuid(void) 1177SYSCALL_DEFINE0(getuid)
1178{ 1178{
1179 /* Only we change this so SMP safe */ 1179 /* Only we change this so SMP safe */
1180 return current_uid(); 1180 return current_uid();
1181} 1181}
1182 1182
1183asmlinkage long sys_geteuid(void) 1183SYSCALL_DEFINE0(geteuid)
1184{ 1184{
1185 /* Only we change this so SMP safe */ 1185 /* Only we change this so SMP safe */
1186 return current_euid(); 1186 return current_euid();
1187} 1187}
1188 1188
1189asmlinkage long sys_getgid(void) 1189SYSCALL_DEFINE0(getgid)
1190{ 1190{
1191 /* Only we change this so SMP safe */ 1191 /* Only we change this so SMP safe */
1192 return current_gid(); 1192 return current_gid();
1193} 1193}
1194 1194
1195asmlinkage long sys_getegid(void) 1195SYSCALL_DEFINE0(getegid)
1196{ 1196{
1197 /* Only we change this so SMP safe */ 1197 /* Only we change this so SMP safe */
1198 return current_egid(); 1198 return current_egid();