aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-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 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
985out: 987out:
@@ -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}
1007EXPORT_SYMBOL(unregister_key_type); 1010EXPORT_SYMBOL(unregister_key_type);