]> git.baikalelectronics.ru Git - kernel.git/commit
ima: fix fallback to use new_sync_read()
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Mon, 23 Jun 2014 17:32:56 +0000 (20:32 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 2 Sep 2014 21:03:36 +0000 (17:03 -0400)
commit9d08ca508d4097e428b3e5edcbe41435d172cc5f
tree4b076267fc56dae543500db4532163eb53c9bf19
parent4d4cb6889df66ac55cda4ec23f48567234629b19
ima: fix fallback to use new_sync_read()

3.16 commit 521472ae8d16aea9892f2e6a90c2acaf64804b11
'switch simple generic_file_aio_read() users to ->read_iter()'
replaced ->aio_read with ->read_iter in most of the file systems
and introduced new_sync_read() as a replacement for do_sync_read().

Most of file systems set '->read' and ima_kernel_read is not affected.
When ->read is not set, this patch adopts fallback call changes from the
vfs_read.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: <stable@vger.kernel.org> 3.16+
security/integrity/ima/ima_crypto.c