]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ROMFS: romfs_lookup() shouldn't be doing a partial name comparison
authorDavid Howells <dhowells@redhat.com>
Thu, 23 Apr 2009 15:41:13 +0000 (16:41 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Apr 2009 20:28:31 +0000 (13:28 -0700)
commit84baf74bf23bbe9f3deafb5d2f27e2b5dc0bc052
tree45af84d051ca760a9f9f24aa3775e5505ccd3627
parenta5422a5111811401f7756345e4c237ff06cf6d1e
ROMFS: romfs_lookup() shouldn't be doing a partial name comparison

romfs_lookup() should be using a routine akin to strcmp() on the backing store,
rather than one akin to strncmp().  If it uses the latter, it's liable to match
/bin/shutdown when looking up /bin/sh.

Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/romfs/internal.h
fs/romfs/storage.c
fs/romfs/super.c