Commit 3dfc9b02 authored by Tetsuo Handa's avatar Tetsuo Handa 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: default avatarTetsuo Handa <>
Acked-by: default avatarKees Cook <>
Cc: John Johansen <>
Cc: Kees Cook <>
Cc: Paul Moore <>
Cc: Stephen Smalley <>
Cc: Casey Schaufler <>
Cc: James Morris <>
Signed-off-by: default avatarJames Morris <>
parent ca97d939
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment