Function report |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-28 19:17:35 |
| 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_sctp_assoc_request - Label an incoming sctp association.*@ep: incoming association endpoint.*@skb: the packet.* Description:* A new incoming connection is represented by @ep, ......* Returns zero on success, negative values on failure.
Proto:int selinux_netlbl_sctp_assoc_request(struct sctp_endpoint *ep, struct sk_buff *skb)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sctp_endpoint * | ep | |
| struct sk_buff * | skb |
| 276 | sksec = sk_security |
| 287 | If rc != 0 Then Go to assoc_request_return |
| 293 | If version == 4 Then |
| 296 | rc = netlbl_conn_setattr( What socket does this endpoint belong to? , (void * ) & addr4, & secattr) |
| 297 | Else if IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_IPV6) && version == 6 Then |
| 298 | AF_INET6 = IP version 6 |
| 299 | IPv6 address = saddr |
| 300 | rc = netlbl_conn_setattr( What socket does this endpoint belong to? , (void * ) & addr6, & secattr) |
| 301 | Else |
| 302 | rc = -EAFNOSUPPORT |
| 305 | If rc == 0 Then nlbl_state = NLBL_LABELED |
| 308 | assoc_request_return : |
| 310 | Return rc |
| Name | Describe |
|---|---|
| selinux_sctp_assoc_request | Called whenever SCTP receives an INIT chunk. This happens when an incoming* connect(2), sctp_connectx(3) or sctp_sendmsg(3) (with no association* already present). |
| 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 |