summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorOndrej Kozina <okozina@redhat.com>2021-05-17 15:26:14 +0200
committerOndrej Kozina <okozina@redhat.com>2021-08-19 13:58:10 +0200
commit351716e11166bb4b703cc85f5f7c2f18b7e91e08 (patch)
tree06295d423cfc6924e0702796433852ef08c33f6e /meson.build
parentpo: Translated using Weblate (Sinhala) (diff)
downloadsystemd-351716e11166bb4b703cc85f5f7c2f18b7e91e08.tar.xz
systemd-351716e11166bb4b703cc85f5f7c2f18b7e91e08.zip
Add support for systemd-fido2 libcryptsetup plugin.
Add support for systemd-fido2 based LUKS2 device activation via libcryptsetup plugin. This make the feature (fido2 sealed LUKS2 keyslot passphrase) usable from both systemd utilities and cryptsetup cli. The feature is configured via -Dlibcryptsetup-plugins combo with default value set to 'auto'. It get's enabled automatically when cryptsetup 2.4.0 or later is installed in build system.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f4a948cd65..22e7ac1237 100644
--- a/meson.build
+++ b/meson.build
@@ -1787,6 +1787,20 @@ if conf.get('HAVE_LIBCRYPTSETUP_PLUGINS') == 1
install : true,
install_dir : libcryptsetup_plugins_dir)
endif
+
+ if conf.get('HAVE_LIBFIDO2') == 1
+ cryptsetup_token_systemd_fido2 = shared_library(
+ 'cryptsetup-token-systemd-fido2',
+ link_args : ['-shared',
+ '-Wl,--version-script=' + cryptsetup_token_sym_path],
+ dependencies : libshared_deps + [libcryptsetup, versiondep],
+ link_with : [libshared],
+ link_whole : [cryptsetup_token_systemd_fido2_static],
+ link_depends : cryptsetup_token_sym,
+ install_rpath : rootlibexecdir,
+ install : true,
+ install_dir : libcryptsetup_plugins_dir)
+ endif
endif
############################################################