函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\xfrm.c Create Date:2022-07-27 20:46:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:POSTROUTE_LAST hook's XFRM processing:* If we have no security association, then we need to determine* whether the socket is allowed to send to an unlabelled destination.* If we do have a authorizable security association, then it has already been

函数原型:int selinux_xfrm_postroute_last(unsigned int sk_sid, struct sk_buff *skb, struct common_audit_data *ad, u8 proto)

返回类型:int

参数:

类型参数名称
unsigned intsk_sid
struct sk_buff *skb
struct common_audit_data *ad
u8proto
444  :proto恒等于IPPROTO_AH
445  :proto恒等于IPPROTO_ESP
446  :proto恒等于IPPROTO_COMP
450  返回:0
451  默认
452  退出
455  dst等于skb_dst - returns skb dst_entry*@skb: buffer* Returns skb dst_entry, regardless of reference taken or not.
456  如果dst
459 iter != NULL循环
460  x等于xfrm
470  返回:avc_has_perm - Check permissions and perform any appropriate auditing