From 3ac88a41ff747b8c2f290f86b5243b2f8fce2cc0 Mon Sep 17 00:00:00 2001 From: Kirill Korotaev Date: Thu, 18 Oct 2007 23:40:56 -0700 Subject: virtualization of sysv msg queues is incomplete Virtualization of sysv msg queues is incomplete: msg_hdrs and msg_bytes variables visible from userspace are global. Let's make them per-namespace. Signed-off-by: Alexey Kuznetsov Signed-off-by: Kirill Korotaev Cc: Pierre Peiffer Cc: Nadia Derbey Cc: Serge Hallyn Acked-by: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/ipc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/ipc.h b/include/linux/ipc.h index 96988d1460da..408696ea5189 100644 --- a/include/linux/ipc.h +++ b/include/linux/ipc.h @@ -111,6 +111,8 @@ struct ipc_namespace { int msg_ctlmax; int msg_ctlmnb; int msg_ctlmni; + atomic_t msg_bytes; + atomic_t msg_hdrs; size_t shm_ctlmax; size_t shm_ctlall; -- cgit v1.2.3