|
@@ -538,7 +538,7 @@ out_unlock:
|
|
|
return err;
|
|
|
}
|
|
|
|
|
|
-SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
|
|
|
+long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf)
|
|
|
{
|
|
|
int version;
|
|
|
struct ipc_namespace *ns;
|
|
@@ -581,6 +581,11 @@ SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
|
|
|
+{
|
|
|
+ return ksys_msgctl(msqid, cmd, buf);
|
|
|
+}
|
|
|
+
|
|
|
#ifdef CONFIG_COMPAT
|
|
|
|
|
|
struct compat_msqid_ds {
|
|
@@ -651,7 +656,7 @@ static int copy_compat_msqid_to_user(void __user *buf, struct msqid64_ds *in,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr)
|
|
|
+long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr)
|
|
|
{
|
|
|
struct ipc_namespace *ns;
|
|
|
int err;
|
|
@@ -692,6 +697,11 @@ COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr)
|
|
|
+{
|
|
|
+ return compat_ksys_msgctl(msqid, cmd, uptr);
|
|
|
+}
|
|
|
#endif
|
|
|
|
|
|
static int testmsg(struct msg_msg *msg, long type, int mode)
|