]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tsacct: replace strncpy() with strscpy()
authorKees Cook <kees@kernel.org>
Thu, 11 Jul 2024 17:13:09 +0000 (10:13 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Jul 2024 23:39:53 +0000 (16:39 -0700)
commit0fe2356434e157b3952ff4dbdfe0a96070ddcaa2
tree3694562342d19f39826486979c7c34bf77a1338b
parente1fb7430fcb00431087fc1c088ec9e8737cf6c7d
tsacct: replace strncpy() with strscpy()

Replace the deprecated[1] use of strncpy() in bacct_add_tsk().  Since this
is UAPI, include trailing padding in the copy.

Link: https://github.com/KSPP/linux/issues/90
Link: https://lkml.kernel.org/r/20240711171308.work.995-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Cc: "Dr. Thomas Orgis" <thomas.orgis@uni-hamburg.de>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Ismael Luceno <ismael@iodev.co.uk>
Cc: Peng Liu <liupeng256@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/tsacct.c