Function report |
Source Code:security\keys\persistent.c |
Create Date:2022-07-28 18:26:20 |
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 persistent keyring for a specific UID and link it to the nominated* keyring.
Proto:long keyctl_get_persistent(uid_t _uid, key_serial_t destid)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
uid_t | _uid | |
key_serial_t | destid |
131 | ns = current_user_ns() |
138 | uid = current_uid() |
139 | Else |
147 | If Not uid_eq(uid, current_uid()) && Not uid_eq(uid, current_euid()) && Not ns_capable(ns, Allows forged pids on socket credentials passing. ) Then Return -EPERM |
157 | If type of key != key_type_keyring Then |
159 | Go to out_put_dest |
164 | out_put_dest : |
165 | key_ref_put(dest_ref) |
166 | Return ret |
Name | Describe |
---|---|
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 |