函数逻辑报告 |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-27 20:46:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:selinux_netlbl_sock_genattr - Generate the NetLabel socket secattr*@sk: the socket* Description:* Generate the NetLabel security attributes for a socket, making full use of* the socket's attribute cache. Returns a pointer to the security attributes
函数原型:static struct netlbl_lsm_secattr *selinux_netlbl_sock_genattr(struct sock *sk)
返回类型:struct netlbl_lsm_secattr
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sock * | sk |
70 | sksec等于sk_security |
73 | 如果( NetLabel sec attributes != NULL)则返回: NetLabel sec attributes |
77 | 如果(secattr == NULL)则返回:NULL |
81 | 如果rc不等于0则 |
87 | 返回:secattr |
名称 | 描述 |
---|---|
selinux_netlbl_socket_post_create | selinux_netlbl_socket_post_create - Label a socket using NetLabel*@sock: the socket to label*@family: protocol family* Description:* Attempt to label a socket using the NetLabel mechanism using the given* SID |
selinux_netlbl_socket_connect_helper | selinux_netlbl_socket_connect_helper - Help 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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |