postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# CDDL HEADER START
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# The contents of this file are subject to the terms of the
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# Common Development and Distribution License, Version 1.0 only
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# (the "License"). You may not use this file except in compliance
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# with the License.
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# or http://www.opensolaris.org/os/licensing.
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# See the License for the specific language governing permissions
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# and limitations under the License.
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# When distributing Covered Code, include this CDDL HEADER in each
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# If applicable, add the following below this CDDL HEADER, with the
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# fields enclosed by brackets "[]" replaced with your own identifying
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# information: Portions Copyright [yyyy] [name of copyright owner]
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# CDDL HEADER END
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# Use is subject to license terms.
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# ident "%Z%%M% %I% %E% SMI"
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# This postinstall script "clones" the policy for aes/arcfour/blowfish to the
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# encryption kit aes256, arcfour2048, and blowfish448 modules.
a1e92b2783be4bfeb0c7e267223cc7779a6f324cKen Stubbings# Because we want to do the policy cloning and only have one of the kernel
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott# providers enabled we can't use the i.kcfconf class action script.
5d37db6a3aca50ba14cba8909d3ae44f7d43e407Ken Stubbings# We can't run cryptoadm(1m) here because it might not be available yet.
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshottif [ ! -r $kcfconf ]; then
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott echo "/etc/crypto/kcf.conf not found, this may be an attempt to \c"
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott echo "install this package on an incorrect release of Solaris"
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshottcp $kcfconf ${kcfconf}.tmp
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshottsed -e 's/^aes:/aes256:/' -e 's/^blowfish:/blowfish448:/' -e \
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott 's/^arcfour:/arcfour2048:/' \
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshott $kcfconf > ${kcfconf}.tmp
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshottmv -f ${kcfconf}.tmp $kcfconf
721bb987c406979bcfe705fa1ca8d54497d40fcbRobert Wapshottif [ -z "$BASEDIR" ]; then