Function report |
Source Code:security\selinux\netport.c |
Create Date:2022-07-28 19:10:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sel_netport_sid_slow - Lookup the SID of a network address using the policy*@protocol: protocol*@pnum: port*@sid: port SID* Description:* This function determines the SID of a network port by quering the security* policy
Proto:static int sel_netport_sid_slow(u8 protocol, u16 pnum, unsigned int *sid)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u8 | protocol | |
| u16 | pnum | |
| unsigned int * | sid |
| 144 | spin_lock_bh( & sel_netport_lock) |
| 146 | If (port != NULL) Then |
| 152 | ret = security_port_sid( & selinux_state, protocol, pnum, sid) |
| 155 | new = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 156 | If new Then |
| 163 | out : |
| 164 | spin_unlock_bh( & sel_netport_lock) |
| 165 | If Value for the false possibility is greater at compile time(ret) Then pr_warn("SELinux: failure in %s(), unable to determine network port label\n", __func__) |
| 168 | Return ret |
| Name | Describe |
|---|---|
| sel_netport_sid | sel_netport_sid - Lookup the SID of a network port*@protocol: protocol*@pnum: port*@sid: port SID* Description:* This function determines the SID of a network port using the fastest method* possible |
| 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 |