Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 9 of 9) sorted by relevance

/security/selinux/
Dnetlink.c47 struct selnl_msg_setenforce *msg = nlmsg_data(nlh); in selnl_add_payload() local
49 memset(msg, 0, len); in selnl_add_payload()
50 msg->val = *((int *)data); in selnl_add_payload()
55 struct selnl_msg_policyload *msg = nlmsg_data(nlh); in selnl_add_payload() local
57 memset(msg, 0, len); in selnl_add_payload()
58 msg->seqno = *((u32 *)data); in selnl_add_payload()
Dhooks.c4829 static int selinux_socket_sendmsg(struct socket *sock, struct msghdr *msg, in selinux_socket_sendmsg() argument
4835 static int selinux_socket_recvmsg(struct socket *sock, struct msghdr *msg, in selinux_socket_recvmsg() argument
5889 static int msg_msg_alloc_security(struct msg_msg *msg) in msg_msg_alloc_security() argument
5893 msec = selinux_msg_msg(msg); in msg_msg_alloc_security()
5915 static int selinux_msg_msg_alloc_security(struct msg_msg *msg) in selinux_msg_msg_alloc_security() argument
5917 return msg_msg_alloc_security(msg); in selinux_msg_msg_alloc_security()
5987 static int selinux_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg) in selinux_msg_queue_msgsnd() argument
5996 msec = selinux_msg_msg(msg); in selinux_msg_queue_msgsnd()
6033 static int selinux_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, in selinux_msg_queue_msgrcv() argument
6044 msec = selinux_msg_msg(msg); in selinux_msg_queue_msgrcv()
/security/tomoyo/
Dnetwork.c758 int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg, in tomoyo_socket_sendmsg_permission() argument
765 if (!msg->msg_name || !family || in tomoyo_socket_sendmsg_permission()
772 msg->msg_name, in tomoyo_socket_sendmsg_permission()
773 msg->msg_namelen, &address); in tomoyo_socket_sendmsg_permission()
774 return tomoyo_check_inet_address((struct sockaddr *) msg->msg_name, in tomoyo_socket_sendmsg_permission()
775 msg->msg_namelen, in tomoyo_socket_sendmsg_permission()
Dtomoyo.c483 static int tomoyo_socket_sendmsg(struct socket *sock, struct msghdr *msg, in tomoyo_socket_sendmsg() argument
486 return tomoyo_socket_sendmsg_permission(sock, msg, size); in tomoyo_socket_sendmsg()
Dcommon.h1001 int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg,
/security/
Dsecurity.c1742 int security_msg_msg_alloc(struct msg_msg *msg) in security_msg_msg_alloc() argument
1744 int rc = lsm_msg_msg_alloc(msg); in security_msg_msg_alloc()
1748 rc = call_int_hook(msg_msg_alloc_security, 0, msg); in security_msg_msg_alloc()
1750 security_msg_msg_free(msg); in security_msg_msg_alloc()
1754 void security_msg_msg_free(struct msg_msg *msg) in security_msg_msg_free() argument
1756 call_void_hook(msg_msg_free_security, msg); in security_msg_msg_free()
1757 kfree(msg->security); in security_msg_msg_free()
1758 msg->security = NULL; in security_msg_msg_free()
1791 struct msg_msg *msg, int msqflg) in security_msg_queue_msgsnd() argument
1793 return call_int_hook(msg_queue_msgsnd, 0, msq, msg, msqflg); in security_msg_queue_msgsnd()
[all …]
/security/smack/
Dsmack.h365 static inline struct smack_known **smack_msg_msg(const struct msg_msg *msg) in smack_msg_msg() argument
367 return msg->security + smack_blob_sizes.lbs_msg_msg; in smack_msg_msg()
Dsmack_lsm.c2901 static int smack_msg_msg_alloc_security(struct msg_msg *msg) in smack_msg_msg_alloc_security() argument
2903 struct smack_known **blob = smack_msg_msg(msg); in smack_msg_msg_alloc_security()
3199 static int smack_msg_queue_msgsnd(struct kern_ipc_perm *isp, struct msg_msg *msg, in smack_msg_queue_msgsnd() argument
3218 static int smack_msg_queue_msgrcv(struct kern_ipc_perm *isp, struct msg_msg *msg, in smack_msg_queue_msgrcv() argument
3668 static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg, in smack_socket_sendmsg() argument
3671 struct sockaddr_in *sip = (struct sockaddr_in *) msg->msg_name; in smack_socket_sendmsg()
3673 struct sockaddr_in6 *sap = (struct sockaddr_in6 *) msg->msg_name; in smack_socket_sendmsg()
3689 if (msg->msg_namelen < sizeof(struct sockaddr_in) || in smack_socket_sendmsg()
3696 if (msg->msg_namelen < SIN6_LEN_RFC2133 || in smack_socket_sendmsg()
/security/apparmor/
Dlsm.c918 struct msghdr *msg, int size) in aa_sock_msg_perm() argument
922 AA_BUG(!msg); in aa_sock_msg_perm()
926 msg_perm(op, request, sock, msg, size), in aa_sock_msg_perm()
934 struct msghdr *msg, int size) in apparmor_socket_sendmsg() argument
936 return aa_sock_msg_perm(OP_SENDMSG, AA_MAY_SEND, sock, msg, size); in apparmor_socket_sendmsg()
943 struct msghdr *msg, int size, int flags) in apparmor_socket_recvmsg() argument
945 return aa_sock_msg_perm(OP_RECVMSG, AA_MAY_RECEIVE, sock, msg, size); in apparmor_socket_recvmsg()