summaryrefslogtreecommitdiffstats
path: root/crypto/tgr192.c
diff options
context:
space:
mode:
authorDavid Howells2019-06-26 22:02:32 +0200
committerDavid Howells2019-06-26 22:02:32 +0200
commit0f44e4d976f96c6439da0d6717238efa4b91196e (patch)
tree3cec4bc4ef3faa4e61058e3aff066a7bec1c9d37 /crypto/tgr192.c
parentkeys: Namespace keyring names (diff)
downloadkernel-qcow2-linux-0f44e4d976f96c6439da0d6717238efa4b91196e.tar.gz
kernel-qcow2-linux-0f44e4d976f96c6439da0d6717238efa4b91196e.tar.xz
kernel-qcow2-linux-0f44e4d976f96c6439da0d6717238efa4b91196e.zip
keys: Move the user and user-session keyrings to the user_namespace
Move the user and user-session keyrings to the user_namespace struct rather than pinning them from the user_struct struct. This prevents these keyrings from propagating across user-namespaces boundaries with regard to the KEY_SPEC_* flags, thereby making them more useful in a containerised environment. The issue is that a single user_struct may be represent UIDs in several different namespaces. The way the patch does this is by attaching a 'register keyring' in each user_namespace and then sticking the user and user-session keyrings into that. It can then be searched to retrieve them. Signed-off-by: David Howells <dhowells@redhat.com> cc: Jann Horn <jannh@google.com>
Diffstat (limited to 'crypto/tgr192.c')
0 files changed, 0 insertions, 0 deletions