函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lsm.c Create Date:2022-07-27 21:38:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:aa_sock_msg_perm

函数原型:static int aa_sock_msg_perm(const char *op, unsigned int request, struct socket *sock, struct msghdr *msg, int size)

返回类型:int

参数:

类型参数名称
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  返回:af_select(sk_family, msg_perm(op, request, sock, msg, size), aa_sk_perm(op, request, sk))
调用者
名称描述
apparmor_socket_sendmsgapparmor_socket_sendmsg - check perms before sending msg to another socket
apparmor_socket_recvmsgapparmor_socket_recvmsg - check perms before receiving a message