History

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.

Mimi Zohar committed 9 years ago

Commit bb02b181 parent a7d3d031 file · +1 −1Browse files

Unified · Split

fs/file_table.c+1−1
@@ -201,11 +201,11 @@ static void __fput(struct file *file) · 200 unmodified lines
201201 eventpoll_release(file);
202202 locks_remove_file(file);
203203
204+ ima_file_free(file);
204205 if (unlikely(file->f_flags & FASYNC)) {
205206 if (file->f_op->fasync)
206207 file->f_op->fasync(-1, file, 0);
207208 }
208− ima_file_free(file);
209209 if (file->f_op->release)
210210 file->f_op->release(inode, file);
211211 security_file_free(file);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t