Function report |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-28 18:20:08 |
Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Read a key's payload
Proto:long keyctl_read_key(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 |
823 | key = key_ref_to_ptr(key_ref) |
825 | ret = key_read_state(key) |
831 | If ret == 0 Then Go to can_read_key |
840 | If Not is_key_possessed(key_ref) Then |
846 | can_read_key : |
847 | ret = -EOPNOTSUPP |
848 | If read Then |
852 | lock for reading |
853 | ret = key_validate(key) |
859 | error2 : |
861 | error : |
862 | 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 |