summaryrefslogtreecommitdiffstats
path: root/src/veritysetup
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-06-01 13:16:47 +0200
committerLennart Poettering <lennart@poettering.net>2021-06-01 13:33:09 +0200
commit2f67864064d846c3d1bbbe58ab271c0a8fc83b12 (patch)
tree8ce153d8b336c9a0a019af0d8f842a3fe80a0aca /src/veritysetup
parentcryptsetup: implicitly set global log functions when loading libcryptsetup dy... (diff)
downloadsystemd-2f67864064d846c3d1bbbe58ab271c0a8fc83b12.tar.xz
systemd-2f67864064d846c3d1bbbe58ab271c0a8fc83b12.zip
cryptsetup: explicitl set default log functions wherever needed
Code using libcryptsetup already sets the global log function if it uses dlopen_cryptsetup(). Make sure we do the same for the three programs that explicitly link against libcryptsetup and hence to not use dlopen_cryptsetup().
Diffstat (limited to 'src/veritysetup')
-rw-r--r--src/veritysetup/veritysetup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/veritysetup/veritysetup.c b/src/veritysetup/veritysetup.c
index 2b54065437..34208dcd87 100644
--- a/src/veritysetup/veritysetup.c
+++ b/src/veritysetup/veritysetup.c
@@ -138,6 +138,8 @@ static int run(int argc, char *argv[]) {
log_setup();
+ cryptsetup_enable_logging(NULL);
+
umask(0022);
if (streq(argv[1], "attach")) {