aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/openssl.xml
diff options
context:
space:
mode:
authorKen Moffat <ken@linuxfromscratch.org>2021-05-14 16:41:52 +0100
committerKen Moffat <ken@linuxfromscratch.org>2021-05-14 16:41:52 +0100
commit6df63e484f39596859dd7712adbfd4989a87e4db (patch)
tree89065e42375d1c4ce2fb317e41e142805b118f42 /chapter08/openssl.xml
parent78361854157a0134325f371b04a7f39ab03f40a0 (diff)
OpenSSL: add a note about upgrading.
Diffstat (limited to 'chapter08/openssl.xml')
-rw-r--r--chapter08/openssl.xml28
1 files changed, 28 insertions, 0 deletions
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</userinput></screen>
<screen><userinput remap="install">cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
+ <note>
+ <para>
+ 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 <filename class="libraryfile">libcrypto.so</filename> or
+ <filename class="libraryfile">libssl.so</filename>
+ <emphasis>when upgrading in the same series.</emphasis>
+ </para>
+
+ <para>
+ However, any running programs linked to those libraries need to be stopped
+ and restarted. The following command, run as
+ <systemitem class="username">root</systemitem> after udating, will list what is
+ using the old versions of those libraries:
+ </para>
+
+<screen><userinput role="nodump">grep -l -e 'libssl.*deleted' -e 'libcrypto.*deleted' /proc/*/maps |
+ tr -cd 0-9\\n | xargs -r ps u</userinput></screen>
+
+ <para>
+ If you used <application>OpenSSH</application> to login to the system, you
+ need to logout, login again, and rerun that command to confirm nothing is
+ still using the deleted libraries.
+ </para>
+ </note>
+
</sect2>
<sect2 id="contents-openssl" role="content">