aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/sem.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 08:14:27 -0500
committerHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 08:15:28 -0500
commitd5460c9974a321a194aded4a8c4daaac68ea8171 (patch)
tree26c70e33e9c8ca61a8d2d88422a9672200501754 /ipc/sem.c
parente48fbb699f82ef1e80bd7126046394d2dc9ca7e6 (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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index c385c40c061c..16a2189e96f9 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -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
311asmlinkage long sys_semget(key_t key, int nsems, int semflg) 311SYSCALL_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
1058asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops, 1058SYSCALL_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
1235asmlinkage long sys_semop (int semid, struct sembuf __user *tsops, unsigned nsops) 1235SYSCALL_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}