]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: constify nf_hook_ops
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 26 Aug 2017 10:47:35 +0000 (16:17 +0530)
committerPaul Moore <paul@paul-moore.com>
Mon, 28 Aug 2017 21:33:19 +0000 (17:33 -0400)
commit29526b9c95f4fd824ae5e5590e782982f800db6e
tree17557ee83464a436e694a9d167c33ff0238abc7e
parent8f6294483a05051efc586eb78efd493d4dc4d222
selinux: constify nf_hook_ops

nf_hook_ops are not supposed to change at runtime. nf_register_net_hooks
and nf_unregister_net_hooks are working with const nf_hook_ops.
So mark the non-const nf_hook_ops structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c