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, opt

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

Type:int

Parameter:

TypeParameterName
const char *op
unsigned intrequest
struct socket *sock
intlevel
intoptname
993  AA_BUG(!sock)
994  AA_BUG(!sk)
995  AA_BUG(in_interrupt())
997  Return af_select(sk_family, opt_perm(op, request, sock, level, optname), aa_sk_perm(op, request, sk))
Caller
NameDescribe
apparmor_socket_getsockoptapparmor_getsockopt - check perms before getting socket options
apparmor_socket_setsockoptapparmor_setsockopt - check perms before setting socket options