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>
Fri, 27 Sep 2013 00:21:59 +0000 (17:21 -0700)
commit459c331dc57b47a3983322caa37c605bf99faea3
treea05be2b94a88cbc082bc234184627a88ebd27f14
parent125fe73b6a1e9be5014b6199f479ccb3c8d1b479
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fuse/dir.c