fs: rework getname_kernel to handle up to PATH_MAX sized filenames
fs: rework getname_kernel to handle up to PATH_MAX sized filenames

In preparation for expanded use in the kernel, make getname_kernel()
more useful by allowing it to handle any legal filename length.

Thanks to Guenter Roeck for his suggestion to substitute memcpy() for
strlcpy().

CC: ba324ca7b1c77fc20bb970d5aff6eea9377918a5@roeck-us.net
CC: de609eb4d5d70b1d38ec6642adbfc33a2781f63c@zeniv.linux.org.uk
CC: c3f243826b2d104fcb652711319ecf7655da7789@vger.kernel.org
Signed-off-by: Paul Moore <88a1d58bf22a647dce58dd91f9595600dceabba9@redhat.com>
Signed-off-by: Al Viro <de609eb4d5d70b1d38ec6642adbfc33a2781f63c@zeniv.linux.org.uk>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs