Function report |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-28 18:20:31 |
Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Instantiate a key with the specified payload and link the key into the* destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority). No other permissions are required.
Proto:long keyctl_instantiate_key_common(key_serial_t id, struct iov_iter *from, key_serial_t ringid)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
key_serial_t | id | |
struct iov_iter * | from | |
key_serial_t | ringid |
1100 | 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.() |
1103 | plen = If from Then iov_iter_count(from) Else 0 |
1124 | If key serial number != id Then Go to error |
1128 | payload = NULL |
1130 | If from Then |
1132 | payload = kvmalloc(plen, GFP_KERNEL) |
1137 | If Not copy_from_iter_full(payload, plen, from) Then Go to error2 |
1143 | ret = Get the destination keyring for instantiation and check that the caller has* Write permission on it. |
1155 | If ret == 0 Then Change the request_key authorisation key on the current process. |
1158 | error2 : |
1159 | If payload Then |
1163 | error : |
1164 | Return ret |
Name | Describe |
---|---|
keyctl_instantiate_key | Instantiate a key with the specified payload and link the key into the* destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority). No other permissions are required. |
keyctl_instantiate_key_iov | Instantiate a key with the specified multipart payload and link the key into* the destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority) |
compat_keyctl_instantiate_key_iov | Instantiate a key with the specified compatibility multipart payload and* link the key into the destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority) |
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 |