函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:int

参数:

类型参数名称
const char *op
unsigned intrequest
struct socket *sock
intlevel
intoptname
993  AA_BUG(!sock)
994  AA_BUG(!sk)
995  AA_BUG(in_interrupt())
997  返回:af_select(sk_family, opt_perm(op, request, sock, level, optname), aa_sk_perm(op, request, sk))
调用者
名称描述
apparmor_socket_getsockoptapparmor_getsockopt - check perms before getting socket options
apparmor_socket_setsockoptapparmor_setsockopt - check perms before setting socket options