Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1458267 > unrolled thread

Re: [PATCH] keyrings: Allow searching the user session keyring

Started byGwendal Grignou <gwendal@chromium.org>
First post2016-08-08 23:50 +0200
Last post2016-08-08 23:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] keyrings: Allow searching the user session keyring Gwendal Grignou <gwendal@chromium.org> - 2016-08-08 23:50 +0200

#1458267 — Re: [PATCH] keyrings: Allow searching the user session keyring

FromGwendal Grignou <gwendal@chromium.org>
Date2016-08-08 23:50 +0200
SubjectRe: [PATCH] keyrings: Allow searching the user session keyring
Message-ID<s40AN-6RI-9@gated-at.bofh.it>
On Tue, Jun 14, 2016 at 2:46 AM, David Howells <dhowells@redhat.com> wrote:
> Gwendal Grignou <gwendal@chromium.org> wrote:
>
>> Currently, if a session keyring exists, we are not searching in the
>> user session or user keyrings.
>
> That is correct.  New session keyrings are given a link to the user session if
> created by pam_keyinit.  If you don't want to search the user keyring, you can
> just unlink it from your session keyring.
The problem I am facing is that ecrytpfs library (see
https://github.com/dustinkirkland/ecryptfs-utils/blob/master/src/libecryptfs/key_management.c,
function ecryptfs_add_auth_tok_to_keyring) specifically adds the
needed keys to user keyring.
Without the patch above, this code stops working when a session
keyring exists, because the kernel will not search within the user
keyring.
>
> The uid 0 user-session keyring is a potential
> security hole because it allows implicit sharing of authentication data
> between daemon processes.
For ecryptfs, multiple root processes needs to access the key. For
mitigating security risk, we run root daemons that don't need the key
in thin container (called minijail).
>
> David

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web