mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Yama: Initialize as ordered LSM
This converts Yama from being a direct "minor" LSM into an ordered LSM. Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Casey Schaufler <[email protected]>
This commit is contained in:
parent
70b62c2566
commit
d6aed64b74
4 changed files with 8 additions and 8 deletions
|
|
@ -477,9 +477,15 @@ static void __init yama_init_sysctl(void)
|
|||
static inline void yama_init_sysctl(void) { }
|
||||
#endif /* CONFIG_SYSCTL */
|
||||
|
||||
void __init yama_add_hooks(void)
|
||||
static int __init yama_init(void)
|
||||
{
|
||||
pr_info("Yama: becoming mindful.\n");
|
||||
security_add_hooks(yama_hooks, ARRAY_SIZE(yama_hooks), "yama");
|
||||
yama_init_sysctl();
|
||||
return 0;
|
||||
}
|
||||
|
||||
DEFINE_LSM(yama) = {
|
||||
.name = "yama",
|
||||
.init = yama_init,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue