diff options
author | Alban Crequy <alban.crequy@collabora.co.uk> | 2012-05-13 23:56:39 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-07 08:58:43 -0400 |
commit | 2597a8344ce051d0afe331706bcb4660bbdb9861 (patch) | |
tree | f0ab9af632909f4afea1a162370a94583d91ba78 /security | |
parent | 4c809d630c17af0e8112d5362367ced9b44b009b (diff) |
netfilter: selinux: switch hook PFs to nfproto
This patch is a cleanup. Use NFPROTO_* for consistency with other
netfilter code.
Signed-off-by: Alban Crequy <alban.crequy@collabora.co.uk>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Vincent Sanders <vincent.sanders@collabora.co.uk>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 372ec6502aa8..4ee6f2370016 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -5763,21 +5763,21 @@ static struct nf_hook_ops selinux_ipv4_ops[] = { | |||
5763 | { | 5763 | { |
5764 | .hook = selinux_ipv4_postroute, | 5764 | .hook = selinux_ipv4_postroute, |
5765 | .owner = THIS_MODULE, | 5765 | .owner = THIS_MODULE, |
5766 | .pf = PF_INET, | 5766 | .pf = NFPROTO_IPV4, |
5767 | .hooknum = NF_INET_POST_ROUTING, | 5767 | .hooknum = NF_INET_POST_ROUTING, |
5768 | .priority = NF_IP_PRI_SELINUX_LAST, | 5768 | .priority = NF_IP_PRI_SELINUX_LAST, |
5769 | }, | 5769 | }, |
5770 | { | 5770 | { |
5771 | .hook = selinux_ipv4_forward, | 5771 | .hook = selinux_ipv4_forward, |
5772 | .owner = THIS_MODULE, | 5772 | .owner = THIS_MODULE, |
5773 | .pf = PF_INET, | 5773 | .pf = NFPROTO_IPV4, |
5774 | .hooknum = NF_INET_FORWARD, | 5774 | .hooknum = NF_INET_FORWARD, |
5775 | .priority = NF_IP_PRI_SELINUX_FIRST, | 5775 | .priority = NF_IP_PRI_SELINUX_FIRST, |
5776 | }, | 5776 | }, |
5777 | { | 5777 | { |
5778 | .hook = selinux_ipv4_output, | 5778 | .hook = selinux_ipv4_output, |
5779 | .owner = THIS_MODULE, | 5779 | .owner = THIS_MODULE, |
5780 | .pf = PF_INET, | 5780 | .pf = NFPROTO_IPV4, |
5781 | .hooknum = NF_INET_LOCAL_OUT, | 5781 | .hooknum = NF_INET_LOCAL_OUT, |
5782 | .priority = NF_IP_PRI_SELINUX_FIRST, | 5782 | .priority = NF_IP_PRI_SELINUX_FIRST, |
5783 | } | 5783 | } |
@@ -5789,14 +5789,14 @@ static struct nf_hook_ops selinux_ipv6_ops[] = { | |||
5789 | { | 5789 | { |
5790 | .hook = selinux_ipv6_postroute, | 5790 | .hook = selinux_ipv6_postroute, |
5791 | .owner = THIS_MODULE, | 5791 | .owner = THIS_MODULE, |
5792 | .pf = PF_INET6, | 5792 | .pf = NFPROTO_IPV6, |
5793 | .hooknum = NF_INET_POST_ROUTING, | 5793 | .hooknum = NF_INET_POST_ROUTING, |
5794 | .priority = NF_IP6_PRI_SELINUX_LAST, | 5794 | .priority = NF_IP6_PRI_SELINUX_LAST, |
5795 | }, | 5795 | }, |
5796 | { | 5796 | { |
5797 | .hook = selinux_ipv6_forward, | 5797 | .hook = selinux_ipv6_forward, |
5798 | .owner = THIS_MODULE, | 5798 | .owner = THIS_MODULE, |
5799 | .pf = PF_INET6, | 5799 | .pf = NFPROTO_IPV6, |
5800 | .hooknum = NF_INET_FORWARD, | 5800 | .hooknum = NF_INET_FORWARD, |
5801 | .priority = NF_IP6_PRI_SELINUX_FIRST, | 5801 | .priority = NF_IP6_PRI_SELINUX_FIRST, |
5802 | } | 5802 | } |