From: Yu Watanabe Date: Sun, 19 Jan 2025 15:08:07 +0000 (+0900) Subject: udev-varlink: add io.systemd.service.GetEnvironment X-Git-Tag: v258-rc1~1554^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d919a155c03c3036eed47be5421e7e2d0593db1c;p=thirdparty%2Fsystemd.git udev-varlink: add io.systemd.service.GetEnvironment There is no reason to not support the method in udevd. Follow-up for c8127075ae22ad0f64d3072f400818f6e1a9ab48. --- diff --git a/src/udev/udev-varlink.c b/src/udev/udev-varlink.c index d95bfcdd91f..5d1a27219f5 100644 --- a/src/udev/udev-varlink.c +++ b/src/udev/udev-varlink.c @@ -156,14 +156,15 @@ int manager_start_varlink_server(Manager *manager) { r = sd_varlink_server_bind_method_many( v, - "io.systemd.service.Ping", varlink_method_ping, - "io.systemd.service.Reload", vl_method_reload, - "io.systemd.service.SetLogLevel", vl_method_set_log_level, - "io.systemd.Udev.SetChildrenMax", vl_method_set_children_max, - "io.systemd.Udev.SetEnvironment", vl_method_set_environment, - "io.systemd.Udev.StartExecQueue", vl_method_start_stop_exec_queue, - "io.systemd.Udev.StopExecQueue", vl_method_start_stop_exec_queue, - "io.systemd.Udev.Exit", vl_method_exit); + "io.systemd.service.Ping", varlink_method_ping, + "io.systemd.service.Reload", vl_method_reload, + "io.systemd.service.SetLogLevel", vl_method_set_log_level, + "io.systemd.service.GetEnvironment", varlink_method_get_environment, + "io.systemd.Udev.SetChildrenMax", vl_method_set_children_max, + "io.systemd.Udev.SetEnvironment", vl_method_set_environment, + "io.systemd.Udev.StartExecQueue", vl_method_start_stop_exec_queue, + "io.systemd.Udev.StopExecQueue", vl_method_start_stop_exec_queue, + "io.systemd.Udev.Exit", vl_method_exit); if (r < 0) return log_error_errno(r, "Failed to bind Varlink methods: %m");