aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/lsm_hooks.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index 2f0990f0ed64..8ef4b3b89daa 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -1111,41 +1111,41 @@
1111 * 1111 *
1112 * @msg_queue_alloc_security: 1112 * @msg_queue_alloc_security:
1113 * Allocate and attach a security structure to the 1113 * Allocate and attach a security structure to the
1114 * msq->q_perm.security field. The security field is initialized to 1114 * @perm->security field. The security field is initialized to
1115 * NULL when the structure is first created. 1115 * NULL when the structure is first created.
1116 * @msq contains the message queue structure to be modified. 1116 * @perm contains the IPC permissions of the message queue.
1117 * Return 0 if operation was successful and permission is granted. 1117 * Return 0 if operation was successful and permission is granted.
1118 * @msg_queue_free_security: 1118 * @msg_queue_free_security:
1119 * Deallocate security structure for this message queue. 1119 * Deallocate security field @perm->security for the message queue.
1120 * @msq contains the message queue structure to be modified. 1120 * @perm contains the IPC permissions of the message queue.
1121 * @msg_queue_associate: 1121 * @msg_queue_associate:
1122 * Check permission when a message queue is requested through the 1122 * Check permission when a message queue is requested through the
1123 * msgget system call. This hook is only called when returning the 1123 * msgget system call. This hook is only called when returning the
1124 * message queue identifier for an existing message queue, not when a 1124 * message queue identifier for an existing message queue, not when a
1125 * new message queue is created. 1125 * new message queue is created.
1126 * @msq contains the message queue to act upon. 1126 * @perm contains the IPC permissions of the message queue.
1127 * @msqflg contains the operation control flags. 1127 * @msqflg contains the operation control flags.
1128 * Return 0 if permission is granted. 1128 * Return 0 if permission is granted.
1129 * @msg_queue_msgctl: 1129 * @msg_queue_msgctl:
1130 * Check permission when a message control operation specified by @cmd 1130 * Check permission when a message control operation specified by @cmd
1131 * is to be performed on the message queue @msq. 1131 * is to be performed on the message queue with permissions @perm.
1132 * The @msq may be NULL, e.g. for IPC_INFO or MSG_INFO. 1132 * The @perm may be NULL, e.g. for IPC_INFO or MSG_INFO.
1133 * @msq contains the message queue to act upon. May be NULL. 1133 * @perm contains the IPC permissions of the msg queue. May be NULL.
1134 * @cmd contains the operation to be performed. 1134 * @cmd contains the operation to be performed.
1135 * Return 0 if permission is granted. 1135 * Return 0 if permission is granted.
1136 * @msg_queue_msgsnd: 1136 * @msg_queue_msgsnd:
1137 * Check permission before a message, @msg, is enqueued on the message 1137 * Check permission before a message, @msg, is enqueued on the message
1138 * queue, @msq. 1138 * queue with permissions @perm.
1139 * @msq contains the message queue to send message to. 1139 * @perm contains the IPC permissions of the message queue.
1140 * @msg contains the message to be enqueued. 1140 * @msg contains the message to be enqueued.
1141 * @msqflg contains operational flags. 1141 * @msqflg contains operational flags.
1142 * Return 0 if permission is granted. 1142 * Return 0 if permission is granted.
1143 * @msg_queue_msgrcv: 1143 * @msg_queue_msgrcv:
1144 * Check permission before a message, @msg, is removed from the message 1144 * Check permission before a message, @msg, is removed from the message
1145 * queue, @msq. The @target task structure contains a pointer to the 1145 * queue. The @target task structure contains a pointer to the
1146 * process that will be receiving the message (not equal to the current 1146 * process that will be receiving the message (not equal to the current
1147 * process when inline receives are being performed). 1147 * process when inline receives are being performed).
1148 * @msq contains the message queue to retrieve message from. 1148 * @perm contains the IPC permissions of the message queue.
1149 * @msg contains the message destination. 1149 * @msg contains the message destination.
1150 * @target contains the task structure for recipient process. 1150 * @target contains the task structure for recipient process.
1151 * @type contains the type of message requested. 1151 * @type contains the type of message requested.
@@ -1637,13 +1637,13 @@ union security_list_options {
1637 int (*msg_msg_alloc_security)(struct msg_msg *msg); 1637 int (*msg_msg_alloc_security)(struct msg_msg *msg);
1638 void (*msg_msg_free_security)(struct msg_msg *msg); 1638 void (*msg_msg_free_security)(struct msg_msg *msg);
1639 1639
1640 int (*msg_queue_alloc_security)(struct kern_ipc_perm *msq); 1640 int (*msg_queue_alloc_security)(struct kern_ipc_perm *perm);
1641 void (*msg_queue_free_security)(struct kern_ipc_perm *msq); 1641 void (*msg_queue_free_security)(struct kern_ipc_perm *perm);
1642 int (*msg_queue_associate)(struct kern_ipc_perm *msq, int msqflg); 1642 int (*msg_queue_associate)(struct kern_ipc_perm *perm, int msqflg);
1643 int (*msg_queue_msgctl)(struct kern_ipc_perm *msq, int cmd); 1643 int (*msg_queue_msgctl)(struct kern_ipc_perm *perm, int cmd);
1644 int (*msg_queue_msgsnd)(struct kern_ipc_perm *msq, struct msg_msg *msg, 1644 int (*msg_queue_msgsnd)(struct kern_ipc_perm *perm, struct msg_msg *msg,
1645 int msqflg); 1645 int msqflg);
1646 int (*msg_queue_msgrcv)(struct kern_ipc_perm *msq, struct msg_msg *msg, 1646 int (*msg_queue_msgrcv)(struct kern_ipc_perm *perm, struct msg_msg *msg,
1647 struct task_struct *target, long type, 1647 struct task_struct *target, long type,
1648 int mode); 1648 int mode);
1649 1649