/security/selinux/ |
D | netlink.c | 47 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()
|
D | hooks.c | 5041 static int selinux_socket_sendmsg(struct socket *sock, struct msghdr *msg, in selinux_socket_sendmsg() argument 5047 static int selinux_socket_recvmsg(struct socket *sock, struct msghdr *msg, in selinux_socket_recvmsg() argument 6132 static int selinux_msg_msg_alloc_security(struct msg_msg *msg) in selinux_msg_msg_alloc_security() argument 6136 msec = selinux_msg_msg(msg); in selinux_msg_msg_alloc_security() 6209 static int selinux_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg) in selinux_msg_queue_msgsnd() argument 6218 msec = selinux_msg_msg(msg); in selinux_msg_queue_msgsnd() 6255 static int selinux_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, in selinux_msg_queue_msgrcv() argument 6266 msec = selinux_msg_msg(msg); in selinux_msg_queue_msgrcv()
|
/security/tomoyo/ |
D | network.c | 758 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()
|
D | tomoyo.c | 475 static int tomoyo_socket_sendmsg(struct socket *sock, struct msghdr *msg, in tomoyo_socket_sendmsg() argument 478 return tomoyo_socket_sendmsg_permission(sock, msg, size); in tomoyo_socket_sendmsg()
|
D | common.h | 1001 int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg,
|
/security/ |
D | security.c | 1940 int security_msg_msg_alloc(struct msg_msg *msg) in security_msg_msg_alloc() argument 1942 int rc = lsm_msg_msg_alloc(msg); in security_msg_msg_alloc() 1946 rc = call_int_hook(msg_msg_alloc_security, 0, msg); in security_msg_msg_alloc() 1948 security_msg_msg_free(msg); in security_msg_msg_alloc() 1952 void security_msg_msg_free(struct msg_msg *msg) in security_msg_msg_free() argument 1954 call_void_hook(msg_msg_free_security, msg); in security_msg_msg_free() 1955 kfree(msg->security); in security_msg_msg_free() 1956 msg->security = NULL; in security_msg_msg_free() 1989 struct msg_msg *msg, int msqflg) in security_msg_queue_msgsnd() argument 1991 return call_int_hook(msg_queue_msgsnd, 0, msq, msg, msqflg); in security_msg_queue_msgsnd() [all …]
|
/security/smack/ |
D | smack.h | 351 static inline struct smack_known **smack_msg_msg(const struct msg_msg *msg) in smack_msg_msg() argument 353 return msg->security + smack_blob_sizes.lbs_msg_msg; in smack_msg_msg()
|
D | smack_lsm.c | 2921 static int smack_msg_msg_alloc_security(struct msg_msg *msg) in smack_msg_msg_alloc_security() argument 2923 struct smack_known **blob = smack_msg_msg(msg); in smack_msg_msg_alloc_security() 3219 static int smack_msg_queue_msgsnd(struct kern_ipc_perm *isp, struct msg_msg *msg, in smack_msg_queue_msgsnd() argument 3238 static int smack_msg_queue_msgrcv(struct kern_ipc_perm *isp, struct msg_msg *msg, in smack_msg_queue_msgrcv() argument 3685 static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg, in smack_socket_sendmsg() argument 3688 struct sockaddr_in *sip = (struct sockaddr_in *) msg->msg_name; in smack_socket_sendmsg() 3690 struct sockaddr_in6 *sap = (struct sockaddr_in6 *) msg->msg_name; in smack_socket_sendmsg() 3706 if (msg->msg_namelen < sizeof(struct sockaddr_in) || in smack_socket_sendmsg() 3713 if (msg->msg_namelen < SIN6_LEN_RFC2133 || in smack_socket_sendmsg()
|
/security/apparmor/ |
D | lsm.c | 945 struct msghdr *msg, int size) in aa_sock_msg_perm() argument 949 AA_BUG(!msg); in aa_sock_msg_perm() 953 msg_perm(op, request, sock, msg, size), in aa_sock_msg_perm() 961 struct msghdr *msg, int size) in apparmor_socket_sendmsg() argument 963 return aa_sock_msg_perm(OP_SENDMSG, AA_MAY_SEND, sock, msg, size); in apparmor_socket_sendmsg() 970 struct msghdr *msg, int size, int flags) in apparmor_socket_recvmsg() argument 972 return aa_sock_msg_perm(OP_RECVMSG, AA_MAY_RECEIVE, sock, msg, size); in apparmor_socket_recvmsg()
|