diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-01-14 08:14:27 -0500 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-01-14 08:15:28 -0500 |
commit | d5460c9974a321a194aded4a8c4daaac68ea8171 (patch) | |
tree | 26c70e33e9c8ca61a8d2d88422a9672200501754 /ipc/sem.c | |
parent | e48fbb699f82ef1e80bd7126046394d2dc9ca7e6 (diff) |
[CVE-2009-0029] System call wrappers part 25
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'ipc/sem.c')
-rw-r--r-- | ipc/sem.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -308,7 +308,7 @@ static inline int sem_more_checks(struct kern_ipc_perm *ipcp, | |||
308 | return 0; | 308 | return 0; |
309 | } | 309 | } |
310 | 310 | ||
311 | asmlinkage long sys_semget(key_t key, int nsems, int semflg) | 311 | SYSCALL_DEFINE3(semget, key_t, key, int, nsems, int, semflg) |
312 | { | 312 | { |
313 | struct ipc_namespace *ns; | 313 | struct ipc_namespace *ns; |
314 | struct ipc_ops sem_ops; | 314 | struct ipc_ops sem_ops; |
@@ -1055,8 +1055,8 @@ out: | |||
1055 | return un; | 1055 | return un; |
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops, | 1058 | SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsops, |
1059 | unsigned nsops, const struct timespec __user *timeout) | 1059 | unsigned, nsops, const struct timespec __user *, timeout) |
1060 | { | 1060 | { |
1061 | int error = -EINVAL; | 1061 | int error = -EINVAL; |
1062 | struct sem_array *sma; | 1062 | struct sem_array *sma; |
@@ -1232,7 +1232,8 @@ out_free: | |||
1232 | return error; | 1232 | return error; |
1233 | } | 1233 | } |
1234 | 1234 | ||
1235 | asmlinkage long sys_semop (int semid, struct sembuf __user *tsops, unsigned nsops) | 1235 | SYSCALL_DEFINE3(semop, int, semid, struct sembuf __user *, tsops, |
1236 | unsigned, nsops) | ||
1236 | { | 1237 | { |
1237 | return sys_semtimedop(semid, tsops, nsops, NULL); | 1238 | return sys_semtimedop(semid, tsops, nsops, NULL); |
1238 | } | 1239 | } |