Function report |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-28 19:17:23 |
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_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.
Proto:static struct netlbl_lsm_secattr *selinux_netlbl_sock_getattr(const struct sock *sk, unsigned int sid)
Type:struct netlbl_lsm_secattr
Parameter:
Type | Parameter | Name |
---|---|---|
const struct sock * | sk | |
unsigned int | sid |
103 | sksec = sk_security |
106 | If (secattr == NULL) Then Return NULL |
109 | If flags & NETLBL_SECATTR_SECID && secid == sid Then Return secattr |
113 | Return NULL |
Name | Describe |
---|---|
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. |
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 |