diff options
| author | Sascha Hauer <[email protected]> | 2017-09-27 06:39:54 +0000 |
|---|---|---|
| committer | Mimi Zohar <[email protected]> | 2017-12-18 14:43:49 +0000 |
| commit | a2a2c3c8580a9158bca61221648fd6d5c98c443a (patch) | |
| tree | 757954b05ff282edd655f8fdd3929fd7aa80d72c /drivers/fpga/fpga-bridge.c | |
| parent | integrity: remove unneeded initializations in integrity_iint_cache entries (diff) | |
| download | kernel-a2a2c3c8580a9158bca61221648fd6d5c98c443a.tar.gz kernel-a2a2c3c8580a9158bca61221648fd6d5c98c443a.zip | |
ima: Use i_version only when filesystem supports it
i_version is only supported by a filesystem when the SB_I_VERSION
flag is set. This patch tests for the SB_I_VERSION flag before using
i_version. If we can't use i_version to detect a file change then we
must assume the file has changed in the last_writer path and remeasure
it.
On filesystems without i_version support IMA used to measure a file
only once and didn't detect any changes to a file. With this patch
IMA now works properly on these filesystems.
Signed-off-by: Sascha Hauer <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
