Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_main.c Create Date:2022-07-28 19:58:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ima_check_last_writer

Proto:static void ima_check_last_writer(struct integrity_iint_cache *iint, struct inode *inode, struct file *file)

Type:void

Parameter:

TypeParameterName
struct integrity_iint_cache *iint
struct inode *inode
struct file *file
149  mode = f_mode
152  If Not (mode & le is open for writing ) Then Return
155  mutex_lock( & protects: version, flags, digest )
156  If atomic_read( & i_writecount) == 1 Then
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).
163  measured_pcrs = 0
164  If update Then ima_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.
Caller
NameDescribe
ima_file_freema_file_free - called on __fput()*@file: pointer to file structure being freed* Flag files that changed, based on i_version