keys: Network namespace domain tag
authorDavid Howells <dhowells@redhat.com>
Wed, 26 Jun 2019 20:02:33 +0000 (21:02 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 26 Jun 2019 20:02:33 +0000 (21:02 +0100)
commit9b242610514fe387ef957bce05e1fdd3efd60359
tree57917a3649c3a4b0bd66a54fbab24c4ca644ab56
parent218e6424e711ceee31eeba93212fed8ee92d6a11
keys: Network namespace domain tag

Create key domain tags for network namespaces and make it possible to
automatically tag keys that are used by networked services (e.g. AF_RXRPC,
AFS, DNS) with the default network namespace if not set by the caller.

This allows keys with the same description but in different namespaces to
coexist within a keyring.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: netdev@vger.kernel.org
cc: linux-nfs@vger.kernel.org
cc: linux-cifs@vger.kernel.org
cc: linux-afs@lists.infradead.org
include/linux/key-type.h
include/net/net_namespace.h
net/core/net_namespace.c
net/dns_resolver/dns_key.c
net/rxrpc/key.c
security/keys/keyring.c