Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 19:00:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:selinux_socket_getpeersec_dgram
Proto:static int selinux_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, unsigned int *secid)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct socket * | sock | |
struct sk_buff * | skb | |
unsigned int * | secid |
5109 | peer_secid = unspecified SID |
5119 | Else Go to out |
5123 | isec = inode_security_novalidate(SOCK_INODE(sock)) |
5124 | peer_secid = SID of this object |
5128 | out : |
5129 | secid = peer_secid |
5130 | If peer_secid == unspecified SID Then Return -EINVAL |
5132 | Return 0 |
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 |