Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Original ioctl version; can only get the original policy version

Proto:int fscrypt_ioctl_get_policy(struct file *filp, void __user *arg)

Type:int

Parameter:

TypeParameterName
struct file *filp
void __user *arg
383  err = fscrypt_get_policy(file_inode(filp), & policy)
384  If err Then Return err
387  If version != Legacy policy version; ad-hoc KDF and no key verification.* For new encrypted directories, use fscrypt_policy_v2 instead.* Careful: the .version field for this is actually 0, not 1. Then Return -EINVAL
390  If copy_to_user(arg, & policy, size of v1 ) Then Return -EFAULT
392  Return 0