函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:valiation, get/set attr, shutdown

函数原型:static int aa_sock_perm(const char *op, unsigned int request, struct socket *sock)

返回类型:int

参数:

类型参数名称
const char *op
unsigned intrequest
struct socket *sock
964  AA_BUG(!sock)
965  AA_BUG(!sk)
966  AA_BUG(in_interrupt())
968  返回:af_select(sk_family, sock_perm(op, request, sock), aa_sk_perm(op, request, sk))
调用者
名称描述
apparmor_socket_getsocknameapparmor_socket_getsockname - check perms before getting the local address
apparmor_socket_getpeernameapparmor_socket_getpeername - check perms before getting remote address
apparmor_socket_shutdownapparmor_socket_shutdown - check perms before shutting down @sock conn