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:valiation, get/set attr, shutdown

Proto:static int aa_sock_perm(const char *op, unsigned int request, struct socket *sock)

Type:int

Parameter:

TypeParameterName
const char *op
unsigned intrequest
struct socket *sock
964  AA_BUG(!sock)
965  AA_BUG(!sk)
966  AA_BUG(in_interrupt())
968  Return af_select(sk_family, sock_perm(op, request, sock), aa_sk_perm(op, request, sk))
Caller
NameDescribe
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