diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-01-14 08:14:21 -0500 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-01-14 08:15:26 -0500 |
commit | 003d7ab479168132a2b2c6700fe682b08f08ab0c (patch) | |
tree | e9f51f17949cabab6324ee1415a55e350334c841 /kernel/uid16.c | |
parent | a6b42e83f249aad723589b2bdf6d1dfb2b0997c8 (diff) |
[CVE-2009-0029] System call wrappers part 19
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'kernel/uid16.c')
-rw-r--r-- | kernel/uid16.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/uid16.c b/kernel/uid16.c index 221894e6e980..0314501688b9 100644 --- a/kernel/uid16.c +++ b/kernel/uid16.c | |||
@@ -162,7 +162,7 @@ static int groups16_from_user(struct group_info *group_info, | |||
162 | return 0; | 162 | return 0; |
163 | } | 163 | } |
164 | 164 | ||
165 | asmlinkage long sys_getgroups16(int gidsetsize, old_gid_t __user *grouplist) | 165 | SYSCALL_DEFINE2(getgroups16, int, gidsetsize, old_gid_t __user *, grouplist) |
166 | { | 166 | { |
167 | const struct cred *cred = current_cred(); | 167 | const struct cred *cred = current_cred(); |
168 | int i; | 168 | int i; |
@@ -185,7 +185,7 @@ out: | |||
185 | return i; | 185 | return i; |
186 | } | 186 | } |
187 | 187 | ||
188 | asmlinkage long sys_setgroups16(int gidsetsize, old_gid_t __user *grouplist) | 188 | SYSCALL_DEFINE2(setgroups16, int, gidsetsize, old_gid_t __user *, grouplist) |
189 | { | 189 | { |
190 | struct group_info *group_info; | 190 | struct group_info *group_info; |
191 | int retval; | 191 | int retval; |
@@ -210,22 +210,22 @@ asmlinkage long sys_setgroups16(int gidsetsize, old_gid_t __user *grouplist) | |||
210 | return retval; | 210 | return retval; |
211 | } | 211 | } |
212 | 212 | ||
213 | asmlinkage long sys_getuid16(void) | 213 | SYSCALL_DEFINE0(getuid16) |
214 | { | 214 | { |
215 | return high2lowuid(current_uid()); | 215 | return high2lowuid(current_uid()); |
216 | } | 216 | } |
217 | 217 | ||
218 | asmlinkage long sys_geteuid16(void) | 218 | SYSCALL_DEFINE0(geteuid16) |
219 | { | 219 | { |
220 | return high2lowuid(current_euid()); | 220 | return high2lowuid(current_euid()); |
221 | } | 221 | } |
222 | 222 | ||
223 | asmlinkage long sys_getgid16(void) | 223 | SYSCALL_DEFINE0(getgid16) |
224 | { | 224 | { |
225 | return high2lowgid(current_gid()); | 225 | return high2lowgid(current_gid()); |
226 | } | 226 | } |
227 | 227 | ||
228 | asmlinkage long sys_getegid16(void) | 228 | SYSCALL_DEFINE0(getegid16) |
229 | { | 229 | { |
230 | return high2lowgid(current_egid()); | 230 | return high2lowgid(current_egid()); |
231 | } | 231 | } |