函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_ipv6_localhost - Check for local ipv6 host address*@sip: the address* Returns boolean true if this is the localhost address

函数原型:static bool smk_ipv6_localhost(struct sockaddr_in6 *sip)

返回类型:bool

参数:

类型参数名称
struct sockaddr_in6 *sip
2337  __be16 * be16p = (__be16 * ) & IPv6 address
2338  __be32 * be32p = (__be32 * ) & IPv6 address
2340  如果be32p[0]恒等于0且be32p[1]恒等于0且be32p[2]恒等于0且be16p[6]恒等于0且ntohs(be16p[7])恒等于1则返回:true
2343  返回:false
调用者
名称描述
smack_ipv6host_labelsmack_ipv6host_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
smk_ipv6_port_checksmk_ipv6_port_check - check Smack port access*@sk: socket*@address: address*@act: the action being taken* Create or update the port list entry
smack_socket_sock_rcv_skbsmack_socket_sock_rcv_skb - Smack packet delivery access check*@sk: socket*@skb: packet* Returns 0 if the packet should be delivered, an error code otherwise