diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-26 12:47:35 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-08-28 23:33:19 +0200 |
commit | 0c3014f22dec0e1d14c8298551bfb6434638bdd9 (patch) | |
tree | 17557ee83464a436e694a9d167c33ff0238abc7e /security | |
parent | selinux: allow per-file labeling for cgroupfs (diff) | |
download | linux-0c3014f22dec0e1d14c8298551bfb6434638bdd9.tar.xz linux-0c3014f22dec0e1d14c8298551bfb6434638bdd9.zip |
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>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index f803fdcde9cf..45943e18da8b 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -6550,7 +6550,7 @@ security_initcall(selinux_init); #if defined(CONFIG_NETFILTER) -static struct nf_hook_ops selinux_nf_ops[] = { +static const struct nf_hook_ops selinux_nf_ops[] = { { .hook = selinux_ipv4_postroute, .pf = NFPROTO_IPV4, |