函数逻辑报告

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_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.

函数原型:int fsverity_file_open(struct inode *inode, struct file *filp)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filp
296  如果非IS_VERITY(inode)则返回:0
299  如果f_mode按位与le is open for writing
300  pr_debug("Denying opening verity file (ino %lu) for write\n", Stat data, not accessed from path walking )
302  返回:负EPERM
305  返回:Ensure the inode has an ->i_verity_info