LSM: Make lsm_early_cred() and lsm_early_task() local functions.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fri, 18 Jan 2019 10:15:59 +0000 (19:15 +0900)
committerJames Morris <james.morris@microsoft.com>
Fri, 18 Jan 2019 19:44:02 +0000 (11:44 -0800)
commit1cfb2a512e74e577bb0ed7c8d76df90a41a83f6a
treef628dd07b171deba0cdc1ff48621f6c07aa0de2a
parentc1a85a00ea66cb6f0bd0f14e47c28c2b0999799f
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>
include/linux/lsm_hooks.h
security/apparmor/lsm.c
security/security.c
security/selinux/hooks.c
security/smack/smack_lsm.c
security/tomoyo/tomoyo.c