Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int fsverity_prepare_setattr(struct dentry *dentry, struct iattr *attr)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
struct iattr *attr
321  If IS_VERITY(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.) && ia_valid & ATTR_SIZE Then
322  pr_debug("Denying truncate of verity file (ino %lu)\n", i_ino)
324  Return -EPERM
326  Return 0