Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:59:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_parse_skb

Proto:static int selinux_parse_skb(struct sk_buff *skb, struct common_audit_data *ad, char **_addrp, int src, u8 *proto)

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
struct common_audit_data *ad
char **_addrp
intsrc
u8 *proto
4374  Case family == PF_INET
4375  ret = Returns error only if unable to parse addresses
4376  If ret Then Go to parse_error
4378  addrp = If src Then saddr Else daddr
4380  Go to okay
4383  Case family == PF_INET6
4384  ret = Returns error only if unable to parse addresses
4385  If ret Then Go to parse_error
4387  addrp = If src Then saddr Else daddr
4389  Go to okay
4391  Default
4392  addrp = NULL
4393  Go to okay
4396  parse_error :
4397  pr_warn("SELinux: failure in selinux_parse_skb(), unable to parse packet\n")
4400  Return ret
4402  okay :
4403  If _addrp Then _addrp = addrp
4405  Return 0
Caller
NameDescribe
selinux_sock_rcv_skb_compat
selinux_socket_sock_rcv_skb