函数逻辑报告 |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-27 20:46:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:selinux_netlbl_sock_getattr - Get the cached NetLabel secattr*@sk: the socket*@sid: the SID* Query the socket's cached secattr and if the SID matches the cached value* return the cache, otherwise return NULL.
函数原型:static struct netlbl_lsm_secattr *selinux_netlbl_sock_getattr(const struct sock *sk, unsigned int sid)
返回类型:struct netlbl_lsm_secattr
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct sock * | sk | |
unsigned int | sid |
103 | sksec等于sk_security |
106 | 如果(secattr == NULL)则返回:NULL |
109 | 如果flags按位与NETLBL_SECATTR_SECID且secid恒等于sid则返回:secattr |
113 | 返回:NULL |
名称 | 描述 |
---|---|
selinux_netlbl_skbuff_setsid | selinux_netlbl_skbuff_setsid - Set the NetLabel on a packet given a sid*@skb: the packet*@family: protocol family*@sid: the SID* Description* Call the NetLabel mechanism to set the label of a packet using @sid. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |