Function report |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-28 19:17:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:selinux_netlbl_skbuff_getsid - Get the sid of a packet using NetLabel*@skb: the packet*@family: protocol family*@type: NetLabel labeling protocol type*@sid: the SID* Description:* Call the NetLabel mechanism to get the security attributes of the given*
Proto:int selinux_netlbl_skbuff_getsid(struct sk_buff *skb, u16 family, unsigned int *type, unsigned int *sid)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sk_buff * | skb | |
| u16 | family | |
| unsigned int * | type | |
| unsigned int * | sid |
| 196 | If Not LSM protocol operations (NetLabel LSM/kernel API) Then |
| 197 | sid = unspecified SID |
| 198 | Return 0 |
| 202 | rc = netlbl_skbuff_getattr(skb, family, & secattr) |
| 206 | Else sid = unspecified SID |
| 211 | Return rc |
| Name | Describe |
|---|---|
| selinux_skb_peerlbl_sid | selinux_skb_peerlbl_sid - Determine the peer label of a packet*@skb: the packet*@family: protocol family*@sid: the packet's peer label SID* Description:* Check the various different forms of network peer labeling and determine* the peer label/SID for the |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |