Print this page
8927 sadb_x_kmc_t's KM cookie should be 64-bits (fix improper upstream)

Split Close
Expand all
Collapse all
          --- old/usr/src/test/os-tests/tests/pf_key/kmc-update.sh
          +++ new/usr/src/test/os-tests/tests/pf_key/kmc-update.sh
↓ open down ↓ 7 lines elided ↑ open up ↑
   8    8  #
   9    9  # A full copy of the text of the CDDL should have accompanied this
  10   10  # source.  A copy of the CDDL is also available via the Internet at
  11   11  # http://www.illumos.org/license/CDDL.
  12   12  #
  13   13  
  14   14  #
  15   15  # Copyright (c) 2017 Joyent, Inc.
  16   16  #
  17   17  
  18      -if [ `id -u` -ne 0 ]; then
       18 +if [[ `id -u` -ne 0 ]]; then
  19   19          echo "Need to be root or have effective UID of root."
  20   20          exit 255
  21   21  fi
  22   22  
  23   23  #
  24   24  # Two birds with one stone.
  25   25  #
  26   26  # 1.) Add some simple SAs.
  27   27  # 2.) Run C programs that use SADB_UPDATE to alter the SAs' KM cookies.
  28   28  #
↓ open down ↓ 40 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX