1. 20 2月, 2010 2 次提交
    • J
      xfrm: Flushing empty SAD generates false events · 9e64cc95
      Jamal Hadi Salim 提交于
      To see the effect make sure you have an empty SAD.
      On window1 "ip xfrm mon" and on window2 issue "ip xfrm state flush"
      You get prompt back in window2 and you see the flush event on window1.
      With this fix, you still get prompt on window1 but no event on window2.
      
      Thanks to Alexey Dobriyan for finding a bug in earlier version
      when using pfkey to do the flushing.
      Signed-off-by: NJamal Hadi Salim <hadi@cyberus.ca>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9e64cc95
    • J
      pfkey: fix SA and SP flush sequence · 8be987d7
      Jamal Hadi Salim 提交于
      RFC 2367 says flushing behavior should be:
      1) user space -> kernel: flush
      2) kernel: flush
      3) kernel -> user space: flush event to ALL listeners
      
      This is not realistic today in the presence of selinux policies
      which may reject the flush etc. So we make the sequence become:
      1) user space -> kernel: flush
      2) kernel: flush
      3) kernel -> user space: flush response to originater from #1
      4) if there were no errors then:
      kernel -> user space: flush event to ALL listeners
      Signed-off-by: NJamal Hadi Salim <hadi@cyberus.ca>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8be987d7
  2. 19 2月, 2010 11 次提交
  3. 18 2月, 2010 9 次提交
  4. 17 2月, 2010 17 次提交
  5. 16 2月, 2010 1 次提交