rxrpc: Allow security classes to give more info on server keys
Allow a security class to give more information on an rxrpc_s-type key when it is viewed in /proc/keys. This will allow the upcoming RxGK security class to show the enctype name here. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
@@ -105,7 +105,11 @@ static void rxrpc_destroy_s(struct key *key)
|
||||
|
||||
static void rxrpc_describe_s(const struct key *key, struct seq_file *m)
|
||||
{
|
||||
const struct rxrpc_security *sec = key->payload.data[1];
|
||||
|
||||
seq_puts(m, key->description);
|
||||
if (sec && sec->describe_server_key)
|
||||
sec->describe_server_key(key, m);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user