]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
varlink-idl: allow to pass polkit arguments to io.systemd.service.Reload() 40808/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 24 Feb 2026 12:54:54 +0000 (21:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 24 Feb 2026 14:59:08 +0000 (23:59 +0900)
Then, varlink interfaces with unprivileged access can be implement the
method.

src/shared/varlink-io.systemd.service.c

index 8cbf299e07baa86e568bab1f21f38cb2c0188019..698a3d41ebaa8f678e5e6b07761bc777d1c17ac1 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <unistd.h>
 
+#include "bus-polkit.h"
 #include "env-util.h"
 #include "json-util.h"
 #include "log.h"
@@ -11,7 +12,9 @@
 
 static SD_VARLINK_DEFINE_METHOD(Ping);
 
-static SD_VARLINK_DEFINE_METHOD(Reload);
+static SD_VARLINK_DEFINE_METHOD(
+                Reload,
+                VARLINK_DEFINE_POLKIT_INPUT);
 
 static SD_VARLINK_DEFINE_METHOD(
                 SetLogLevel,