diff options
author | David Howells <dhowells@redhat.com> | 2012-05-11 05:56:56 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-05-11 05:56:56 -0400 |
commit | 1eb1bcf5bfad001128293b86d891c9d6f2f27333 (patch) | |
tree | af7fce4f0dae5bad37335b0fcf8b2e0d27342a9b /security | |
parent | 9f7ce8e249ab761c7ed753059cb16319ede41762 (diff) |
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')
-rw-r--r-- | security/keys/key.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/keys/key.c b/security/keys/key.c index 06783cffb3af..dc628941ecd3 100644 --- a/security/keys/key.c +++ b/security/keys/key.c | |||
@@ -980,6 +980,8 @@ int register_key_type(struct key_type *ktype) | |||
980 | 980 | ||
981 | /* store the type */ | 981 | /* store the type */ |
982 | list_add(&ktype->link, &key_types_list); | 982 | list_add(&ktype->link, &key_types_list); |
983 | |||
984 | pr_notice("Key type %s registered\n", ktype->name); | ||
983 | ret = 0; | 985 | ret = 0; |
984 | 986 | ||
985 | out: | 987 | out: |
@@ -1002,6 +1004,7 @@ void unregister_key_type(struct key_type *ktype) | |||
1002 | list_del_init(&ktype->link); | 1004 | list_del_init(&ktype->link); |
1003 | downgrade_write(&key_types_sem); | 1005 | downgrade_write(&key_types_sem); |
1004 | key_gc_keytype(ktype); | 1006 | key_gc_keytype(ktype); |
1007 | pr_notice("Key type %s unregistered\n", ktype->name); | ||
1005 | up_read(&key_types_sem); | 1008 | up_read(&key_types_sem); |
1006 | } | 1009 | } |
1007 | EXPORT_SYMBOL(unregister_key_type); | 1010 | EXPORT_SYMBOL(unregister_key_type); |