Commit bb02b186 authored by Mimi Zohar's avatar Mimi Zohar

ima: call ima_file_free() prior to calling fasync

The file hash is calculated and written out as an xattr after
calling fasync().  In order for the file data and metadata to be
written out to disk at the same time, this patch calculates the
file hash and stores it as an xattr before calling fasync.
Signed-off-by: default avatarMimi Zohar <>
parent a7d3d039
......@@ -201,11 +201,11 @@ static void __fput(struct file *file)
if (unlikely(file->f_flags & FASYNC)) {
if (file->f_op->fasync)
file->f_op->fasync(-1, file, 0);
if (file->f_op->release)
file->f_op->release(inode, file);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment