]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cryptsetup: add option to use via dlopen in libmount
authorLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 29 Jun 2020 20:45:26 +0000 (21:45 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 7 Jul 2020 15:43:55 +0000 (16:43 +0100)
commit488fd4c3dfdc33db6dca91ebe95e1607f7d1ed12
tree61fe06dfd9816e6940dee9ba5e5bdd98c50937ff
parent2b41c409e7616b6e07bb47eaee90b82d7fdc120c
cryptsetup: add option to use via dlopen in libmount

Enabling libcrypsetup in libmount had several unintended side
effects.
First of all, it increases the Debian minimal image size by
~2.5% (5.6MB worth of new libraries).
Then, due to libcryptsetup linkage to OpenSSL and libjson-c,
it causes incompatibilities with external programs linking
against both libmount and a private, static, old version of
OpenSSL, or external programs linking against libjansson or
json-glib, which have one symbol in common with libjson-c.

If ./configure is ran with --with-crypsetup=dlopen,
instead of linking to libcrypsetup, use dlopen to resolve
the symbols at runtime only when the verity feature is
used, thus avoiding clashes and keeping images size down.

Fixes #1081

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Makefile.am
configure.ac
libmount/mount.pc.in
libmount/src/Makemodule.am
libmount/src/context_veritydev.c
sys-utils/mount.8