]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: Make fs_parse() handle fs_param_is_fd-type params better
authorDavid Howells <dhowells@redhat.com>
Mon, 25 Mar 2019 16:38:31 +0000 (16:38 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 Sep 2019 01:06:14 +0000 (21:06 -0400)
commit7b205865773587fc0e4294751201cf1a3c0be4f6
treeb36666d741153e2a86f641f109d26e6735514a24
parentb6448f7b043ea70855835e60802d5be49688b5f0
vfs: Make fs_parse() handle fs_param_is_fd-type params better

Make fs_parse() handle fs_param_is_fd-type parameters that are passed a
string by converting it to an integer (in addition to handling direct fd
specification).

Also range check the integer.

[fix from  Yin Fengwei folded]

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fs_parser.c