Function report |
Source Code:security\selinux\xfrm.c |
Create Date:2022-07-28 19:16:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:selinux_xfrm_skb_sid_ingress
Proto:static int selinux_xfrm_skb_sid_ingress(struct sk_buff *skb, unsigned int *sid, int ckall)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sk_buff * | skb | |
unsigned int * | sid | |
int | ckall |
229 | sid_session = unspecified SID |
230 | sp = skb_sec_path(skb) |
232 | If sp Then |
238 | ctx = Security context |
240 | If sid_session == unspecified SID Then |
241 | sid_session = ctx_sid |
244 | Else if sid_session != ctx_sid Then |
245 | sid = unspecified SID |
246 | Return -EINVAL |
252 | out : |
253 | sid = sid_session |
254 | Return 0 |
Name | Describe |
---|---|
selinux_xfrm_decode_session | LSM hook implementation that checks and/or returns the xfrm sid for the* incoming packet. |
selinux_xfrm_skb_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 |