函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\policy.c Create Date:2022-07-29 10:57:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Original ioctl version; can only get the original policy version

函数原型:int fscrypt_ioctl_get_policy(struct file *filp, void __user *arg)

返回类型:int

参数:

类型参数名称
struct file *filp
void __user *arg
383  err等于fscrypt_get_policy(file_inode(filp), & policy)
384  如果err则返回:err
387  如果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.则返回:负EINVAL
390  如果copy_to_user(arg, & policy, v1的长度)则返回:负EFAULT
392  返回:0