函数逻辑报告 |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-27 20:46:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:int selinux_netlbl_skbuff_setsid(struct sk_buff *skb, u16 family, unsigned int sid)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sk_buff * | skb | |
u16 | family | |
unsigned int | sid |
231 | struct netlbl_lsm_secattr * secattr = NULL |
236 | sk等于skb_to_full_sk(skb) |
237 | 如果(sk != NULL)则 |
238 | sksec等于sk_security |
240 | 如果nlbl_state不等于NLBL_REQSKB则返回:0 |
244 | 如果(secattr == NULL)则 |
245 | secattr等于secattr_storage |
247 | rc等于security_netlbl_sid_to_secattr( & selinux_state, sid, secattr) |
249 | 如果rc不等于0则转到:skbuff_setsid_return |
253 | rc等于netlbl_skbuff_setattr(skb, family, secattr) |
255 | skbuff_setsid_return : |
258 | 返回:rc |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |