apparmor: fix SECURITY_APPARMOR_HASH_DEFAULT parameter handling
[deliverable/linux.git] / security / apparmor / policy_unpack.c
index b9b1c66a32a552b68e2a7447c6052866fef53026..138120698f839e049a5cf2460572559f3529e337 100644 (file)
@@ -778,8 +778,7 @@ int aa_unpack(void *udata, size_t size, struct list_head *lh, const char **ns)
                if (error)
                        goto fail_profile;
 
-               if (aa_g_hash_policy)
-                       error = aa_calc_profile_hash(profile, e.version, start,
+               error = aa_calc_profile_hash(profile, e.version, start,
                                                     e.pos - start);
                if (error)
                        goto fail_profile;
This page took 0.024994 seconds and 5 git commands to generate.