Function report |
Source Code:security\apparmor\lsm.c |
Create Date:2022-07-28 19:53:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:apparmor_socket_getpeersec_stream - get security context of peer* Note: for tcp only valid if using ipsec or cipso on lan
Proto:static int apparmor_socket_getpeersec_stream(struct socket *sock, char __user *optval, int __user *optlen, unsigned int len)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct socket * | sock | |
char __user * | optval | |
int __user * | optlen | |
unsigned int | len |
1073 | error = 0 |
1078 | peer = sk_peer_label(sk) |
1083 | slen = aa_label_asxprint( & name, labels_ns(label), peer, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED, GFP_KERNEL) |
1087 | If slen < 0 Then |
1089 | Else |
1092 | Else if copy_to_user(optval, name, slen) Then |
1096 | If Write a simple value into user space(slen, optlen) Then error = -EFAULT |
1098 | out : |
1103 | done : |
1106 | Return error |
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 |