函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\request_key.c Create Date:2022-07-27 19:57:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Get the appropriate destination keyring for the request.* The keyring selected is returned with an extra reference upon it which the* caller must release.

函数原型:static int construct_get_dest_keyring(struct key **_dest_keyring)

返回类型:int

参数:

类型参数名称
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  如果dest_keyring
274  key_get(dest_keyring)
275  否则
276  bool do_perm_check = true
281  : default keyring to attach requested * keys to 恒等于KEY_REQKEY_DEFL_DEFAULT
301  如果dest_keyring退出
307  如果dest_keyring退出
314  如果dest_keyring退出
320  如果ret小于0则返回:ret
322  退出
326  如果ret小于0则返回:ret
328  退出
330  : default keyring to attach requested * keys to 恒等于KEY_REQKEY_DEFL_GROUP_KEYRING
331  默认
332  BUG()
344  如果dest_keyringdo_perm_check
347  如果ret
354  _dest_keyring等于dest_keyring
355  kleave(" [dk %d]", key_serial(dest_keyring))
356  返回:0
调用者
名称描述
construct_key_and_linkCommence key construction.