[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7422.1403875460@warthog.procyon.org.uk>
Date: Fri, 27 Jun 2014 14:24:20 +0100
From: David Howells <dhowells@...hat.com>
To: Mimi Zohar <zohar@...ux.vnet.ibm.com>
Cc: dhowells@...hat.com, keyrings <keyrings@...ux-nfs.org>,
linux-security-module <linux-security-module@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
Josh Boyer <jwboyer@...hat.com>,
Matthew Garrett <mjg59@...f.ucam.org>,
Dmitry Kasatkin <dmitry.kasatkin@...il.com>
Subject: Re: [PATCH v6 1/6] KEYS: special dot prefixed keyring name bug fix
Mimi Zohar <zohar@...ux.vnet.ibm.com> wrote:
> Dot prefixed keyring names are supposed to be reserved for the
> kernel, but add_key() calls key_get_type_from_user(), which
> incorrectly verifies the 'type' field, not the 'description' field.
> This patch verifies the 'description' field isn't dot prefixed,
> when creating a new keyring, and removes the dot prefix test in
> key_get_type_from_user().
>
> Changelog v6:
> - whitespace and other cleanup
>
> Changelog v5:
> - Only prevent userspace from creating a dot prefixed keyring, not
> regular keys - Dmitry
>
> Reported-by: Dmitry Kasatkin <d.kasatkin@...sung.com>
> Cc: David Howells <dhowells@...hat.com>
> Signed-off-by: Mimi Zohar <zohar@...ux.vnet.ibm.com>
Acked-by: David Howells <dhowells@...hat.com>
--
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