Function report |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-28 19:17:47 |
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_sock_rcv_skb - Do an inbound access check using NetLabel*@sksec: the sock's sk_security_struct*@skb: the packet*@family: protocol family*@ad: the audit data* Description:* Fetch the NetLabel security attributes from @skb and perform an
Proto:int selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, struct sk_buff *skb, u16 family, struct common_audit_data *ad)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sk_security_struct * | sksec | |
struct sk_buff * | skb | |
u16 | family | |
struct common_audit_data * | ad |
438 | If Not LSM protocol operations (NetLabel LSM/kernel API) Then Return 0 |
442 | rc = netlbl_skbuff_getattr(skb, family, & secattr) |
446 | Else nlbl_sid = SECINITSID_UNLABELED |
453 | Case sock security class == SECCLASS_UDP_SOCKET |
454 | perm = UDP_SOCKET__RECVFROM |
455 | Break |
456 | Case sock security class == SECCLASS_TCP_SOCKET |
457 | perm = TCP_SOCKET__RECVFROM |
458 | Break |
459 | Default |
460 | perm = RAWIP_SOCKET__RECVFROM |
465 | If rc == 0 Then Return 0 |
468 | If nlbl_sid != SECINITSID_UNLABELED Then netlbl_skbuff_err(skb, family, rc, 0) |
470 | Return rc |
Name | Describe |
---|---|
selinux_sock_rcv_skb_compat |
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 |