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_file_open() - prepare to open a verity file*@inode: the inode being opened*@filp: the struct file being set up* When opening a verity file, deny the open if it is for writing. Otherwise,* set up the inode's ->i_verity_info if not already done.

Proto:int fsverity_file_open(struct inode *inode, struct file *filp)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *filp
296  If Not IS_VERITY(inode) Then Return 0
299  If f_mode & le is open for writing Then
300  pr_debug("Denying opening verity file (ino %lu) for write\n", Stat data, not accessed from path walking )
302  Return -EPERM
305  Return Ensure the inode has an ->i_verity_info