summaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
authorSargun Dhillon <sargun@sargun.me>2018-03-29 03:28:23 +0200
committerJames Morris <james.morris@microsoft.com>2018-03-31 04:18:27 +0200
commitdf0ce17331e2501dbffc060041dfc6c5f85227b5 (patch)
tree0336a2aa616f738572946bd41bdfbbe1efbf3a83 /security/smack
parentMerge tag 'v4.16-rc6' into next-general (diff)
downloadlinux-df0ce17331e2501dbffc060041dfc6c5f85227b5.tar.xz
linux-df0ce17331e2501dbffc060041dfc6c5f85227b5.zip
security: convert security hooks to use hlist
This changes security_hook_heads to use hlist_heads instead of the circular doubly-linked list heads. This should cut down the size of the struct by about half. In addition, it allows mutation of the hooks at the tail of the callback list without having to modify the head. The longer-term purpose of this is to enable making the heads read only. Signed-off-by: Sargun Dhillon <sargun@sargun.me> Reviewed-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>
Diffstat (limited to 'security/smack')
0 files changed, 0 insertions, 0 deletions