diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-04-29 16:24:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-04-29 16:32:46 +0200 |
commit | 2ffee2c9b059e0988662fb14ab1b19450258fdb0 (patch) | |
tree | bb7bb69a5f07c035caa102d9105ef2d791ce567e /src/home/home-util.c | |
parent | 94600eeb29ac889513505611ece30fea8586313e (diff) | |
download | systemd-2ffee2c9b059e0988662fb14ab1b19450258fdb0.tar.gz |
home: mark various bus messages we write user records to as sensitive
let's make sure that when we append potentially sensitive data to a bus
message we set the sensitive flag on the message object.
Diffstat (limited to 'src/home/home-util.c')
-rw-r--r-- | src/home/home-util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/home/home-util.c b/src/home/home-util.c index 69ab645484..51406fd234 100644 --- a/src/home/home-util.c +++ b/src/home/home-util.c @@ -124,6 +124,8 @@ int bus_message_append_secret(sd_bus_message *m, UserRecord *secret) { if (r < 0) return r; + (void) sd_bus_message_sensitive(m); + return sd_bus_message_append(m, "s", formatted); } |