public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: paul.moore@hp.com
Cc: netdev@vger.kernel.org, linux-audit@redhat.com, latten@austin.ibm.com
Subject: Re: [PATCH 2/2] XFRM: Drop packets when replay counter would overflow
Date: Fri, 21 Dec 2007 14:59:16 -0800 (PST)	[thread overview]
Message-ID: <20071221.145916.103462184.davem@davemloft.net> (raw)
In-Reply-To: <20071221141500.11660.12287.stgit@flek.lan>

From: Paul Moore <paul.moore@hp.com>
Date: Fri, 21 Dec 2007 09:15:00 -0500

> According to RFC4303, section 3.3.3 we need to drop outgoing packets which
> cause the replay counter to overflow:
> 
>    3.3.3.  Sequence Number Generation
> 
>    The sender's counter is initialized to 0 when an SA is established.
>    The sender increments the sequence number (or ESN) counter for this
>    SA and inserts the low-order 32 bits of the value into the Sequence
>    Number field.  Thus, the first packet sent using a given SA will
>    contain a sequence number of 1.
> 
>    If anti-replay is enabled (the default), the sender checks to ensure
>    that the counter has not cycled before inserting the new value in the
>    Sequence Number field.  In other words, the sender MUST NOT send a
>    packet on an SA if doing so would cause the sequence number to cycle.
>    An attempt to transmit a packet that would result in sequence number
>    overflow is an auditable event.  The audit log entry for this event
>    SHOULD include the SPI value, current date/time, Source Address,
>    Destination Address, and (in IPv6) the cleartext Flow ID.
> 
> Signed-off-by: Paul Moore <paul.moore@hp.com>

Applied.

      reply	other threads:[~2007-12-21 22:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-21 14:14 [PATCH 0/2] XFRM auditing patch rebased Paul Moore
2007-12-21 14:14 ` [PATCH 1/2] XFRM: RFC4303 compliant auditing Paul Moore
2007-12-21 22:58   ` David Miller
2007-12-21 14:15 ` [PATCH 2/2] XFRM: Drop packets when replay counter would overflow Paul Moore
2007-12-21 22:59   ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071221.145916.103462184.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=latten@austin.ibm.com \
    --cc=linux-audit@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=paul.moore@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox