ima: use file_dentry()
[deliverable/linux.git] / security / integrity / ima / ima_main.c
index 596ef616ac2183fe1eb65a4899b9941af48b67db..423d111b3b9475ef43092b77a744ed6fe65599ab 100644 (file)
@@ -228,7 +228,7 @@ static int process_measurement(struct file *file, char *buf, loff_t size,
        if ((action & IMA_APPRAISE_SUBMASK) ||
                    strcmp(template_desc->name, IMA_TEMPLATE_IMA_NAME) != 0)
                /* read 'security.ima' */
-               xattr_len = ima_read_xattr(file->f_path.dentry, &xattr_value);
+               xattr_len = ima_read_xattr(file_dentry(file), &xattr_value);
 
        hash_algo = ima_get_hash_algo(xattr_value, xattr_len);
 
This page took 0.026301 seconds and 5 git commands to generate.