]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dbus-execute: show also ProtectClock 15321/head
authorTopi Miettinen <toiwoton@gmail.com>
Fri, 3 Apr 2020 13:32:10 +0000 (16:32 +0300)
committerTopi Miettinen <toiwoton@gmail.com>
Fri, 3 Apr 2020 13:32:10 +0000 (16:32 +0300)
Show also `ProtectClock=` setting. This also lets `systemd-analyze security`
get the correct state for it.

src/core/dbus-execute.c

index e8be76e315c56c8e90dd4f025607d0211205893f..5696a60ba80bcc33bc8263d76006f7b5007006be 100644 (file)
@@ -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),