Changeset 59fef4c


Ignore:
Timestamp:
05/15/2021 06:55:02 PM (3 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
7fbfed56
Parents:
80838616
git-author:
Xi Ruoyao <xry111@…> (05/15/2021 06:52:59 PM)
git-committer:
Xi Ruoyao <xry111@…> (05/15/2021 06:55:02 PM)
Message:

generalize ken's note for shared library update, ...

and move it into package management section

Location:
chapter08
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter08/openssl.xml

    r80838616 r59fef4c  
    9191      <para>
    9292        However, any running programs linked to those libraries need to be stopped
    93         and restarted. The following command, run as
    94         <systemitem class="username">root</systemitem> after udating, will list what is
    95         using the old versions of those libraries:
     93        and restarted. Read the related entries in
     94        <xref linkend='pkgmgmt-upgrade-issues'/> for details.
    9695      </para>
    9796
    98 <screen><userinput role="nodump">grep -l  -e 'libssl.*deleted' -e 'libcrypto.*deleted' /proc/*/maps |
    99    tr -cd 0-9\\n | xargs -r ps u</userinput></screen>
    100 
    101       <para>
    102         If you used <application>OpenSSH</application> to login to the system, you
    103         need to logout, login again, and rerun that command to confirm nothing is
    104         still using the deleted libraries.
    105       </para>
    10697    </note>
    10798
  • chapter08/pkgmgt.xml

    r80838616 r59fef4c  
    4242  fits your need.</para>
    4343
    44   <sect2>
     44  <sect2 id='pkgmgmt-upgrade-issues'>
    4545    <title>Upgrade Issues</title>
    4646
     
    9292      scheme of library files suddenly.</para> </listitem>
    9393
     94      <listitem> <para>If a package containing a shared library is updated,
     95      and the name of library doesn't change, but a severe issue
     96      (especially, a security vulnerability) is fixed, all running programs
     97      linked to the shared library should be restarted.  The following
     98      command, run as <systemitem class="username">root</systemitem> after
     99      updating, will list what is using the old versions of those libraries
     100      (replace <replaceable>libfoo</replaceable> with the name of the
     101      library):</para>
     102
     103<screen><userinput role="nodump">grep -l  -e '<replaceable>libfoo</replaceable>.*deleted' /proc/*/maps |
     104   tr -cd 0-9\\n | xargs -r ps u</userinput></screen>
     105
     106      <para>
     107        If <application>OpenSSH</application> is being used for accessing
     108        the system and it is linked to the updated library, you need to
     109        restart <command>sshd</command> service, then logout, login again,
     110        and rerun that command to confirm nothing is still using the
     111        deleted libraries.
     112      </para></listitem>
    94113    </itemizedlist>
    95114
Note: See TracChangeset for help on using the changeset viewer.