Commit 3dfc9b02 authored by Committed by James Morris
LSM: Initialize security_hook_heads upon registration.
"struct security_hook_heads" is an array of "struct list_head" where elements can be initialized just before registration. There is no need to waste 350+ lines for initialization. Let's initialize "struct security_hook_heads" just before registration. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Acked-by: Kees Cook <email@example.com> Cc: John Johansen <firstname.lastname@example.org> Cc: Kees Cook <email@example.com> Cc: Paul Moore <firstname.lastname@example.org> Cc: Stephen Smalley <email@example.com> Cc: Casey Schaufler <firstname.lastname@example.org> Cc: James Morris <email@example.com> Signed-off-by: James Morris <firstname.lastname@example.org>
Showing with 7 additions and 354 deletions