]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fuse: readdir: check for slash in names
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 3 Sep 2013 12:28:38 +0000 (14:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Mar 2014 23:10:04 +0000 (16:10 -0700)
commitf4a69e06dc99cd683fa001c49eb92da36fd76d1d
treeb7626dcc5c153918d12bb171ea20bbccdd7f0c15
parent831c87640d23ccb253a02e4901bd9a325b5e8c2d
fuse: readdir: check for slash in names

commit efeb9e60d48f7778fdcad4a0f3ad9ea9b19e5dfd upstream.

Userspace can add names containing a slash character to the directory
listing.  Don't allow this as it could cause all sorts of trouble.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
[bwh: Backported to 3.2: drop changes to parse_dirplusfile() which we
 don't have]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Rui Xiang <rui.xiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fuse/dir.c