From: Greg KH <greg@kroah.com>
To: Eric Biggers <ebiggers3@gmail.com>
Cc: stable@vger.kernel.org, David Howells <dhowells@redhat.com>,
Eric Biggers <ebiggers@google.com>
Subject: Re: [PATCH 1/2 for 3.18/4.1] KEYS: Don't permit request_key() to construct a new keyring
Date: Mon, 18 Dec 2017 13:07:07 +0100 [thread overview]
Message-ID: <20171218120707.GD31295@kroah.com> (raw)
In-Reply-To: <20171215204418.130486-1-ebiggers3@gmail.com>
On Fri, Dec 15, 2017 at 12:44:17PM -0800, Eric Biggers wrote:
> From: David Howells <dhowells@redhat.com>
>
> commit 911b79cde95c7da0ec02f48105358a36636b7a71 upstream.
> [Please apply to 3.18-stable and 4.1-stable.]
>
> If request_key() is used to find a keyring, only do the search part - don't
> do the construction part if the keyring was not found by the search. We
> don't really want keyrings in the negative instantiated state since the
> rejected/negative instantiation error value in the payload is unioned with
> keyring metadata.
>
> Now the kernel gives an error:
>
> request_key("keyring", "#selinux,bdekeyring", "keyring", KEY_SPEC_USER_SESSION_KEYRING) = -1 EPERM (Operation not permitted)
>
> Signed-off-by: David Howells <dhowells@redhat.com>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
> security/keys/request_key.c | 3 +++
> 1 file changed, 3 insertions(+)
Now applied to 3.18, thanks.
greg k-h
prev parent reply other threads:[~2017-12-18 12:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-15 20:44 [PATCH 1/2 for 3.18/4.1] KEYS: Don't permit request_key() to construct a new keyring Eric Biggers
2017-12-15 20:44 ` [PATCH 2/2 for 3.18/4.1] KEYS: add missing permission check for request_key() destination Eric Biggers
2017-12-18 12:06 ` Greg KH
2017-12-18 12:07 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171218120707.GD31295@kroah.com \
--to=greg@kroah.com \
--cc=dhowells@redhat.com \
--cc=ebiggers3@gmail.com \
--cc=ebiggers@google.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).