Bug 676637 - racoon daemon uses an incorrect SA attribute number for security contexts
Summary: racoon daemon uses an incorrect SA attribute number for security contexts
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ipsec-tools
Version: 5.0
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-10 14:58 UTC by Joy Latten
Modified: 2012-03-05 15:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-05 15:10:48 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Joy Latten 2011-02-10 14:58:04 UTC
Description of problem:
For RHEL 5 LSPP, racoon was modified to leverage ipsec to do MAC networking.
(The MAC being SELinux) racoon was modified to include security contexts
in its SA proposal/negotiation via an SA attribute. Unfortunately, its using
an SA attribute number not assigned by IANA and not from the private-use range.
It is using the number 10, which was later assigned to ECN SA attribute.
racoon needs to be modified such that the SA attribute number for 
security contexts are from the private use range, 32001-32767.

This affects interoperability on the internet.

Version-Release number of selected component (if applicable):
RHEL 5

How reproducible:
Reproducible when code is compiled to use security contexts

Steps to Reproduce:
1. compile racoon to use security contexts
2. configure ipsec to use security contexts
  

Solution:

diff -urpN ipsec-tools-0.6.5.orig/src/racoon/ipsec_doi.h ipsec-tools-0.6.5/src/racoon/ipsec_doi.h
--- ipsec-tools-0.6.5.orig/src/racoon/ipsec_doi.h       2011-02-09 13:23:31.000000000 -0600
+++ ipsec-tools-0.6.5/src/racoon/ipsec_doi.h    2011-02-09 13:24:01.000000000 -0600
@@ -134,7 +134,7 @@
 #define IPSECDOI_ATTR_COMP_PRIVALG            9 /* V */

 #ifdef HAVE_SECCTX
-#define IPSECDOI_ATTR_SECCTX                10 /* V */
+#define IPSECDOI_ATTR_SECCTX                32001 /* V */
 #endif

 /* 4.6.1 Security Association Payload */

Comment 1 Tomas Mraz 2012-03-05 15:10:48 UTC
Unfortunately we cannot change this due to existing deployments.


Note You need to log in before you can comment on or make changes to this bug.