Paul Moore
20e2a86485
cipso: handle CIPSO options correctly when NetLabel is disabled
...
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>
2012-06-01 14:18:29 -04:00
..
2012-01-05 10:51:44 -06:00
2012-05-16 16:14:17 -03:00
2012-04-13 11:37:36 -04:00
2011-03-31 11:26:23 -03:00
2012-03-07 22:52:24 -08:00
2012-05-08 19:36:33 +02:00
2012-05-08 19:35:18 +02:00
2012-05-15 17:31:22 -04:00
2011-05-02 15:26:28 -07:00
2012-05-16 22:17:37 -04:00
2010-08-20 01:42:59 -07:00
2011-07-06 02:52:16 -07:00
2012-05-19 01:08:16 -04:00
2009-08-12 21:54:50 -07:00
2011-04-24 10:54:56 -07:00
2012-04-15 12:44:40 -04:00
2011-01-13 21:48:25 -08:00
2012-02-15 17:48:35 -05:00
2011-11-30 18:51:03 -05:00
2012-04-23 22:14:47 -04:00
2009-03-24 23:32:03 -07:00
2011-08-08 14:26:29 -04:00
2012-05-16 13:08:15 -04:00
2012-06-01 14:18:29 -04:00
2010-10-07 09:43:45 +02:00
2012-05-16 15:30:26 -04:00
2012-04-15 12:44:40 -04:00
2011-10-06 15:49:51 -04:00
2012-04-05 05:08:04 -04:00
2010-11-08 13:50:08 -08:00
2012-04-15 12:44:40 -04:00
2010-06-03 03:21:52 -07:00
2012-04-15 12:44:40 -04:00
2012-04-15 12:44:40 -04:00
2011-12-01 11:41:06 -05:00
2012-04-15 12:44:40 -04:00
2012-05-27 01:11:22 -04:00
2009-03-27 00:16:21 -07:00
2010-10-27 11:37:32 -07:00
2011-11-29 13:17:03 -05:00
2012-02-04 19:29:48 -05:00
2011-05-12 17:46:56 -04:00
2011-03-31 11:26:23 -03:00
2012-01-30 15:22:06 -05:00
2010-08-21 23:05:39 -07:00
2012-04-15 12:44:40 -04:00
2011-11-11 12:32:50 -05:00
2012-05-16 15:16:56 -04:00
2011-11-14 00:19:42 -05:00
2012-05-15 20:14:35 -04:00
2012-04-14 15:28:55 -04:00
2011-12-11 18:25:16 -05:00
2010-07-12 20:21:46 -07:00
2012-04-27 00:03:34 -04:00
2011-10-22 01:25:23 -04:00
2012-05-18 01:40:27 -04:00
2011-07-26 16:49:47 -07:00
2012-02-13 00:46:41 -05:00
2011-12-14 13:34:55 -05:00
2012-03-08 00:30:32 -08:00
2012-04-17 22:31:59 -04:00
2012-05-19 01:08:16 -04:00
2010-10-25 13:09:45 -07:00
2012-04-15 12:44:40 -04:00
2012-05-08 19:40:33 +02:00
2012-05-15 20:14:35 -04:00
2010-02-16 23:05:38 -08:00
2012-04-14 14:47:05 -04:00
2012-05-19 01:08:16 -04:00
2011-04-24 10:54:56 -07:00
2011-03-31 11:26:23 -03:00
2012-05-17 18:45:20 -04:00
2011-10-31 19:32:32 -04:00
2012-04-15 12:44:40 -04:00
2009-12-26 20:43:57 -08:00
2012-05-15 20:14:35 -04:00
2011-07-26 16:49:47 -07:00
2012-05-16 12:46:38 -04:00
2012-05-16 15:16:44 -04:00
2010-06-03 03:21:52 -07:00
2010-04-23 13:35:55 +09:00
2012-04-12 15:56:57 -04:00
2012-04-15 12:44:40 -04:00
2012-04-23 19:24:28 -04:00
2011-05-27 13:41:33 -04:00
2011-04-24 10:54:56 -07:00
2011-08-01 17:58:33 -07:00
2012-04-02 04:33:45 -04:00
2012-02-10 15:08:57 -05:00
2010-03-30 22:02:32 +09:00
2009-08-19 23:08:22 +04:00
2011-05-17 14:16:58 -04:00
2010-12-21 12:43:16 -08:00
2012-04-15 12:44:40 -04:00
2011-12-11 18:25:16 -05:00
2009-03-21 19:06:50 -07:00
2010-09-08 13:42:22 -07:00
2012-05-19 01:08:16 -04:00
2012-04-16 23:53:11 -04:00
2011-11-21 16:20:41 -05:00
2011-09-15 14:49:43 -04:00
2011-03-27 17:59:04 -07:00
2012-04-15 12:44:40 -04:00
2012-04-13 14:21:04 -04:00
2012-02-09 13:50:34 -05:00
2011-09-28 13:29:50 -04:00
2011-10-21 05:22:42 -04:00
2012-01-09 13:08:28 -08:00
2012-05-29 16:22:28 -07:00
2012-04-10 10:04:07 -07:00
2012-05-17 14:59:59 -04:00
2012-03-04 17:54:34 -05:00
2011-08-30 17:39:01 -04:00
2012-04-28 22:21:51 -04:00
2012-03-12 17:05:21 -07:00
2009-10-07 16:39:43 -04:00
2012-04-15 12:44:40 -04:00
2012-05-16 15:17:08 -04:00
2012-04-15 12:44:40 -04:00
2010-04-22 16:12:36 -07:00
2012-05-15 15:04:57 -04:00