Function report |
Source Code:security\keys\request_key.c |
Create Date:2022-07-28 18:23:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Get the appropriate destination keyring for the request.* The keyring selected is returned with an extra reference upon it which the* caller must release.
Proto:static int construct_get_dest_keyring(struct key **_dest_keyring)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct key ** | _dest_keyring |
265 | cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() |
266 | dest_keyring = _dest_keyring |
269 | kenter("%p", dest_keyring) |
272 | If dest_keyring Then |
274 | key_get(dest_keyring) |
275 | Else |
276 | bool do_perm_check = true |
283 | If assumed request_key authority Then |
285 | lock for reading |
286 | rka = get_request_key_auth(authkey) |
287 | If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then dest_keyring = key_get(dest_keyring) |
292 | If dest_keyring Then |
293 | do_perm_check = false |
294 | Break |
301 | If dest_keyring Then Break |
307 | If dest_keyring Then Break |
314 | If dest_keyring Then Break |
319 | ret = Look up the user and user session keyrings for the current process's UID,* creating them if they don't exist. |
322 | Break |
325 | ret = Look up the user and user session keyrings for the current process's UID,* creating them if they don't exist. |
328 | Break |
331 | Default |
332 | BUG() |
344 | If dest_keyring && do_perm_check Then |
347 | If ret Then |
354 | _dest_keyring = dest_keyring |
355 | kleave(" [dk %d]", key_serial(dest_keyring)) |
356 | Return 0 |
Name | Describe |
---|---|
construct_key_and_link | Commence key construction. |
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 |