mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 14:52:34 +00:00
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>
This commit is contained in:
parent
c1a85a00ea
commit
1cfb2a512e
6 changed files with 11 additions and 27 deletions
|
@ -2112,9 +2112,4 @@ static inline void security_delete_hooks(struct security_hook_list *hooks,
|
|||
|
||||
extern int lsm_inode_alloc(struct inode *inode);
|
||||
|
||||
#ifdef CONFIG_SECURITY
|
||||
void __init lsm_early_cred(struct cred *cred);
|
||||
void __init lsm_early_task(struct task_struct *task);
|
||||
#endif
|
||||
|
||||
#endif /* ! __LINUX_LSM_HOOKS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue