Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\keyring.c Create Date:2022-07-28 20:23:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:format_mk_user_description

Proto:static void format_mk_user_description(char description[(2*16+(sizeof(".uid.")-1)+10+1)], const u8 mk_identifier[16])

Type:void

Parameter:

TypeParameterName
chardescription
const u8mk_identifier
193  sprintf(description, "%*phN.uid.%u", FSCRYPT_KEY_IDENTIFIER_SIZE, mk_identifier, __kuid_val(current_fsuid()))
Caller
NameDescribe
find_master_key_userFind the current user's "key" in the master key's ->mk_users.* Returns ERR_PTR(-ENOKEY) if not found.
add_master_key_userGive the current user a "key" in ->mk_users. This charges the user's quota* and marks the master key as added by the current user, so that it cannot be* removed by another user with the key. Either the master key's key->sem must