Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lsm.c Create Date:2022-07-28 19:53:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:aa_sock_msg_perm

Proto:static int aa_sock_msg_perm(const char *op, unsigned int request, struct socket *sock, struct msghdr *msg, int size)

Type:int

Parameter:

TypeParameterName
const char *op
unsigned intrequest
struct socket *sock
struct msghdr *msg
intsize
933  AA_BUG(!sock)
934  AA_BUG(!sk)
935  AA_BUG(!msg)
936  AA_BUG(in_interrupt())
938  Return af_select(sk_family, msg_perm(op, request, sock, msg, size), aa_sk_perm(op, request, sk))
Caller
NameDescribe
apparmor_socket_sendmsgapparmor_socket_sendmsg - check perms before sending msg to another socket
apparmor_socket_recvmsgapparmor_socket_recvmsg - check perms before receiving a message