From 6df63e484f39596859dd7712adbfd4989a87e4db Mon Sep 17 00:00:00 2001 From: Ken Moffat Date: Fri, 14 May 2021 16:41:52 +0100 Subject: OpenSSL: add a note about upgrading. --- chapter08/openssl.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'chapter08') diff --git a/chapter08/openssl.xml b/chapter08/openssl.xml index 934d5bd83..b96c355f7 100644 --- a/chapter08/openssl.xml +++ b/chapter08/openssl.xml @@ -77,6 +77,34 @@ make MANSUFFIX=ssl install cp -vfr doc/* /usr/share/doc/openssl-&openssl-version; + + + You should update OpenSSL when a new version which fixes vulnerabilities + is announced. The releases run in series, with a letter for each release + after the initial release (e.g. 1.1.1, 1.1.1a, 1.1.1b, etc). Because LFS + installs only the shared libraries, there is no need to recompile packages + which link to libcrypto.so or + libssl.so + when upgrading in the same series. + + + + However, any running programs linked to those libraries need to be stopped + and restarted. The following command, run as + root after udating, will list what is + using the old versions of those libraries: + + +grep -l -e 'libssl.*deleted' -e 'libcrypto.*deleted' /proc/*/maps | + tr -cd 0-9\\n | xargs -r ps u + + + If you used OpenSSH to login to the system, you + need to logout, login again, and rerun that command to confirm nothing is + still using the deleted libraries. + + + -- cgit v1.2.3-54-g00ecf