diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-06-27 10:12:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-06-27 10:43:21 +0200 |
commit | 6678b9acc6435be56d0193dd0b40325fa615bd1f (patch) | |
tree | 0d770d75be469ab254d768e5027828c95de42f21 /src/shared | |
parent | hostnamed: if polkit authentication fails for Varlink Describe() call, don't ... (diff) | |
download | systemd-6678b9acc6435be56d0193dd0b40325fa615bd1f.tar.xz systemd-6678b9acc6435be56d0193dd0b40325fa615bd1f.zip |
hostnamed: make sure we can actually properly parse 'allowInteractiveAuthentication' varlink parameter
If people want they should be able to turn on this flag, to allow
interactive auth. Let's make sure this actually works. i.e. add it to
the introspection data and don't refuse the parameter in Describe().
(note the varlink handling already does parameter validation through
varlink_dispatch(), hence we can just drop any further validation)
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/varlink-io.systemd.Hostname.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/varlink-io.systemd.Hostname.c b/src/shared/varlink-io.systemd.Hostname.c index a6c6aec2a8..247bca6da3 100644 --- a/src/shared/varlink-io.systemd.Hostname.c +++ b/src/shared/varlink-io.systemd.Hostname.c @@ -4,6 +4,7 @@ static VARLINK_DEFINE_METHOD( Describe, + VARLINK_DEFINE_INPUT(allowInteractiveAuthentication, VARLINK_BOOL, VARLINK_NULLABLE), VARLINK_DEFINE_OUTPUT(Hostname, VARLINK_STRING, 0), VARLINK_DEFINE_OUTPUT(StaticHostname, VARLINK_STRING, VARLINK_NULLABLE), VARLINK_DEFINE_OUTPUT(PrettyHostname, VARLINK_STRING, VARLINK_NULLABLE), |