diff options
author | Kirill Korotaev <dev@openvz.org> | 2007-10-19 02:40:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:48 -0400 |
commit | 3ac88a41ff747b8c2f290f86b5243b2f8fce2cc0 (patch) | |
tree | a0a87ebb1b5cac9da1a2cee05475139b16a8dbc6 /include/linux | |
parent | c530c6ac7eb1d4ae1ff6b382d9211be446ee82c6 (diff) |
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 <alexey@openvz.org>
Signed-off-by: Kirill Korotaev <dev@openvz.org>
Cc: Pierre Peiffer <pierre.peiffer@bull.net>
Cc: Nadia Derbey <Nadia.Derbey@bull.net>
Cc: Serge Hallyn <serue@us.ibm.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ipc.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 { | |||
111 | int msg_ctlmax; | 111 | int msg_ctlmax; |
112 | int msg_ctlmnb; | 112 | int msg_ctlmnb; |
113 | int msg_ctlmni; | 113 | int msg_ctlmni; |
114 | atomic_t msg_bytes; | ||
115 | atomic_t msg_hdrs; | ||
114 | 116 | ||
115 | size_t shm_ctlmax; | 117 | size_t shm_ctlmax; |
116 | size_t shm_ctlall; | 118 | size_t shm_ctlall; |