Function report |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-28 18:20:54 |
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Get a key's the LSM security label.* The key must grant the caller View permission for this to work.* If there's a buffer, then up to buflen bytes of data will be placed into it.* If successful, the amount of information available will be returned,
Proto:long keyctl_get_security(key_serial_t keyid, char __user *buffer, size_t buflen)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| key_serial_t | keyid | |
| char __user * | buffer | |
| size_t | buflen |
| 1502 | instkey = Search the current process's keyrings for the authorisation key for* instantiation of a key. |
| 1512 | key = key_ref_to_ptr(key_ref) |
| 1513 | ret = security_key_getsecurity(key, & context) |
| 1514 | If ret == 0 Then |
| 1521 | Else if ret > 0 Then |
| 1534 | key_ref_put(key_ref) |
| 1535 | Return ret |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE5 | The key control system call |
| COMPAT_SYSCALL_DEFINE5 | The key control system call, 32-bit compatibility version for 64-bit archs |
| 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 |