[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGXu5jKaYAUEiHjtAg1cTDN7r592QVphYcJHHxJAo+gUn7dGHw@mail.gmail.com>
Date: Mon, 27 Jul 2015 11:33:14 -0700
From: Kees Cook <keescook@...omium.org>
To: James Morris <jmorris@...ei.org>
Cc: linux-security-module <linux-security-module@...r.kernel.org>,
James Morris <james.l.morris@...cle.com>,
Casey Schaufler <casey@...aufler-ca.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] LSM: LoadPin for module and firmware loading restrictions
On Sun, Jul 26, 2015 at 9:26 PM, James Morris <jmorris@...ei.org> wrote:
> 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?
Possibly. There are some other areas of code that almost do the same
thing, but not exactly. Perhaps I'll first change Yama around to use
it, then send these again.
-Kees
--
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists