Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752279AbbG0E0j (ORCPT ); Mon, 27 Jul 2015 00:26:39 -0400 Received: from tundra.namei.org ([65.99.196.166]:34277 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbbG0E0i (ORCPT ); Mon, 27 Jul 2015 00:26:38 -0400 Date: Mon, 27 Jul 2015 14:26:31 +1000 (AEST) From: James Morris To: Kees Cook cc: linux-security-module@vger.kernel.org, James Morris , Casey Schaufler , linux-kernel@vger.kernel.org Subject: Re: [PATCH] LSM: LoadPin for module and firmware loading restrictions In-Reply-To: <20150724005330.GA15227@www.outflux.net> Message-ID: References: <20150724005330.GA15227@www.outflux.net> User-Agent: Alpine 2.11 (LRH 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 572 Lines: 23 On Thu, 23 Jul 2015, Kees Cook wrote: > + > +/* > + * Return an allocated string that has been escaped of special characters > + * and double quotes, making it safe to log in quotes. > + */ > +static char *kstrdup_quotable(char *src) > +{ Do you think these should go into a library? -- James Morris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/