函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:valid_master_desc - verify the 'key-type:desc' of a new/updated master-key* key-type:= "trusted:" | "user:"* desc:= master-key description* Verify that 'key-type' is valid and that 'desc' exists. On key update,

函数原型:static int valid_master_desc(const char *new_desc, const char *orig_desc)

返回类型:int

参数:

类型参数名称
const char *new_desc
const char *orig_desc
141  如果非字符串指定长度比较prefix_len等于KEY_TRUSTED_PREFIX_LEN
143  否则如果非字符串指定长度比较prefix_len等于KEY_USER_PREFIX_LEN
145  否则返回:负EINVAL
148  如果非new_desc[prefix_len]则返回:负EINVAL
151  如果orig_desc字符串指定长度比较则返回:负EINVAL
154  返回:0
调用者
名称描述
datablob_parsedatablob_parse - parse the keyctl data* datablob format:* new [] * load [] * * update * Tokenizes a copy of the
encrypted_updaterypted_update - update the master key description* Change the master key description for an existing encrypted key.* The next read will return an encrypted datablob using the new* master key description.* On success, return 0. Otherwise return errno.