diff options
Diffstat (limited to 'ipc/util.c')
-rw-r--r-- | ipc/util.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ipc/util.c b/ipc/util.c index 798cad18dd87..3459a16a9df9 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
@@ -474,7 +474,7 @@ void ipc_rcu_free(struct rcu_head *head) | |||
474 | * Check user, group, other permissions for access | 474 | * Check user, group, other permissions for access |
475 | * to ipc resources. return 0 if allowed | 475 | * to ipc resources. return 0 if allowed |
476 | * | 476 | * |
477 | * @flag will most probably be 0 or S_...UGO from <linux/stat.h> | 477 | * @flag will most probably be 0 or ``S_...UGO`` from <linux/stat.h> |
478 | */ | 478 | */ |
479 | int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag) | 479 | int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag) |
480 | { | 480 | { |
@@ -672,10 +672,12 @@ int ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out) | |||
672 | * | 672 | * |
673 | * This function does some common audit and permissions check for some IPC_XXX | 673 | * This function does some common audit and permissions check for some IPC_XXX |
674 | * cmd and is called from semctl_down, shmctl_down and msgctl_down. | 674 | * cmd and is called from semctl_down, shmctl_down and msgctl_down. |
675 | * It must be called without any lock held and | 675 | * It must be called without any lock held and: |
676 | * - retrieves the ipc with the given id in the given table. | 676 | * |
677 | * - performs some audit and permission check, depending on the given cmd | 677 | * - retrieves the ipc with the given id in the given table. |
678 | * - returns a pointer to the ipc object or otherwise, the corresponding error. | 678 | * - performs some audit and permission check, depending on the given cmd |
679 | * - returns a pointer to the ipc object or otherwise, the corresponding | ||
680 | * error. | ||
679 | * | 681 | * |
680 | * Call holding the both the rwsem and the rcu read lock. | 682 | * Call holding the both the rwsem and the rcu read lock. |
681 | */ | 683 | */ |