Re: [PATCH v8 2/8] auditsc: Replace memcpy() with strscpy()

2024-09-12 Thread Justin Stitt
Hi, On Wed, Aug 28, 2024 at 11:03:15AM GMT, Yafang Shao wrote: > Using strscpy() to read the task comm ensures that the name is > always NUL-terminated, regardless of the source string. This approach also > facilitates future extensions to the task comm. > > Signed-off-by: Yafang Shao > Acked-by

[PATCH v8 2/8] auditsc: Replace memcpy() with strscpy()

2024-08-27 Thread Yafang Shao
Using strscpy() to read the task comm ensures that the name is always NUL-terminated, regardless of the source string. This approach also facilitates future extensions to the task comm. Signed-off-by: Yafang Shao Acked-by: Paul Moore Cc: Eric Paris --- kernel/auditsc.c | 6 +++--- 1 file chang