]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - security/tomoyo/memory.c
vfs: make the string hashes salt the hash
[mirror_ubuntu-artful-kernel.git] / security / tomoyo / memory.c
index 0e995716cc258b40353f2e559081b0f55ba51b2b..1598b559ac425863f73825303f64d9ab168847b8 100644 (file)
@@ -154,7 +154,7 @@ const struct tomoyo_path_info *tomoyo_get_name(const char *name)
        if (!name)
                return NULL;
        len = strlen(name) + 1;
-       hash = full_name_hash((const unsigned char *) name, len - 1);
+       hash = full_name_hash(NULL, (const unsigned char *) name, len - 1);
        head = &tomoyo_name_list[hash_long(hash, TOMOYO_HASH_BITS)];
        if (mutex_lock_interruptible(&tomoyo_policy_lock))
                return NULL;