diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ipc/util.c b/ipc/util.c index 9a1d779a20e2..1ddadcf9a2ab 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
@@ -15,6 +15,14 @@ | |||
15 | * Jun 2006 - namespaces ssupport | 15 | * Jun 2006 - namespaces ssupport |
16 | * OpenVZ, SWsoft Inc. | 16 | * OpenVZ, SWsoft Inc. |
17 | * Pavel Emelianov <xemul@openvz.org> | 17 | * Pavel Emelianov <xemul@openvz.org> |
18 | * | ||
19 | * General sysv ipc locking scheme: | ||
20 | * when doing ipc id lookups, take the ids->rwsem | ||
21 | * rcu_read_lock() | ||
22 | * obtain the ipc object (kern_ipc_perm) | ||
23 | * perform security, capabilities, auditing and permission checks, etc. | ||
24 | * acquire the ipc lock (kern_ipc_perm.lock) throught ipc_lock_object() | ||
25 | * perform data updates (ie: SET, RMID, LOCK/UNLOCK commands) | ||
18 | */ | 26 | */ |
19 | 27 | ||
20 | #include <linux/mm.h> | 28 | #include <linux/mm.h> |