From b8b7b838fd6e1ab36962a592838a59de30c32b98 Mon Sep 17 00:00:00 2001 From: Topi Miettinen Date: Fri, 3 Apr 2020 16:32:10 +0300 Subject: [PATCH] dbus-execute: show also ProtectClock Show also `ProtectClock=` setting. This also lets `systemd-analyze security` get the correct state for it. --- src/core/dbus-execute.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index e8be76e315c..5696a60ba80 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -795,6 +795,7 @@ const sd_bus_vtable bus_exec_vtable[] = { SD_BUS_PROPERTY("MountFlags", "t", bus_property_get_ulong, offsetof(ExecContext, mount_flags), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("PrivateTmp", "b", bus_property_get_bool, offsetof(ExecContext, private_tmp), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("PrivateDevices", "b", bus_property_get_bool, offsetof(ExecContext, private_devices), SD_BUS_VTABLE_PROPERTY_CONST), + SD_BUS_PROPERTY("ProtectClock", "b", bus_property_get_bool, offsetof(ExecContext, protect_clock), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("ProtectKernelTunables", "b", bus_property_get_bool, offsetof(ExecContext, protect_kernel_tunables), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("ProtectKernelModules", "b", bus_property_get_bool, offsetof(ExecContext, protect_kernel_modules), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("ProtectKernelLogs", "b", bus_property_get_bool, offsetof(ExecContext, protect_kernel_logs), SD_BUS_VTABLE_PROPERTY_CONST),