teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0612-logind-Introduce-RebootWithFlags-and-others.patch

b677e7
From d375206fe822903b16f3b9006ea47ffd938d88cb Mon Sep 17 00:00:00 2001
b677e7
From: Deepak Rawat <drawat.floss@gmail.com>
b677e7
Date: Mon, 25 Jan 2021 09:14:08 -0800
b677e7
Subject: [PATCH] logind: Introduce RebootWithFlags and others
b677e7
b677e7
Add new systemd-logind WithFlags version for Reboot and others. These
b677e7
methods add a unit64 parameter, with which can send additional control flags.
b677e7
b677e7
(cherry picked from commit 00971ea5164e2e7a5f2d7ffe12a566b62d282556)
b677e7
b677e7
Related: #1269726
b677e7
---
b677e7
 src/basic/login-util.h      |   8 +
b677e7
 src/login/logind-dbus.c     | 498 +++++++++++++++++++++++++++++++-----
b677e7
 src/systemctl/systemctl.c   |  26 ++
b677e7
 src/systemd/sd-bus-vtable.h |  19 +-
b677e7
 4 files changed, 480 insertions(+), 71 deletions(-)
b677e7
b677e7
diff --git a/src/basic/login-util.h b/src/basic/login-util.h
b677e7
index e1e62e12b7..9832207458 100644
b677e7
--- a/src/basic/login-util.h
b677e7
+++ b/src/basic/login-util.h
b677e7
@@ -4,6 +4,14 @@
b677e7
 #include <stdbool.h>
b677e7
 #include <unistd.h>
b677e7
 
b677e7
+#define SD_LOGIND_ROOT_CHECK_INHIBITORS           (UINT64_C(1) << 0)
b677e7
+
b677e7
+/* For internal use only */
b677e7
+#define SD_LOGIND_INTERACTIVE                     (UINT64_C(1) << 63)
b677e7
+
b677e7
+#define SD_LOGIND_SHUTDOWN_AND_SLEEP_FLAGS_PUBLIC (SD_LOGIND_ROOT_CHECK_INHIBITORS)
b677e7
+#define SD_LOGIND_SHUTDOWN_AND_SLEEP_FLAGS_ALL    (SD_LOGIND_ROOT_CHECK_INHIBITORS|SD_LOGIND_INTERACTIVE)
b677e7
+
b677e7
 bool session_id_valid(const char *id);
b677e7
 
b677e7
 static inline bool logind_running(void) {
b677e7
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
b677e7
index 3f122fcbd9..0c43fbb3e0 100644
b677e7
--- a/src/login/logind-dbus.c
b677e7
+++ b/src/login/logind-dbus.c
b677e7
@@ -1698,14 +1698,14 @@ static int verify_shutdown_creds(
b677e7
                 Manager *m,
b677e7
                 sd_bus_message *message,
b677e7
                 InhibitWhat w,
b677e7
-                bool interactive,
b677e7
                 const char *action,
b677e7
                 const char *action_multiple_sessions,
b677e7
                 const char *action_ignore_inhibit,
b677e7
+                uint64_t flags,
b677e7
                 sd_bus_error *error) {
b677e7
 
b677e7
         _cleanup_(sd_bus_creds_unrefp) sd_bus_creds *creds = NULL;
b677e7
-        bool multiple_sessions, blocked;
b677e7
+        bool multiple_sessions, blocked, interactive;
b677e7
         uid_t uid;
b677e7
         int r;
b677e7
 
b677e7
@@ -1728,6 +1728,7 @@ static int verify_shutdown_creds(
b677e7
 
b677e7
         multiple_sessions = r > 0;
b677e7
         blocked = manager_is_inhibited(m, w, INHIBIT_BLOCK, NULL, false, true, uid, NULL);
b677e7
+        interactive = flags & SD_LOGIND_INTERACTIVE;
b677e7
 
b677e7
         if (multiple_sessions && action_multiple_sessions) {
b677e7
                 r = bus_verify_polkit_async(message, CAP_SYS_BOOT, action_multiple_sessions, NULL, interactive, UID_INVALID, &m->polkit_registry, error);
b677e7
@@ -1737,12 +1738,19 @@ static int verify_shutdown_creds(
b677e7
                         return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
b677e7
         }
b677e7
 
b677e7
-        if (blocked && action_ignore_inhibit) {
b677e7
-                r = bus_verify_polkit_async(message, CAP_SYS_BOOT, action_ignore_inhibit, NULL, interactive, UID_INVALID, &m->polkit_registry, error);
b677e7
-                if (r < 0)
b677e7
-                        return r;
b677e7
-                if (r == 0)
b677e7
-                        return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
b677e7
+        if (blocked) {
b677e7
+                /* We don't check polkit for root here, because you can't be more privileged than root */
b677e7
+                if (uid == 0 && (flags & SD_LOGIND_ROOT_CHECK_INHIBITORS))
b677e7
+                        return sd_bus_error_setf(error, SD_BUS_ERROR_ACCESS_DENIED,
b677e7
+                                                 "Access denied to root due to active block inhibitor");
b677e7
+
b677e7
+                if (action_ignore_inhibit) {
b677e7
+                        r = bus_verify_polkit_async(message, CAP_SYS_BOOT, action_ignore_inhibit, NULL, interactive, UID_INVALID, &m->polkit_registry, error);
b677e7
+                        if (r < 0)
b677e7
+                                return r;
b677e7
+                        if (r == 0)
b677e7
+                                return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
b677e7
+                }
b677e7
         }
b677e7
 
b677e7
         if (!multiple_sessions && !blocked && action) {
b677e7
@@ -1765,9 +1773,11 @@ static int method_do_shutdown_or_sleep(
b677e7
                 const char *action_multiple_sessions,
b677e7
                 const char *action_ignore_inhibit,
b677e7
                 const char *sleep_verb,
b677e7
+                bool with_flags,
b677e7
                 sd_bus_error *error) {
b677e7
 
b677e7
-        int interactive, r;
b677e7
+        int interactive = false, r;
b677e7
+        uint64_t flags = 0;
b677e7
 
b677e7
         assert(m);
b677e7
         assert(message);
b677e7
@@ -1775,10 +1785,20 @@ static int method_do_shutdown_or_sleep(
b677e7
         assert(w >= 0);
b677e7
         assert(w <= _INHIBIT_WHAT_MAX);
b677e7
 
b677e7
-        r = sd_bus_message_read(message, "b", &interactive);
b677e7
+        if (with_flags)
b677e7
+                r = sd_bus_message_read(message, "t", &flags);
b677e7
+        else
b677e7
+                r = sd_bus_message_read(message, "b", &interactive);
b677e7
+
b677e7
         if (r < 0)
b677e7
                 return r;
b677e7
 
b677e7
+        if (with_flags && (flags & ~SD_LOGIND_SHUTDOWN_AND_SLEEP_FLAGS_PUBLIC))
b677e7
+                return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS,
b677e7
+                                         "Invalid flags parameter");
b677e7
+
b677e7
+        SET_FLAG(flags, SD_LOGIND_INTERACTIVE, interactive);
b677e7
+
b677e7
         /* Don't allow multiple jobs being executed at the same time */
b677e7
         if (m->action_what)
b677e7
                 return sd_bus_error_setf(error, BUS_ERROR_OPERATION_IN_PROGRESS, "There's already a shutdown or sleep operation in progress");
b677e7
@@ -1795,8 +1815,8 @@ static int method_do_shutdown_or_sleep(
b677e7
                         return r;
b677e7
         }
b677e7
 
b677e7
-        r = verify_shutdown_creds(m, message, w, interactive, action, action_multiple_sessions,
b677e7
-                                  action_ignore_inhibit, error);
b677e7
+        r = verify_shutdown_creds(m, message, w, action, action_multiple_sessions,
b677e7
+                                  action_ignore_inhibit, flags, error);
b677e7
         if (r != 0)
b677e7
                 return r;
b677e7
 
b677e7
@@ -1818,6 +1838,7 @@ static int method_poweroff(sd_bus_message *message, void *userdata, sd_bus_error
b677e7
                         "org.freedesktop.login1.power-off-multiple-sessions",
b677e7
                         "org.freedesktop.login1.power-off-ignore-inhibit",
b677e7
                         NULL,
b677e7
+                        sd_bus_message_is_method_call(message, NULL, "PowerOffWithFlags"),
b677e7
                         error);
b677e7
 }
b677e7
 
b677e7
@@ -1832,6 +1853,7 @@ static int method_reboot(sd_bus_message *message, void *userdata, sd_bus_error *
b677e7
                         "org.freedesktop.login1.reboot-multiple-sessions",
b677e7
                         "org.freedesktop.login1.reboot-ignore-inhibit",
b677e7
                         NULL,
b677e7
+                        sd_bus_message_is_method_call(message, NULL, "RebootWithFlags"),
b677e7
                         error);
b677e7
 }
b677e7
 
b677e7
@@ -1846,6 +1868,7 @@ static int method_halt(sd_bus_message *message, void *userdata, sd_bus_error *er
b677e7
                         "org.freedesktop.login1.halt-multiple-sessions",
b677e7
                         "org.freedesktop.login1.halt-ignore-inhibit",
b677e7
                         NULL,
b677e7
+                        sd_bus_message_is_method_call(message, NULL, "HaltWithFlags"),
b677e7
                         error);
b677e7
 }
b677e7
 
b677e7
@@ -1860,6 +1883,7 @@ static int method_suspend(sd_bus_message *message, void *userdata, sd_bus_error
b677e7
                         "org.freedesktop.login1.suspend-multiple-sessions",
b677e7
                         "org.freedesktop.login1.suspend-ignore-inhibit",
b677e7
                         "suspend",
b677e7
+                        sd_bus_message_is_method_call(message, NULL, "SuspendWithFlags"),
b677e7
                         error);
b677e7
 }
b677e7
 
b677e7
@@ -1874,6 +1898,7 @@ static int method_hibernate(sd_bus_message *message, void *userdata, sd_bus_erro
b677e7
                         "org.freedesktop.login1.hibernate-multiple-sessions",
b677e7
                         "org.freedesktop.login1.hibernate-ignore-inhibit",
b677e7
                         "hibernate",
b677e7
+                        sd_bus_message_is_method_call(message, NULL, "HibernateWithFlags"),
b677e7
                         error);
b677e7
 }
b677e7
 
b677e7
@@ -1888,6 +1913,7 @@ static int method_hybrid_sleep(sd_bus_message *message, void *userdata, sd_bus_e
b677e7
                         "org.freedesktop.login1.hibernate-multiple-sessions",
b677e7
                         "org.freedesktop.login1.hibernate-ignore-inhibit",
b677e7
                         "hybrid-sleep",
b677e7
+                        sd_bus_message_is_method_call(message, NULL, "HybridSleepWithFlags"),
b677e7
                         error);
b677e7
 }
b677e7
 
b677e7
@@ -1902,6 +1928,7 @@ static int method_suspend_then_hibernate(sd_bus_message *message, void *userdata
b677e7
                         "org.freedesktop.login1.hibernate-multiple-sessions",
b677e7
                         "org.freedesktop.login1.hibernate-ignore-inhibit",
b677e7
                         "hybrid-sleep",
b677e7
+                        sd_bus_message_is_method_call(message, NULL, "SuspendThenHibernateWithFlags"),
b677e7
                         error);
b677e7
 }
b677e7
 
b677e7
@@ -2089,8 +2116,8 @@ static int method_schedule_shutdown(sd_bus_message *message, void *userdata, sd_
b677e7
         } else
b677e7
                 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Unsupported shutdown type");
b677e7
 
b677e7
-        r = verify_shutdown_creds(m, message, INHIBIT_SHUTDOWN, false,
b677e7
-                                  action, action_multiple_sessions, action_ignore_inhibit, error);
b677e7
+        r = verify_shutdown_creds(m, message, INHIBIT_SHUTDOWN, action, action_multiple_sessions,
b677e7
+                                  action_ignore_inhibit, 0, error);
b677e7
         if (r != 0)
b677e7
                 return r;
b677e7
 
b677e7
@@ -2683,60 +2710,395 @@ const sd_bus_vtable manager_vtable[] = {
b677e7
         SD_BUS_PROPERTY("NCurrentSessions", "t", property_get_hashmap_size, offsetof(Manager, sessions), 0),
b677e7
         SD_BUS_PROPERTY("UserTasksMax", "t", property_get_compat_user_tasks_max, 0, SD_BUS_VTABLE_PROPERTY_CONST|SD_BUS_VTABLE_HIDDEN),
b677e7
 
b677e7
-        SD_BUS_METHOD("GetSession", "s", "o", method_get_session, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("GetSessionByPID", "u", "o", method_get_session_by_pid, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("GetUser", "u", "o", method_get_user, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("GetUserByPID", "u", "o", method_get_user_by_pid, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("GetSeat", "s", "o", method_get_seat, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("ListSessions", NULL, "a(susso)", method_list_sessions, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("ListUsers", NULL, "a(uso)", method_list_users, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("ListSeats", NULL, "a(so)", method_list_seats, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("ListInhibitors", NULL, "a(ssssuu)", method_list_inhibitors, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CreateSession", "uusssssussbssa(sv)", "soshusub", method_create_session, 0),
b677e7
-        SD_BUS_METHOD("ReleaseSession", "s", NULL, method_release_session, 0),
b677e7
-        SD_BUS_METHOD("ActivateSession", "s", NULL, method_activate_session, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("ActivateSessionOnSeat", "ss", NULL, method_activate_session_on_seat, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("LockSession", "s", NULL, method_lock_session, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("UnlockSession", "s", NULL, method_lock_session, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("LockSessions", NULL, NULL, method_lock_sessions, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("UnlockSessions", NULL, NULL, method_lock_sessions, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("KillSession", "ssi", NULL, method_kill_session, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("KillUser", "ui", NULL, method_kill_user, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("TerminateSession", "s", NULL, method_terminate_session, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("TerminateUser", "u", NULL, method_terminate_user, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("TerminateSeat", "s", NULL, method_terminate_seat, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("SetUserLinger", "ubb", NULL, method_set_user_linger, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("AttachDevice", "ssb", NULL, method_attach_device, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("FlushDevices", "b", NULL, method_flush_devices, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("PowerOff", "b", NULL, method_poweroff, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("Reboot", "b", NULL, method_reboot, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("Halt", "b", NULL, method_halt, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("Suspend", "b", NULL, method_suspend, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("Hibernate", "b", NULL, method_hibernate, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("HybridSleep", "b", NULL, method_hybrid_sleep, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("SuspendThenHibernate", "b", NULL, method_suspend_then_hibernate, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CanPowerOff", NULL, "s", method_can_poweroff, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CanReboot", NULL, "s", method_can_reboot, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CanHalt", NULL, "s", method_can_halt, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CanSuspend", NULL, "s", method_can_suspend, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CanHibernate", NULL, "s", method_can_hibernate, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CanHybridSleep", NULL, "s", method_can_hybrid_sleep, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CanSuspendThenHibernate", NULL, "s", method_can_suspend_then_hibernate, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("ScheduleShutdown", "st", NULL, method_schedule_shutdown, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CancelScheduledShutdown", NULL, "b", method_cancel_scheduled_shutdown, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("Inhibit", "ssss", "h", method_inhibit, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("CanRebootToFirmwareSetup", NULL, "s", method_can_reboot_to_firmware_setup, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("SetRebootToFirmwareSetup", "b", NULL, method_set_reboot_to_firmware_setup, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-        SD_BUS_METHOD("SetWallMessage", "sb", NULL, method_set_wall_message, SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
-
b677e7
-        SD_BUS_SIGNAL("SessionNew", "so", 0),
b677e7
-        SD_BUS_SIGNAL("SessionRemoved", "so", 0),
b677e7
-        SD_BUS_SIGNAL("UserNew", "uo", 0),
b677e7
-        SD_BUS_SIGNAL("UserRemoved", "uo", 0),
b677e7
-        SD_BUS_SIGNAL("SeatNew", "so", 0),
b677e7
-        SD_BUS_SIGNAL("SeatRemoved", "so", 0),
b677e7
-        SD_BUS_SIGNAL("PrepareForShutdown", "b", 0),
b677e7
-        SD_BUS_SIGNAL("PrepareForSleep", "b", 0),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("GetSession",
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(session_id),
b677e7
+                                 "o",
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 method_get_session,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("GetSessionByPID",
b677e7
+                                 "u",
b677e7
+                                 SD_BUS_PARAM(pid),
b677e7
+                                 "o",
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 method_get_session_by_pid,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("GetUser",
b677e7
+                                 "u",
b677e7
+                                 SD_BUS_PARAM(uid),
b677e7
+                                 "o",
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 method_get_user,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("GetUserByPID",
b677e7
+                                 "u",
b677e7
+                                 SD_BUS_PARAM(pid),
b677e7
+                                 "o",
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 method_get_user_by_pid,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("GetSeat",
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(seat_id),
b677e7
+                                 "o",
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 method_get_seat,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("ListSessions",
b677e7
+                                 NULL,,
b677e7
+                                 "a(susso)",
b677e7
+                                 SD_BUS_PARAM(sessions),
b677e7
+                                 method_list_sessions,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("ListUsers",
b677e7
+                                 NULL,,
b677e7
+                                 "a(uso)",
b677e7
+                                 SD_BUS_PARAM(users),
b677e7
+                                 method_list_users,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("ListSeats",
b677e7
+                                 NULL,,
b677e7
+                                 "a(so)",
b677e7
+                                 SD_BUS_PARAM(seats),
b677e7
+                                 method_list_seats,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("ListInhibitors",
b677e7
+                                 NULL,,
b677e7
+                                 "a(ssssuu)",
b677e7
+                                 SD_BUS_PARAM(inhibitors),
b677e7
+                                 method_list_inhibitors,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CreateSession",
b677e7
+                                 "uusssssussbssa(sv)",
b677e7
+                                 SD_BUS_PARAM(uid)
b677e7
+                                 SD_BUS_PARAM(pid)
b677e7
+                                 SD_BUS_PARAM(service)
b677e7
+                                 SD_BUS_PARAM(type)
b677e7
+                                 SD_BUS_PARAM(class)
b677e7
+                                 SD_BUS_PARAM(desktop)
b677e7
+                                 SD_BUS_PARAM(seat_id)
b677e7
+                                 SD_BUS_PARAM(vtnr)
b677e7
+                                 SD_BUS_PARAM(tty)
b677e7
+                                 SD_BUS_PARAM(display)
b677e7
+                                 SD_BUS_PARAM(remote)
b677e7
+                                 SD_BUS_PARAM(remote_user)
b677e7
+                                 SD_BUS_PARAM(remote_host)
b677e7
+                                 SD_BUS_PARAM(properties),
b677e7
+                                 "soshusub",
b677e7
+                                 SD_BUS_PARAM(session_id)
b677e7
+                                 SD_BUS_PARAM(object_path)
b677e7
+                                 SD_BUS_PARAM(runtime_path)
b677e7
+                                 SD_BUS_PARAM(fifo_fd)
b677e7
+                                 SD_BUS_PARAM(uid)
b677e7
+                                 SD_BUS_PARAM(seat_id)
b677e7
+                                 SD_BUS_PARAM(vtnr)
b677e7
+                                 SD_BUS_PARAM(existing),
b677e7
+                                 method_create_session,
b677e7
+                                 0),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("ReleaseSession",
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(session_id),
b677e7
+                                 NULL,,
b677e7
+                                 method_release_session,
b677e7
+                                 0),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("ActivateSession",
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(session_id),
b677e7
+                                 NULL,,
b677e7
+                                 method_activate_session,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("ActivateSessionOnSeat",
b677e7
+                                 "ss",
b677e7
+                                 SD_BUS_PARAM(session_id)
b677e7
+                                 SD_BUS_PARAM(seat_id),
b677e7
+                                 NULL,,
b677e7
+                                 method_activate_session_on_seat,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("LockSession",
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(session_id),
b677e7
+                                 NULL,,
b677e7
+                                 method_lock_session,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("UnlockSession",
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(session_id),
b677e7
+                                 NULL,,
b677e7
+                                 method_lock_session,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD("LockSessions",
b677e7
+                      NULL,
b677e7
+                      NULL,
b677e7
+                      method_lock_sessions,
b677e7
+                      SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD("UnlockSessions",
b677e7
+                      NULL,
b677e7
+                      NULL,
b677e7
+                      method_lock_sessions,
b677e7
+                      SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("KillSession",
b677e7
+                                 "ssi",
b677e7
+                                 SD_BUS_PARAM(session_id)
b677e7
+                                 SD_BUS_PARAM(who)
b677e7
+                                 SD_BUS_PARAM(signal_number),
b677e7
+                                 NULL,,
b677e7
+                                 method_kill_session,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("KillUser",
b677e7
+                                 "ui",
b677e7
+                                 SD_BUS_PARAM(uid)
b677e7
+                                 SD_BUS_PARAM(signal_number),
b677e7
+                                 NULL,,
b677e7
+                                 method_kill_user,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("TerminateSession",
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(session_id),
b677e7
+                                 NULL,,
b677e7
+                                 method_terminate_session,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("TerminateUser",
b677e7
+                                 "u",
b677e7
+                                 SD_BUS_PARAM(uid),
b677e7
+                                 NULL,,
b677e7
+                                 method_terminate_user,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("TerminateSeat",
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(seat_id),
b677e7
+                                 NULL,,
b677e7
+                                 method_terminate_seat,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("SetUserLinger",
b677e7
+                                 "ubb",
b677e7
+                                 SD_BUS_PARAM(uid)
b677e7
+                                 SD_BUS_PARAM(enable)
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_set_user_linger,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("AttachDevice",
b677e7
+                                 "ssb",
b677e7
+                                 SD_BUS_PARAM(seat_id)
b677e7
+                                 SD_BUS_PARAM(sysfs_path)
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_attach_device,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("FlushDevices",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_flush_devices,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("PowerOff",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_poweroff,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("PowerOffWithFlags",
b677e7
+                                 "t",
b677e7
+                                 SD_BUS_PARAM(flags),
b677e7
+                                 NULL,,
b677e7
+                                 method_poweroff,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("Reboot",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_reboot,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("RebootWithFlags",
b677e7
+                                 "t",
b677e7
+                                 SD_BUS_PARAM(flags),
b677e7
+                                 NULL,,
b677e7
+                                 method_reboot,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("Halt",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_halt,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("HaltWithFlags",
b677e7
+                                 "t",
b677e7
+                                 SD_BUS_PARAM(flags),
b677e7
+                                 NULL,,
b677e7
+                                 method_halt,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("Suspend",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_suspend,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("SuspendWithFlags",
b677e7
+                                 "t",
b677e7
+                                 SD_BUS_PARAM(flags),
b677e7
+                                 NULL,,
b677e7
+                                 method_suspend,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("Hibernate",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_hibernate,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("HibernateWithFlags",
b677e7
+                                 "t",
b677e7
+                                 SD_BUS_PARAM(flags),
b677e7
+                                 NULL,,
b677e7
+                                 method_hibernate,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("HybridSleep",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_hybrid_sleep,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("HybridSleepWithFlags",
b677e7
+                                 "t",
b677e7
+                                 SD_BUS_PARAM(flags),
b677e7
+                                 NULL,,
b677e7
+                                 method_hybrid_sleep,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("SuspendThenHibernate",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(interactive),
b677e7
+                                 NULL,,
b677e7
+                                 method_suspend_then_hibernate,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("SuspendThenHibernateWithFlags",
b677e7
+                                 "t",
b677e7
+                                 SD_BUS_PARAM(flags),
b677e7
+                                 NULL,,
b677e7
+                                 method_suspend_then_hibernate,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CanPowerOff",
b677e7
+                                 NULL,,
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(result),
b677e7
+                                 method_can_poweroff,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CanReboot",
b677e7
+                                 NULL,,
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(result),
b677e7
+                                 method_can_reboot,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CanHalt",
b677e7
+                                 NULL,,
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(result),
b677e7
+                                 method_can_halt,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CanSuspend",
b677e7
+                                 NULL,,
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(result),
b677e7
+                                 method_can_suspend,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CanHibernate",
b677e7
+                                 NULL,,
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(result),
b677e7
+                                 method_can_hibernate,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CanHybridSleep",
b677e7
+                                 NULL,,
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(result),
b677e7
+                                 method_can_hybrid_sleep,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CanSuspendThenHibernate",
b677e7
+                                 NULL,,
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(result),
b677e7
+                                 method_can_suspend_then_hibernate,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("ScheduleShutdown",
b677e7
+                                 "st",
b677e7
+                                 SD_BUS_PARAM(type)
b677e7
+                                 SD_BUS_PARAM(usec),
b677e7
+                                 NULL,,
b677e7
+                                 method_schedule_shutdown,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CancelScheduledShutdown",
b677e7
+                                 NULL,,
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(cancelled),
b677e7
+                                 method_cancel_scheduled_shutdown,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("Inhibit",
b677e7
+                                 "ssss",
b677e7
+                                 SD_BUS_PARAM(what)
b677e7
+                                 SD_BUS_PARAM(who)
b677e7
+                                 SD_BUS_PARAM(why)
b677e7
+                                 SD_BUS_PARAM(mode),
b677e7
+                                 "h",
b677e7
+                                 SD_BUS_PARAM(pipe_fd),
b677e7
+                                 method_inhibit,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("CanRebootToFirmwareSetup",
b677e7
+                                 NULL,,
b677e7
+                                 "s",
b677e7
+                                 SD_BUS_PARAM(result),
b677e7
+                                 method_can_reboot_to_firmware_setup,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("SetRebootToFirmwareSetup",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(enable),
b677e7
+                                 NULL,,
b677e7
+                                 method_set_reboot_to_firmware_setup,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+        SD_BUS_METHOD_WITH_NAMES("SetWallMessage",
b677e7
+                                 "sb",
b677e7
+                                 SD_BUS_PARAM(wall_message)
b677e7
+                                 SD_BUS_PARAM(enable),
b677e7
+                                 NULL,,
b677e7
+                                 method_set_wall_message,
b677e7
+                                 SD_BUS_VTABLE_UNPRIVILEGED),
b677e7
+
b677e7
+        SD_BUS_SIGNAL_WITH_NAMES("SessionNew",
b677e7
+                                 "so",
b677e7
+                                 SD_BUS_PARAM(session_id)
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 0),
b677e7
+        SD_BUS_SIGNAL_WITH_NAMES("SessionRemoved",
b677e7
+                                 "so",
b677e7
+                                 SD_BUS_PARAM(session_id)
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 0),
b677e7
+        SD_BUS_SIGNAL_WITH_NAMES("UserNew",
b677e7
+                                 "uo",
b677e7
+                                 SD_BUS_PARAM(uid)
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 0),
b677e7
+        SD_BUS_SIGNAL_WITH_NAMES("UserRemoved",
b677e7
+                                 "uo",
b677e7
+                                 SD_BUS_PARAM(uid)
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 0),
b677e7
+        SD_BUS_SIGNAL_WITH_NAMES("SeatNew",
b677e7
+                                 "so",
b677e7
+                                 SD_BUS_PARAM(seat_id)
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 0),
b677e7
+        SD_BUS_SIGNAL_WITH_NAMES("SeatRemoved",
b677e7
+                                 "so",
b677e7
+                                 SD_BUS_PARAM(seat_id)
b677e7
+                                 SD_BUS_PARAM(object_path),
b677e7
+                                 0),
b677e7
+        SD_BUS_SIGNAL_WITH_NAMES("PrepareForShutdown",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(start),
b677e7
+                                 0),
b677e7
+        SD_BUS_SIGNAL_WITH_NAMES("PrepareForSleep",
b677e7
+                                 "b",
b677e7
+                                 SD_BUS_PARAM(start),
b677e7
+                                 0),
b677e7
 
b677e7
         SD_BUS_VTABLE_END
b677e7
 };
b677e7
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
b677e7
index 8bcbf6bf4b..3dd7c1522f 100644
b677e7
--- a/src/systemctl/systemctl.c
b677e7
+++ b/src/systemctl/systemctl.c
b677e7
@@ -50,6 +50,7 @@
b677e7
 #include "list.h"
b677e7
 #include "locale-util.h"
b677e7
 #include "log.h"
b677e7
+#include "login-util.h"
b677e7
 #include "logs-show.h"
b677e7
 #include "macro.h"
b677e7
 #include "mkdir.h"
b677e7
@@ -3266,6 +3267,8 @@ static int logind_reboot(enum action a) {
b677e7
         };
b677e7
 
b677e7
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
b677e7
+        const char *method_with_flags;
b677e7
+        uint64_t flags = 0;
b677e7
         sd_bus *bus;
b677e7
         int r;
b677e7
 
b677e7
@@ -3284,6 +3287,29 @@ static int logind_reboot(enum action a) {
b677e7
         if (arg_dry_run)
b677e7
                 return 0;
b677e7
 
b677e7
+        SET_FLAG(flags, SD_LOGIND_ROOT_CHECK_INHIBITORS, arg_check_inhibitors > 0);
b677e7
+
b677e7
+        method_with_flags = strjoina(actions[a].method, "WithFlags");
b677e7
+
b677e7
+        r = sd_bus_call_method(
b677e7
+                        bus,
b677e7
+                        "org.freedesktop.login1",
b677e7
+                        "/org/freedesktop/login1",
b677e7
+                        "org.freedesktop.login1.Manager",
b677e7
+                        method_with_flags,
b677e7
+                        &error,
b677e7
+                        NULL,
b677e7
+                        "t", flags);
b677e7
+        if (r >= 0)
b677e7
+                return 0;
b677e7
+
b677e7
+        if (!sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_METHOD))
b677e7
+                return log_error_errno(r, "Failed to %s via logind: %s", actions[a].description, bus_error_message(&error, r));
b677e7
+
b677e7
+        /* Fallback to original methods in case there is older version of systemd-logind */
b677e7
+        log_debug("Method %s not available: %s. Falling back to %s", method_with_flags, bus_error_message(&error, r), actions[a].method);
b677e7
+        sd_bus_error_free(&error);
b677e7
+
b677e7
         r = sd_bus_call_method(
b677e7
                         bus,
b677e7
                         "org.freedesktop.login1",
b677e7
diff --git a/src/systemd/sd-bus-vtable.h b/src/systemd/sd-bus-vtable.h
b677e7
index 1268085498..8805e19477 100644
b677e7
--- a/src/systemd/sd-bus-vtable.h
b677e7
+++ b/src/systemd/sd-bus-vtable.h
b677e7
@@ -65,10 +65,12 @@ struct sd_bus_vtable {
b677e7
                         const char *result;
b677e7
                         sd_bus_message_handler_t handler;
b677e7
                         size_t offset;
b677e7
+                        const char *names;
b677e7
                 } method;
b677e7
                 struct {
b677e7
                         const char *member;
b677e7
                         const char *signature;
b677e7
+                        const char *names;
b677e7
                 } signal;
b677e7
                 struct {
b677e7
                         const char *member;
b677e7
@@ -91,7 +93,10 @@ struct sd_bus_vtable {
b677e7
                 },                                                      \
b677e7
         }
b677e7
 
b677e7
-#define SD_BUS_METHOD_WITH_OFFSET(_member, _signature, _result, _handler, _offset, _flags)   \
b677e7
+/* helper macro to format method and signal parameters, one at a time */
b677e7
+#define SD_BUS_PARAM(x) #x "\0"
b677e7
+
b677e7
+#define SD_BUS_METHOD_WITH_NAMES_OFFSET(_member, _signature, _in_names, _result, _out_names, _handler, _offset, _flags) \
b677e7
         {                                                               \
b677e7
                 .type = _SD_BUS_VTABLE_METHOD,                          \
b677e7
                 .flags = _flags,                                        \
b677e7
@@ -102,13 +107,18 @@ struct sd_bus_vtable {
b677e7
                         .result = _result,                              \
b677e7
                         .handler = _handler,                            \
b677e7
                         .offset = _offset,                              \
b677e7
+                        .names = _in_names _out_names,                  \
b677e7
                     },                                                  \
b677e7
                 },                                                      \
b677e7
         }
b677e7
+#define SD_BUS_METHOD_WITH_OFFSET(_member, _signature, _result, _handler, _offset, _flags)   \
b677e7
+        SD_BUS_METHOD_WITH_NAMES_OFFSET(_member, _signature, "", _result, "", _handler, _offset, _flags)
b677e7
+#define SD_BUS_METHOD_WITH_NAMES(_member, _signature, _in_names, _result, _out_names, _handler, _flags)   \
b677e7
+        SD_BUS_METHOD_WITH_NAMES_OFFSET(_member, _signature, _in_names, _result, _out_names, _handler, 0, _flags)
b677e7
 #define SD_BUS_METHOD(_member, _signature, _result, _handler, _flags)   \
b677e7
-        SD_BUS_METHOD_WITH_OFFSET(_member, _signature, _result, _handler, 0, _flags)
b677e7
+        SD_BUS_METHOD_WITH_NAMES_OFFSET(_member, _signature, "", _result, "", _handler, 0, _flags)
b677e7
 
b677e7
-#define SD_BUS_SIGNAL(_member, _signature, _flags)                      \
b677e7
+#define SD_BUS_SIGNAL_WITH_NAMES(_member, _signature, _out_names, _flags)                      \
b677e7
         {                                                               \
b677e7
                 .type = _SD_BUS_VTABLE_SIGNAL,                          \
b677e7
                 .flags = _flags,                                        \
b677e7
@@ -116,9 +126,12 @@ struct sd_bus_vtable {
b677e7
                     .signal = {                                         \
b677e7
                         .member = _member,                              \
b677e7
                         .signature = _signature,                        \
b677e7
+                        .names = _out_names,                            \
b677e7
                     },                                                  \
b677e7
                 },                                                      \
b677e7
         }
b677e7
+#define SD_BUS_SIGNAL(_member, _signature, _flags)   \
b677e7
+        SD_BUS_SIGNAL_WITH_NAMES(_member, _signature, "", _flags)
b677e7
 
b677e7
 #define SD_BUS_PROPERTY(_member, _signature, _get, _offset, _flags)     \
b677e7
         {                                                               \