函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\sock.h Create Date:2022-07-27 07:06:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lock_sock

函数原型:static inline void lock_sock(struct sock *sk)

返回类型:void

参数:

类型参数名称
struct sock *sk
1531  lock_sock_nested(sk, 0)
调用者
名称描述
__cgroup_bpf_run_filter_setsockopt
__cgroup_bpf_run_filter_getsockopt
selinux_netlbl_socket_setsockoptselinux_netlbl_socket_setsockopt - Do not allow users to remove a NetLabel*@sock: the socket*@level: the socket level or protocol*@optname: the socket option name* Description:* Check the setsockopt() call and if the user is trying to replace the IP*
selinux_netlbl_socket_connectselinux_netlbl_socket_connect - Label a client-side socket on connect*@sk: the socket to label*@addr: the destination address* Description:* Attempt to label a connected socket with NetLabel using the given address.