diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2019-01-18 05:15:59 -0500 |
---|---|---|
committer | James Morris <james.morris@microsoft.com> | 2019-01-18 14:44:02 -0500 |
commit | 1cfb2a512e74e577bb0ed7c8d76df90a41a83f6a (patch) | |
tree | f628dd07b171deba0cdc1ff48621f6c07aa0de2a /include/linux/lsm_hooks.h | |
parent | c1a85a00ea66cb6f0bd0f14e47c28c2b0999799f (diff) |
LSM: Make lsm_early_cred() and lsm_early_task() local functions.
Since current->cred == current->real_cred when ordered_lsm_init()
is called, and lsm_early_cred()/lsm_early_task() need to be called
between the amount of required bytes is determined and module specific
initialization function is called, we can move these calls from
individual modules to ordered_lsm_init().
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'include/linux/lsm_hooks.h')
-rw-r--r-- | include/linux/lsm_hooks.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index 195707210975..22fc786d723a 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h | |||
@@ -2112,9 +2112,4 @@ static inline void security_delete_hooks(struct security_hook_list *hooks, | |||
2112 | 2112 | ||
2113 | extern int lsm_inode_alloc(struct inode *inode); | 2113 | extern int lsm_inode_alloc(struct inode *inode); |
2114 | 2114 | ||
2115 | #ifdef CONFIG_SECURITY | ||
2116 | void __init lsm_early_cred(struct cred *cred); | ||
2117 | void __init lsm_early_task(struct task_struct *task); | ||
2118 | #endif | ||
2119 | |||
2120 | #endif /* ! __LINUX_LSM_HOOKS_H */ | 2115 | #endif /* ! __LINUX_LSM_HOOKS_H */ |