函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:security\integrity\ima\ima_main.c Create Date:2022-07-27 21:59:15
首页 Copyright©Brick

170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/**
 * ima_file_free - called on __fput()
 * @file: pointer to file structure being freed
 *
 * Flag files that changed, based on i_version
 */
void ima_file_free(struct file *file)
{
    struct inode *inode = file_inode(file);
    struct integrity_iint_cache *iint;
 
    if (!ima_policy_flag || !S_ISREG(inode->i_mode))
        return;
 
    iint = integrity_iint_find(inode);
    if (!iint)
        return;
 
    ima_check_last_writer(iint, inode, file);
}