summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/nss/files/signlibs.sh
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-07-10 15:54:17 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-13 18:23:35 +0100
commit912efc0c8122abc622ad63db6da7d1faaee5f3da (patch)
treed6f108d604d219077dac93169f8f12d9a659deaf /meta/recipes-support/nss/files/signlibs.sh
parente448ef66980895d00bbc721a2bd1a3926baa1edd (diff)
downloadpoky-912efc0c8122abc622ad63db6da7d1faaee5f3da.tar.gz
nss: create checksum files for the nss libraries
Add checksum files required for the NSS softoken to operate in FIPS 140 mode. The shlibsign is invoked to sign the libraries, and it is built for the target architecture and doesn't support cross-compiling so far. Invoke shlibsign at target's first boot time to generate checksum files. https://developer.mozilla.org/en-US/docs/NSS/NSS_Tech_Notes/nss_tech_note6 http://en.wikipedia.org/wiki/FIPS_140 https://bugzilla.mozilla.org/show_bug.cgi?id=681624 (From OE-Core rev: a4580f967c8064294a06d406acf5deb24aee2acc) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/nss/files/signlibs.sh')
-rw-r--r--meta/recipes-support/nss/files/signlibs.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-support/nss/files/signlibs.sh b/meta/recipes-support/nss/files/signlibs.sh
new file mode 100644
index 0000000000..1ec79f4576
--- /dev/null
+++ b/meta/recipes-support/nss/files/signlibs.sh
@@ -0,0 +1,20 @@
1#!/bin/sh
2
3# signlibs.sh
4#
5# (c)2010 Wind River Systems, Inc.
6#
7# regenerates the .chk files for the NSS libraries that require it
8# since the ones that are built have incorrect checksums that were
9# calculated on the host where they really need to be done on the
10# target
11
12CHK_FILES=`find /lib* /usr/lib* -name "*.chk"`
13SIGN_BINARY=`which shlibsign`
14for I in $CHK_FILES
15do
16 DN=`dirname $I`
17 BN=`basename $I .chk`
18 FN=$DN/$BN.so
19 $SIGN_BINARY -i $FN
20done