ima: limit file hash setting by user to fix and log modes
ima: limit file hash setting by user to fix and log modes

File hashes are automatically set and updated and should not be
manually set. This patch limits file hash setting to fix and log
modes.

Signed-off-by: Dmitry Kasatkin <c116bc32ce0fd3cd5ab78828b5c5c631dc6f63d8@samsung.com>
Signed-off-by: Mimi Zohar <f02992f7c171053741caa6b515d9896745b37477@linux.vnet.ibm.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs