]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/varlink.c
varlink: honour "sensitive" flag of json variant objects all the way into the socket 27153/head
authorLennart Poettering <lennart@poettering.net>
Wed, 12 Apr 2023 09:21:01 +0000 (11:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Apr 2023 13:14:21 +0000 (15:14 +0200)
commitdb1f7c84ea55441ca3409ac24e0d8be084a5092a
tree96e8be149355814abac8a60edfd83d2b257b329f
parent7947dbe322a922604f3a5b29693e58b370161ad5
varlink: honour "sensitive" flag of json variant objects all the way into the socket

Let's honour the flag if it is set, just to be safe.

(This only handles the case for the writing side: whenever the client
code hands us a json object with the flag set we'll honour it till the
it's out of reach for us. This does *not* handle the reading side, which
is left for a later patch once needed. We probably should add a
per-connection flag that simply globally enables the sensitive logic for
all messages coming in on a specific varlink conneciton.)
src/shared/varlink.c