Skip to content

Commit 49d2797

Browse files
committed
homed: do not log new password when debug logs are enabled
systemd-homed[3443]: Sending to worker: { "enforcePasswordPolicy": false, "userName": "foobarbaz", "perMachine": [ { "storage": "directory", "matchMachineId": "c1082742b92c4f7e8d30d6b17f9d3351" } ], "disposition": "regular", "lastChangeUSec": 1750606709833174, "lastPasswordChangeUSec": 1750606709833174, "privileged": { "hashedPassword": [ "$y$j9T$ai2Fshq0ev9W05WL4SoRJ1$EFfe41ACrJKXMCQ83A05n6UW.HrRr9/O4b1x0CXgAXD" ] }, "binding": { "c1082742b92c4f7e8d30d6b17f9d3351": { "blobDirectory": "/var/cache/systemd/home/foobarbaz", "uid": 60056, "gid": 60056 } }, "secret": { "password": [ "test" ] }, "__systemd_homework_internal_blob_fdmap": {} } (cherry picked from commit e248790263b63822cdffa399b593a272d7abddc8) (cherry picked from commit a283e832dabd35d9f6e6aace0525ecf4f6372b57) (cherry picked from commit bd71224be1cce183ea0b862ae702d0bb62873479)
1 parent 6e9eba2 commit 49d2797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/home/homed-home.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ static int home_start_work(Home *h, const char *verb, UserRecord *hr, UserRecord
11751175
if (stdin_fd < 0)
11761176
return stdin_fd;
11771177

1178-
log_debug("Sending to worker: %s", formatted);
1178+
log_debug("Sending request to worker");
11791179

11801180
stdout_fd = memfd_create_wrapper("homework-stdout", MFD_CLOEXEC | MFD_NOEXEC_SEAL);
11811181
if (stdout_fd < 0)

0 commit comments

Comments
 (0)