函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_ipv6_check - check Smack access*@subject: subject Smack label*@object: object Smack label*@address: address*@act: the action being taken* Check an IPv6 access

函数原型:static int smk_ipv6_check(struct smack_known *subject, struct smack_known *object, struct sockaddr_in6 *address, int act)

返回类型:int

参数:

类型参数名称
struct smack_known *subject
struct smack_known *object
struct sockaddr_in6 *address
intact
2506  smk_ad_init_net( & ad, __func__, LSM_AUDIT_DATA_NET, & net)
2507  family等于PF_INET6
2508  dport等于ntohs( Transport layer port # )
2509  如果act恒等于SMK_RECEIVINGsaddr等于 IPv6 address
2511  否则daddr等于 IPv6 address
2514  rc等于smk_access(subject, object, MAY_WRITE, & ad)
2515  rc等于smk_bu_note("IPv6 check", subject, object, MAY_WRITE, rc)
2516  返回:rc
调用者
名称描述
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_connectsmack_socket_connect - connect access check*@sock: the socket*@sap: the other end*@addrlen: size of sap* Verifies that a connection may be possible* Returns 0 on success, and error code otherwise
smack_socket_sendmsgsmack_socket_sendmsg - Smack check based on destination host*@sock: the socket*@msg: the message*@size: the size of the message* Return 0 if the current subject can write to the destination host.