Function report |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-28 19:17:42 |
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_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
Proto:int selinux_netlbl_socket_post_create(struct sock *sk, u16 family)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sock * | sk | |
u16 | family |
392 | sksec = sk_security |
401 | rc = netlbl_sock_setattr(sk, family, secattr) |
403 | Case rc == 0 |
404 | nlbl_state = NLBL_LABELED |
405 | Break |
406 | Case rc == -EDESTADDRREQ |
412 | Return rc |
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 |