函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:scrypt_has_permitted_context() - is a file's encryption policy permitted* within its directory?*@parent: inode for parent directory*@child: inode for file being looked up, opened, or linked into @parent* Filesystems must call this before permitting access

函数原型:int fscrypt_has_permitted_context(struct inode *parent, struct inode *child)

返回类型:int

参数:

类型参数名称
struct inode *parent
struct inode *child
453  如果非S_ISREG(i_mode)且非S_ISDIR(i_mode)且非S_ISLNK(i_mode)则返回:1
458  如果非IS_ENCRYPTED(parent)则返回:1
462  如果非IS_ENCRYPTED(child)则返回:0
480  err等于fscrypt_get_encryption_info(parent)
481  如果err则返回:0
483  err等于fscrypt_get_encryption_info(child)
484  如果err则返回:0
487  err等于fscrypt_get_policy(parent, & parent_policy)
488  如果err则返回:0
491  err等于fscrypt_get_policy(child, & child_policy)
492  如果err则返回:0
495  返回:scrypt_policies_equal - check whether two encryption policies are the same* Return: %true if equal, else %false
调用者
名称描述
__fscrypt_prepare_link
__fscrypt_prepare_rename