Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\net.c Create Date:2022-07-28 19:54:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:aa_sk_perm

Proto:int aa_sk_perm(const char *op, unsigned int request, struct sock *sk)

Type:int

Parameter:

TypeParameterName
const char *op
unsigned intrequest
struct sock *sk
167  AA_BUG(!sk)
168  AA_BUG(in_interrupt())
171  label = gin_current_label_crit_section - current's confining label and update it* Returns: up to date confining label or the ns unconfined label (NOT NULL)* Not safe to call inside locks* The returned reference must be put with end_current_label_crit_section()*
172  error = aa_label_sk_perm(label, op, request, sk)
173  d_label_crit_section - put a reference found with begin_current_label..*@label: label reference to put* Should only be used with a reference obtained with* begin_current_label_crit_section and never used in situations where the* task cred may be updated
175  Return error
Caller
NameDescribe
apparmor_socket_connectapparmor_socket_connect - check perms before connecting @sock to @address
apparmor_socket_listenapparmor_socket_list - check perms before allowing listen
apparmor_socket_acceptapparmor_socket_accept - check perms before accepting a new connection.* Note: while @newsock is created and has some information, the accept* has not been done.
aa_sock_msg_perm
aa_sock_permvaliation, get/set attr, shutdown
aa_sock_opt_permvaliation, get/set attr, opt
apparmor_socket_bindapparmor_socket_bind - check perms before bind addr to socket