Function report |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-28 19:17:51 |
| 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_setsockopt - Do not allow users to remove a NetLabel*@sock: the socket*@level: the socket level or protocol*@optname: the socket option name* Description:* Check the setsockopt() call and if the user is trying to replace the IP*
Proto:int selinux_netlbl_socket_setsockopt(struct socket *sock, int level, int optname)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct socket * | sock | |
| int | level | |
| int | optname |
| 505 | rc = 0 |
| 507 | sksec = sk_security |
| 518 | rc = netlbl_sock_getattr(sk, & secattr) |
| 519 | release_sock(sk) |
| 527 | Return rc |
| Name | Describe |
|---|---|
| selinux_socket_setsockopt |
| 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 |