函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_ipv4host_label - check host based restrictions*@sip: the object end* looks for host based access restrictions* This version will only be appropriate for really small sets of single label* hosts

函数原型:static struct smack_known *smack_ipv4host_label(struct sockaddr_in *sip)

返回类型:struct smack_known

参数:

类型参数名称
struct sockaddr_in *sip
2310  siap等于 Internet address
2312  如果s_addr恒等于0则返回:NULL
2315  遍历RCU(snp, & smk_net4addr_list, list)
2321  如果s_addr恒等于s_addr按位与s_addr的值则返回:label
2325  返回:NULL
调用者
名称描述
smack_netlabel_sendsmack_netlbel_send - Set the secattr on a socket and perform access checks*@sk: the socket*@sap: the destination address* Set the correct secattr for the given socket based on the destination* address and perform any outbound access checks needed.
smack_inet_conn_requestsmack_inet_conn_request - Smack access check on connect*@sk: socket involved*@skb: packet*@req: unused* Returns 0 if a task with the packet label could write to* the socket, otherwise an error code