Upgrade Glibc in Linux
I. Introduction
Glibc is the libc library released by gnu, that is, the c Runtime Library. Glibc is the most underlying api in linux, and almost any other Runtime Library depends on glibc. Glibc not only encapsulates the system services provided by the linux operating system, but also provides implementation of many other necessary functional services.
This document describes how to upgrade Glibc.
Ii. Upgrade
The procedure is as follows:
Wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz
Wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz
Tar-xvf glibc-2.15.tar.gz
Tar-xvf glibc-ports-2.15.tar.gz
Mv glibc-ports-2.15 glibc-2.15/ports
Mkdir glibc-build-2.15
Cd glibc-build-2.15
../Glibc-2.15/configure -- prefix =/usr -- disable-profile -- enable-add-ons -- with-headers =/usr/include -- with-binutils =/usr/bin
Make & make install
After make is successful, a new libc is compiled under the build directory. so.6 (/glibc-build-2.15/libc. so.6, we will find that this is actually a soft connection, the actual lib file is libc. so
Cd glibc-build-2.15
Ll libc. so.6
View the library file. You can see that the old library file of version 2.12 is still in progress, the library file of version 2.15 is added, and all soft-link files point to version 2.15.
Ll/lib64/libc *
Check the version supported by glibc.
Strings libc. so | grep GLIBC
Dangerous! GHOST (GHOST) vulnerability exposure
GNU glibc gethostbyname Buffer Overflow Vulnerability
Glibc gethostbyname Buffer Overflow Vulnerability (CVE-2015-0235)
Linux glibc ghost vulnerability test and repair methods