Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fscrypt_setup_v1_file_key_via_subscribed_keyrings

Proto:int fscrypt_setup_v1_file_key_via_subscribed_keyrings(struct fscrypt_info *ci)

Type:int

Parameter:

TypeParameterName
struct fscrypt_info *ci
321  key = Search the current task's subscribed keyrings for a "logon" key with* description prefix:descriptor, and if found acquire a read lock on it and* return a pointer to its validated payload in *payload_ret.
324  If key == ERR_PTR( - ENOKEY) && key_prefix Then
325  key = Search the current task's subscribed keyrings for a "logon" key with* description prefix:descriptor, and if found acquire a read lock on it and* return a pointer to its validated payload in *payload_ret.
329  If IS_ERR(key) Then Return PTR_ERR(key)
332  err = fscrypt_setup_v1_file_key(ci, raw)
333  lease a read lock
334  key_put(key)
335  Return err