函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sverity_prepare_setattr() - prepare to change a verity inode's attributes*@dentry: dentry through which the inode is being changed*@attr: attributes to change* Verity files are immutable, so deny truncates. This isn't covered by the

函数原型:int fsverity_prepare_setattr(struct dentry *dentry, struct iattr *attr)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
struct iattr *attr
321  如果IS_VERITY(获得目录项的索引节点)且ia_valid按位与ATTR_SIZE
322  pr_debug("Denying truncate of verity file (ino %lu)\n", i_ino)
324  返回:负EPERM
326  返回:0