函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_main.c Create Date:2022-07-27 21:59:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ima_check_last_writer

函数原型:static void ima_check_last_writer(struct integrity_iint_cache *iint, struct inode *inode, struct file *file)

返回类型:void

参数:

类型参数名称
struct integrity_iint_cache *iint
struct inode *inode
struct file *file
149  mode等于f_mode
152  如果非mode按位与le is open for writing 的值则返回
155  mutex_lock( & protects: version, flags, digest )
156  如果atomic_read( & i_writecount)恒等于1则
157  update等于st_and_clear_bit - Clear a bit and return its old value*@nr: Bit to clear*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).
162  flags与等于IMA_DONE_MASK按位或IMA_NEW_FILE的值的反
163  measured_pcrs等于0
164  如果updateima_update_xattr(iint, file)
168  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
调用者
名称描述
ima_file_freema_file_free - called on __fput()*@file: pointer to file structure being freed* Flag files that changed, based on i_version