Add a LSM Hook for key_create_or_update function. The motive behind this change is enable subsystems to receive notification when a new key is created or updated. IMA will be one of the subsystems that will use this hook to measure the newly created key. Lakshmi Ramasubramanian (1): KEYS: LSM Hook for key_create_or_update certs/system_keyring.c | 23 +++++++++++++++++++++++ include/keys/system_keyring.h | 4 ++++ include/linux/ima.h | 8 ++++++++ include/linux/lsm_hooks.h | 14 ++++++++++++++ include/linux/security.h | 10 ++++++++++ security/integrity/ima/ima.h | 1 + security/integrity/ima/ima_main.c | 19 +++++++++++++++++++ security/keys/key.c | 8 ++++++++ security/security.c | 11 +++++++++++ 9 files changed, 98 insertions(+) -- 2.17.1