Messages in this thread | | | Date | Tue, 7 Jun 2022 12:18:21 -0700 | From | Kees Cook <> | Subject | Re: [RESEND PATCH] smack: Replace kzalloc + strncpy with kstrndup |
| |
On Tue, Jun 07, 2022 at 05:36:49PM +0800, GONG, Ruiqi wrote: > Simplify the code by using kstrndup instead of kzalloc and strncpy in > smk_parse_smack(), which meanwhile remove strncpy as [1] suggests. > > [1]: https://github.com/KSPP/linux/issues/90 > > Signed-off-by: GONG, Ruiqi <gongruiqi1@huawei.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
-- Kees Cook
| |