Re: [PATCH v4 2/6] string_helpers: add kstrdup_quotable_cmdline

2016-04-13 Thread Andy Shevchenko
On Tue, 2016-04-12 at 16:19 -0500, Serge E. Hallyn wrote: > Quoting Kees Cook (keesc...@chromium.org): > > > > Provide an escaped (but readable: no inter-argument NULLs) > > commandline > > safe for logging. > > Sorry, have no access to the original mail right now. >> +char *kstrdup_quotable_cm

Re: [PATCH v4 2/6] string_helpers: add kstrdup_quotable_cmdline

2016-04-12 Thread Serge E. Hallyn
Quoting Kees Cook (keesc...@chromium.org): > Provide an escaped (but readable: no inter-argument NULLs) commandline > safe for logging. > > Signed-off-by: Kees Cook Acked-by: Serge Hallyn > --- > include/linux/string_helpers.h | 1 + > lib/string_helpers.c | 34

[PATCH v4 2/6] string_helpers: add kstrdup_quotable_cmdline

2016-04-12 Thread Kees Cook
Provide an escaped (but readable: no inter-argument NULLs) commandline safe for logging. Signed-off-by: Kees Cook --- include/linux/string_helpers.h | 1 + lib/string_helpers.c | 34 ++ 2 files changed, 35 insertions(+) diff --git a/include/linux/strin