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:18:30 +0000 (17:18 -0700)
commite5362560a01dd6fac5922434e16b16a1accea504
treeed7744c4b7d4cc07328f3497d0c10597524f1f24
parent4e208303119d234347b1f4337b84d47306e73811
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