]> git.baikalelectronics.ru Git - kernel.git/commit
ima: call ima_file_free() prior to calling fasync
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 22 Jun 2017 01:13:18 +0000 (21:13 -0400)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 8 Nov 2017 20:16:36 +0000 (15:16 -0500)
commit490f77b03f762e84680d382bdc0e9de6ac1bc674
treeb13e88ebb2cc873dd9ad72dc3cf9e3de69ecb32b
parentfb45ca173ee25470d3f66bc61b485c6a50c48a32
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: Mimi Zohar <zohar@linux.vnet.ibm.com>
fs/file_table.c