# HG changeset patch # User Hai-May Chao # Date 1258078398 28800 # Node ID c5aa655977ccdef9a10460f68fd9d7cf9f4b8cf3 # Parent 1e27eb9fbdd728ddaac57a34268020ba7fab2bcf 6900578 Update bfu to remove fips entry in kcf.conf diff -r 1e27eb9fbdd7 -r c5aa655977cc usr/src/tools/scripts/bfu.sh --- a/usr/src/tools/scripts/bfu.sh Thu Nov 12 17:40:34 2009 -0700 +++ b/usr/src/tools/scripts/bfu.sh Thu Nov 12 18:13:18 2009 -0800 @@ -4149,6 +4149,23 @@ } # +# Remove old fips-140 entry from kcf.conf if it is found +# +cleanup_kcf_fips140() +{ + + kcfconf=$rootprefix/etc/crypto/kcf.conf + kcfconftmp=/tmp/kcfconf.tmp.$$ + + if grep '^fips-140:' $kcfconf >/dev/null ; then + grep -v '^fips-140:' $kcfconf > $kcfconftmp + print "Removing obsolete fips-140 entry from kcf.conf" + cp $kcfconftmp $kcfconf + rm -f $kcfconftmp + fi +} + +# # Add metaslot configuration to pkcs11.conf if it doesn't already exist # enable_crypto_metaslot() @@ -8661,6 +8678,11 @@ # Remove bsmrecord. Renamed to auditrecord. rm -f $root/usr/sbin/bsmrecord + # Remove old fips-140 entry from kcf.conf + if [ -f $rootprefix/etc/crypto/kcf.conf ] ; then + cleanup_kcf_fips140 + fi + print "\nFor each file in conflict, your version has been restored." print "The new versions are under $rootprefix/bfu.conflicts." print "\nMAKE SURE YOU RESOLVE ALL CONFLICTS BEFORE REBOOTING.\n"