[PATCH 5.4 003/111] ima: Set file->f_mode instead of file->f_flags in ima_calc_file_hash()