函数逻辑报告 |
Source Code:security\keys\process_keys.c |
Create Date:2022-07-27 19:56:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Look up the user and user session keyrings for the current process's UID,* creating them if they don't exist.
函数原型:int look_up_user_keyrings(struct key **_user_keyring, struct key **_user_session_keyring)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct key ** | _user_keyring | |
struct key ** | _user_session_keyring |
77 | 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.() |
78 | user_ns等于current_user_ns() |
95 | ret等于0 |
102 | uid_keyring_r等于keyring_search - Search the supplied keyring tree for a matching key*@keyring: The root of the keyring tree to be searched |
104 | kdebug("_uid %p", uid_keyring_r) |
105 | 如果uid_keyring_r恒等于错误号则 |
111 | 如果是错误则 |
115 | 否则如果是错误则 |
118 | 否则 |
124 | session_keyring_r等于keyring_search - Search the supplied keyring tree for a matching key*@keyring: The root of the keyring tree to be searched |
126 | kdebug("_uid_ses %p", session_keyring_r) |
127 | 如果session_keyring_r恒等于错误号则 |
133 | 如果是错误则 |
135 | 转到:error_release |
142 | 如果ret小于0则转到:error_release_session |
149 | 如果ret小于0则转到:error_release_session |
151 | 否则如果是错误则 |
153 | 转到:error_release |
154 | 否则 |
168 | kleave(" = 0") |
169 | 返回:0 |
171 | error_release_session : |
173 | error_release : |
175 | error : |
178 | 返回:ret |
名称 | 描述 |
---|---|
lookup_user_key | Look up a key ID given us by userspace with a given permissions mask to get* the key it refers to.* Flags can be passed to request that special keyrings be created if referred* to directly, to permit partially constructed keys to be found and to skip |
init_root_keyring | Make sure that root's user and user-session keyrings exist. |
call_sbin_request_key | Request userspace finish the construction of a key* - execute "/sbin/request-key |
construct_get_dest_keyring | Get the appropriate destination keyring for the request.* The keyring selected is returned with an extra reference upon it which the* caller must release. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |