Home
last modified time | relevance | path

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

/security/selinux/
Dnetlink.c50 struct selnl_msg_setenforce *msg = nlmsg_data(nlh); in selnl_add_payload() local
52 memset(msg, 0, len); in selnl_add_payload()
53 msg->val = *((int *)data); in selnl_add_payload()
58 struct selnl_msg_policyload *msg = nlmsg_data(nlh); in selnl_add_payload() local
60 memset(msg, 0, len); in selnl_add_payload()
61 msg->seqno = *((u32 *)data); in selnl_add_payload()
Dhooks.c4642 static int selinux_socket_sendmsg(struct socket *sock, struct msghdr *msg, in selinux_socket_sendmsg() argument
4648 static int selinux_socket_recvmsg(struct socket *sock, struct msghdr *msg, in selinux_socket_recvmsg() argument
5525 static int msg_msg_alloc_security(struct msg_msg *msg) in msg_msg_alloc_security() argument
5534 msg->security = msec; in msg_msg_alloc_security()
5539 static void msg_msg_free_security(struct msg_msg *msg) in msg_msg_free_security() argument
5541 struct msg_security_struct *msec = msg->security; in msg_msg_free_security()
5543 msg->security = NULL; in msg_msg_free_security()
5562 static int selinux_msg_msg_alloc_security(struct msg_msg *msg) in selinux_msg_msg_alloc_security() argument
5564 return msg_msg_alloc_security(msg); in selinux_msg_msg_alloc_security()
5567 static void selinux_msg_msg_free_security(struct msg_msg *msg) in selinux_msg_msg_free_security() argument
[all …]
/security/tomoyo/
Dnetwork.c753 int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg, in tomoyo_socket_sendmsg_permission() argument
760 if (!msg->msg_name || !family || in tomoyo_socket_sendmsg_permission()
767 msg->msg_name, in tomoyo_socket_sendmsg_permission()
768 msg->msg_namelen, &address); in tomoyo_socket_sendmsg_permission()
769 return tomoyo_check_inet_address((struct sockaddr *) msg->msg_name, in tomoyo_socket_sendmsg_permission()
770 msg->msg_namelen, in tomoyo_socket_sendmsg_permission()
Dtomoyo.c490 static int tomoyo_socket_sendmsg(struct socket *sock, struct msghdr *msg, in tomoyo_socket_sendmsg() argument
493 return tomoyo_socket_sendmsg_permission(sock, msg, size); in tomoyo_socket_sendmsg()
Dcommon.h991 int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg,
/security/
Dsecurity.c1166 int security_msg_msg_alloc(struct msg_msg *msg) in security_msg_msg_alloc() argument
1168 return call_int_hook(msg_msg_alloc_security, 0, msg); in security_msg_msg_alloc()
1171 void security_msg_msg_free(struct msg_msg *msg) in security_msg_msg_free() argument
1173 call_void_hook(msg_msg_free_security, msg); in security_msg_msg_free()
1197 struct msg_msg *msg, int msqflg) in security_msg_queue_msgsnd() argument
1199 return call_int_hook(msg_queue_msgsnd, 0, msq, msg, msqflg); in security_msg_queue_msgsnd()
1202 int security_msg_queue_msgrcv(struct msg_queue *msq, struct msg_msg *msg, in security_msg_queue_msgrcv() argument
1205 return call_int_hook(msg_queue_msgrcv, 0, msq, msg, target, type, mode); in security_msg_queue_msgrcv()
1378 int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size) in security_socket_sendmsg() argument
1380 return call_int_hook(socket_sendmsg, 0, sock, msg, size); in security_socket_sendmsg()
[all …]
/security/smack/
Dsmack_lsm.c2926 static int smack_msg_msg_alloc_security(struct msg_msg *msg) in smack_msg_msg_alloc_security() argument
2930 msg->security = skp; in smack_msg_msg_alloc_security()
2940 static void smack_msg_msg_free_security(struct msg_msg *msg) in smack_msg_msg_free_security() argument
2942 msg->security = NULL; in smack_msg_msg_free_security()
3322 static int smack_msg_queue_msgsnd(struct msg_queue *msq, struct msg_msg *msg, in smack_msg_queue_msgsnd() argument
3341 static int smack_msg_queue_msgrcv(struct msg_queue *msq, struct msg_msg *msg, in smack_msg_queue_msgrcv() argument
3788 static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg, in smack_socket_sendmsg() argument
3791 struct sockaddr_in *sip = (struct sockaddr_in *) msg->msg_name; in smack_socket_sendmsg()
3793 struct sockaddr_in6 *sap = (struct sockaddr_in6 *) msg->msg_name; in smack_socket_sendmsg()