summaryrefslogtreecommitdiff
path: root/security/keys
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-05-11 10:56:56 +0100
committerDavid Howells <dhowells@redhat.com>2012-05-11 10:56:56 +0100
commit1eb1bcf5bfad001128293b86d891c9d6f2f27333 (patch)
treeaf7fce4f0dae5bad37335b0fcf8b2e0d27342a9b /security/keys
parent9f7ce8e249ab761c7ed753059cb16319ede41762 (diff)
downloadlinux-3.10-1eb1bcf5bfad001128293b86d891c9d6f2f27333.tar.gz
linux-3.10-1eb1bcf5bfad001128293b86d891c9d6f2f27333.tar.bz2
linux-3.10-1eb1bcf5bfad001128293b86d891c9d6f2f27333.zip
KEYS: Announce key type (un)registration
Announce the (un)registration of a key type in the core key code rather than in the callers. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Mimi Zohar <zohar@us.ibm.com>
Diffstat (limited to 'security/keys')
-rw-r--r--security/keys/key.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/keys/key.c b/security/keys/key.c
index 06783cffb3a..dc628941ecd 100644
--- a/security/keys/key.c
+++ b/security/keys/key.c
@@ -980,6 +980,8 @@ int register_key_type(struct key_type *ktype)
/* store the type */
list_add(&ktype->link, &key_types_list);
+
+ pr_notice("Key type %s registered\n", ktype->name);
ret = 0;
out:
@@ -1002,6 +1004,7 @@ void unregister_key_type(struct key_type *ktype)
list_del_init(&ktype->link);
downgrade_write(&key_types_sem);
key_gc_keytype(ktype);
+ pr_notice("Key type %s unregistered\n", ktype->name);
up_read(&key_types_sem);
}
EXPORT_SYMBOL(unregister_key_type);