diff options
Diffstat (limited to 'security/loadpin/loadpin.c')
-rw-r--r-- | security/loadpin/loadpin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/security/loadpin/loadpin.c b/security/loadpin/loadpin.c index 5fa191252c8f..0716af28808a 100644 --- a/security/loadpin/loadpin.c +++ b/security/loadpin/loadpin.c | |||
@@ -173,9 +173,15 @@ static int loadpin_read_file(struct file *file, enum kernel_read_file_id id) | |||
173 | return 0; | 173 | return 0; |
174 | } | 174 | } |
175 | 175 | ||
176 | static int loadpin_load_data(enum kernel_load_data_id id) | ||
177 | { | ||
178 | return loadpin_read_file(NULL, (enum kernel_read_file_id) id); | ||
179 | } | ||
180 | |||
176 | static struct security_hook_list loadpin_hooks[] __lsm_ro_after_init = { | 181 | static struct security_hook_list loadpin_hooks[] __lsm_ro_after_init = { |
177 | LSM_HOOK_INIT(sb_free_security, loadpin_sb_free_security), | 182 | LSM_HOOK_INIT(sb_free_security, loadpin_sb_free_security), |
178 | LSM_HOOK_INIT(kernel_read_file, loadpin_read_file), | 183 | LSM_HOOK_INIT(kernel_read_file, loadpin_read_file), |
184 | LSM_HOOK_INIT(kernel_load_data, loadpin_load_data), | ||
179 | }; | 185 | }; |
180 | 186 | ||
181 | void __init loadpin_add_hooks(void) | 187 | void __init loadpin_add_hooks(void) |