1 --- a/backport-include/linux/string.h
2 +++ b/backport-include/linux/string.h
3 @@ -25,4 +25,8 @@ extern void *memdup_user_nul(const void
4 void memzero_explicit(void *s, size_t count);
7 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0))
8 +ssize_t strscpy(char *dest, const char *src, size_t count);
11 #endif /* __BACKPORT_LINUX_STRING_H */
12 --- a/compat/backport-4.3.c
13 +++ b/compat/backport-4.3.c
14 @@ -57,3 +57,29 @@ void seq_hex_dump(struct seq_file *m, co
17 EXPORT_SYMBOL_GPL(seq_hex_dump);
19 +ssize_t strscpy(char *dest, const char *src, size_t count)
37 + /* Hit buffer length without finding a NUL; force NUL-termination. */
43 +EXPORT_SYMBOL_GPL(strscpy);