ima: pass 'opened' flag to identify newly created files
[linux-2.6-block.git] / fs / namei.c
index 985c6f3684859e17439d62c7d319611305414437..005771f9718960b5e0764f4607095cf96dbd7829 100644 (file)
@@ -3058,7 +3058,7 @@ opened:
        error = open_check_o_direct(file);
        if (error)
                goto exit_fput;
-       error = ima_file_check(file, op->acc_mode);
+       error = ima_file_check(file, op->acc_mode, *opened);
        if (error)
                goto exit_fput;