diff options
author | Paul Moore <pmoore@redhat.com> | 2012-06-01 05:54:56 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-16 08:47:36 -0700 |
commit | 49ffa112f667e1739d8c6352d7f902c8afd45dae (patch) | |
tree | cdc455fc5648654344d31d151ae3eefc3888cd5e /net/l2tp/l2tp_eth.c | |
parent | 325b4161bab9ba01b345c4483bbb0e36cb571943 (diff) | |
download | kernel_samsung_smdk4412-49ffa112f667e1739d8c6352d7f902c8afd45dae.zip kernel_samsung_smdk4412-49ffa112f667e1739d8c6352d7f902c8afd45dae.tar.gz kernel_samsung_smdk4412-49ffa112f667e1739d8c6352d7f902c8afd45dae.tar.bz2 |
cipso: handle CIPSO options correctly when NetLabel is disabled
[ Upstream commit 20e2a86485967c385d7c7befc1646e4d1d39362e ]
When NetLabel is not enabled, e.g. CONFIG_NETLABEL=n, and the system
receives a CIPSO tagged packet it is dropped (cipso_v4_validate()
returns non-zero). In most cases this is the correct and desired
behavior, however, in the case where we are simply forwarding the
traffic, e.g. acting as a network bridge, this becomes a problem.
This patch fixes the forwarding problem by providing the basic CIPSO
validation code directly in ip_options_compile() without the need for
the NetLabel or CIPSO code. The new validation code can not perform
any of the CIPSO option label/value verification that
cipso_v4_validate() does, but it can verify the basic CIPSO option
format.
The behavior when NetLabel is enabled is unchanged.
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/l2tp/l2tp_eth.c')
0 files changed, 0 insertions, 0 deletions