aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-07-26 05:40:52 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2017-07-31 13:10:44 -0400
commit591bb2789bc2a93f379b13d277f441f1b427102d (patch)
treef689ae2ddf68de5a1628d6923dd1d4fcf027ecce /security/selinux/hooks.c
parent5da773a3e81e6093c4346ee8cd356fc214d7c76c (diff)
netfilter: nf_hook_ops structs can be const
We no longer place these on a list so they can be const. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 33fd061305c4..2f2e1338cd3d 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -6530,7 +6530,7 @@ security_initcall(selinux_init);
6530 6530
6531#if defined(CONFIG_NETFILTER) 6531#if defined(CONFIG_NETFILTER)
6532 6532
6533static struct nf_hook_ops selinux_nf_ops[] = { 6533static const struct nf_hook_ops selinux_nf_ops[] = {
6534 { 6534 {
6535 .hook = selinux_ipv4_postroute, 6535 .hook = selinux_ipv4_postroute,
6536 .pf = NFPROTO_IPV4, 6536 .pf = NFPROTO_IPV4,