Re: [PATCH v4 1/6] string_helpers: add kstrdup_quotable

2016-04-12 Thread Serge E. Hallyn
Quoting Kees Cook (keesc...@chromium.org): > Handle allocating and escaping a string safe for logging. > > Signed-off-by: Kees Cook Acked-by: Serge Hallyn > --- > include/linux/string_helpers.h | 2 ++ > lib/string_helpers.c | 28 > 2 files changed, 30

[PATCH v4 1/6] string_helpers: add kstrdup_quotable

2016-04-12 Thread Kees Cook
Handle allocating and escaping a string safe for logging. Signed-off-by: Kees Cook --- include/linux/string_helpers.h | 2 ++ lib/string_helpers.c | 28 2 files changed, 30 insertions(+) diff --git a/include/linux/string_helpers.h b/include/linux/string_h