]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homed: do not print sensitive data when debug logging is enabled
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 20 Aug 2025 18:36:36 +0000 (03:36 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 21 Aug 2025 09:15:44 +0000 (18:15 +0900)
src/home/user-record-sign.c

index 367ab38330a0faff3af4f3e3bf4aece631f755ea..46e5ea7c992b2b1c3b65bca9fdf966bd05f15fff 100644 (file)
@@ -64,7 +64,7 @@ int user_record_sign(UserRecord *ur, EVP_PKEY *private_key, UserRecord **ret) {
                 return r;
 
         if (DEBUG_LOGGING)
-                sd_json_variant_dump(v, SD_JSON_FORMAT_PRETTY|SD_JSON_FORMAT_COLOR_AUTO, NULL, NULL);
+                sd_json_variant_dump(v, SD_JSON_FORMAT_CENSOR_SENSITIVE|SD_JSON_FORMAT_PRETTY|SD_JSON_FORMAT_COLOR_AUTO, NULL, NULL);
 
         signed_ur = user_record_new();
         if (!signed_ur)