Lines Matching refs:msg

28 #include <linux/msg.h>

3796 * @msg: message structure
3798 * Allocate and attach a security structure to the msg->security field. The
3803 int security_msg_msg_alloc(struct msg_msg *msg)
3805 int rc = lsm_msg_msg_alloc(msg);
3809 rc = call_int_hook(msg_msg_alloc_security, msg);
3811 security_msg_msg_free(msg);
3817 * @msg: message structure
3821 void security_msg_msg_free(struct msg_msg *msg)
3823 call_void_hook(msg_msg_free_security, msg);
3824 kfree(msg->security);
3825 msg->security = NULL;
3829 * security_msg_queue_alloc() - Allocate a sysv ipc msg queue LSM blob
3832 * Allocate and attach a security structure to @msg. The security field is
3850 * security_msg_queue_free() - Free a sysv ipc msg queue LSM blob
3863 * security_msg_queue_associate() - Check if a msg queue operation is allowed
3879 * security_msg_queue_msgctl() - Check if a msg queue operation is allowed
3896 * @msg: message
3899 * Check permission before a message, @msg, is enqueued on the message queue
3905 struct msg_msg *msg, int msqflg)
3907 return call_int_hook(msg_queue_msgsnd, msq, msg, msqflg);
3911 * security_msg_queue_msgrcv() - Check if receiving a sysv ipc msg is allowed
3913 * @msg: message
3918 * Check permission before a message, @msg, is removed from the message queue.
3925 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg,
3928 return call_int_hook(msg_queue_msgrcv, msq, msg, target, type, mode);
4695 * @msg: message to send
4702 int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)
4704 return call_int_hook(socket_sendmsg, sock, msg, size);
4710 * @msg: message to receive
4718 int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
4721 return call_int_hook(socket_recvmsg, sock, msg, size, flags);