Function report |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-28 18:19:27 |
Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Search the process keyrings and keyring trees linked from those for a* matching key. Keyrings must have appropriate Search permission to be* searched.* If a key is found, it will be attached to the destination keyring if there's
Proto:SYSCALL_DEFINE4(request_key, const char __user *, _type, const char __user *, _description, const char __user *, _callout_info, key_serial_t, destringid)
Type:
Parameter:Nothing
181 | ret = key_get_type_from_user(type, _type, size of type ) |
187 | If IS_ERR(description) Then |
188 | ret = PTR_ERR(description) |
189 | Go to error |
193 | callout_info = NULL |
194 | callout_len = 0 |
195 | If _callout_info Then |
197 | If IS_ERR(callout_info) Then |
198 | ret = PTR_ERR(callout_info) |
199 | Go to error2 |
205 | dest_ref = NULL |
206 | If destringid Then |
216 | ktype = Find and lock the specified key type against removal.* We return with the sem read-locked if successful. If the type wasn't* available -ENOKEY is returned instead. |
232 | ret = wait_for_key_construction(key, 1) |
236 | ret = key serial number |
238 | error6 : |
240 | error5 : |
242 | error4 : |
243 | key_ref_put(dest_ref) |
244 | error3 : |
245 | kfree(callout_info) |
246 | error2 : |
247 | kfree(description) |
248 | error : |
249 | Return ret |
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 |