[PATCH 1/5] ima: Set file->f_mode instead of file->f_flags in ima_calc_file_hash()