/mandos/trunk

To get this branch, use:
bzr branch /loggerhead/mandos/trunk

  • Committer: Teddy Hogeborn
  • Date: 2019-03-30 07:03:04 UTC
  • Revision ID: teddy@recompile.se-20190330070304-dqgch62lsaaygg46
mandos-ctl: Refactor D-Bus operations

* mandos-ctl (dbus): Rename imported module to "dbus_python".
  (main): Only create a bus object and do everything via that object.
  (get_mandos_dbus_object): Remove and move code into dbus or
                            dbus_python_adapter namespaces.
  (if_dbus_exception_log_with_exception_and_exit): - '' -
  (SilenceLogger): - '' -
  (dbus): New; move everything dbus-specific into this module-like
          namespace.
  (dbus_python_adapter): New; move everything specific to the
                         dbus-python D-Bus module into this
                         module-like namespace.
  (command.Base.run): Take only a bus argument; use only that.  Pass
                      "client" argument as a D-Bus object path string,
                      not a dbus-python proxy object.  All derivatives
                      adjusted.
  (command.IsEnabled.is_enabled): Remove.
  (command.Approve, command.Deny, command.Remove,
  command.PropertySetter): Do no logging of D-Bus commands, and use
  only bus, not client, to do D-Bus calls.
  (command.DumpJSON.dbus_boolean_to_bool): Remove; move filtering to
                                           dbus_python_adapter.
  (command.Enable, command.Disable, command.StopChecker,
  command.ApproveByDefault): Use normal Python booleans instead of
  dbus-python's special Boolean types.
  (Unique): New; move here out from inside TestPropertySetterCmd.
  (Test_get_mandos_dbus_object): Remove.
  (Test_get_managed_objects): - '' -
  (Test_dbus_exceptions): New.
  (Test_dbus_MandosBus): - '' -
  (Test_dbus_python_adapter_SystemBus): - '' -
  (Test_dbus_python_adapter_CachingBus): - '' -
  (Test_commands_from_options): Don't create mock client proxy
  objects, define dict of client properties and use a mock dbus to
  verify that the correct D-Bus calls are made.  Also remove any types
  specific to dbus-python.
  (TestEnableCmd, TestDisableCmd, TestStartCheckerCmd,
  TestStopCheckerCmd, TestApproveByDefaultCmd, TestDenyByDefaultCmd):
  Use normal Python booleans instead of dbus-python's special Boolean
  types.
  (TestPropertySetterValueCmd.runTest): Remove; unnecessary.
Filename Latest Rev Last Changed Size
.bzr-builddeb 185 2008-09-17 00:34:09 UTC Diff
debian 185 2008-09-17 00:34:09 UTC Diff
network-hooks.d 505.3.10 2011-11-24 20:15:24 UTC Diff
plugin-helpers 738.1.1 2015-06-28 16:35:27 UTC Diff
plugins.d 13 2008-07-20 02:52:20 UTC Diff
.bzrignore 585 2012-05-17 01:55:58 UTC 188 bytes Diff Download File
bugs.xml 821 2016-03-05 21:42:56 UTC 0.5 KB Diff Download File
clients.conf 964 2019-02-09 23:34:15 UTC 3.3 KB Diff Download File
common.ent 237.4.108 2019-02-11 06:31:42 UTC 93 bytes Diff Download File
COPYING 24.1.51 2008-08-15 20:17:32 UTC 34.2 KB Diff Download File
DBUS-API 969 2019-02-10 04:20:26 UTC 5.9 KB Diff Download File
dbus-mandos.conf 24.1.186 2011-10-02 19:18:24 UTC 0.8 KB Diff Download File
default-mandos 185 2008-09-17 00:34:09 UTC 174 bytes Diff Download File
init.d-mandos 927 2018-02-10 13:23:58 UTC 4.2 KB Diff Download File
initramfs-tools-conf 954 2018-08-19 14:06:55 UTC 0.6 KB Diff Download File
File initramfs-tools-hook 954 2018-08-19 14:06:55 UTC 7.6 KB Diff Download File
File initramfs-tools-script 953 2018-08-19 01:35:11 UTC 4.5 KB Diff Download File
File initramfs-tools-script-stop 956 2018-08-19 14:58:40 UTC 1.8 KB Diff Download File
File initramfs-unpack 923 2018-02-08 10:23:55 UTC 2.3 KB Diff Download File
INSTALL 962 2019-02-09 23:23:26 UTC 5.4 KB Diff Download File
intro.xml 969 2019-02-10 04:20:26 UTC 16.3 KB Diff Download File
legalnotice.xml 907 2017-08-20 16:20:54 UTC 1 KB Diff Download File
Makefile 237.4.108 2019-02-11 06:31:42 UTC 18.7 KB Diff Download File
File mandos 1088 2019-03-23 14:59:54 UTC 142 KB Diff Download File
mandos-clients.conf.xml 969 2019-02-10 04:20:26 UTC 19.4 KB Diff Download File
File mandos-ctl 1090 2019-03-30 07:03:04 UTC 83.2 KB Diff Download File
mandos-ctl.xml 1043 2019-03-08 23:55:34 UTC 17.3 KB Diff Download File
File mandos-keygen 237.4.108 2019-02-11 06:31:42 UTC 12.6 KB Diff Download File
mandos-keygen.xml 969 2019-02-10 04:20:26 UTC 16.3 KB Diff Download File
File mandos-monitor 237.4.108 2019-02-11 06:31:42 UTC 29.1 KB Diff Download File
mandos-monitor.xml 969 2019-02-10 04:20:26 UTC 6.3 KB Diff Download File
mandos-options.xml 962 2019-02-09 23:23:26 UTC 5 KB Diff Download File
File mandos-to-cryptroot-unlock 956 2018-08-19 14:58:40 UTC 2.5 KB Diff Download File
mandos.conf 777 2015-07-20 03:03:33 UTC 1.6 KB Diff Download File
mandos.conf.xml 969 2019-02-10 04:20:26 UTC 8.9 KB Diff Download File
mandos.lsm 237.4.108 2019-02-11 06:31:42 UTC 0.8 KB Diff Download File
mandos.service 905 2017-08-20 14:14:14 UTC 1.2 KB Diff Download File
mandos.xml 969 2019-02-10 04:20:26 UTC 24.1 KB Diff Download File
NEWS 237.4.108 2019-02-11 06:31:42 UTC 19.5 KB Diff Download File
overview.xml 962 2019-02-09 23:23:26 UTC 0.9 KB Diff Download File
plugin-runner.c 975 2019-02-11 05:14:10 UTC 34.8 KB Diff Download File
plugin-runner.conf 342 2009-04-17 08:26:17 UTC 380 bytes Diff Download File
plugin-runner.xml 969 2019-02-10 04:20:26 UTC 22.6 KB Diff Download File
README 844 2016-03-23 07:11:22 UTC 410 bytes Diff Download File
tmpfiles.d-mandos.conf 838 2016-03-19 03:51:23 UTC 38 bytes Diff Download File
TODO 1080 2019-03-17 16:48:56 UTC 4.6 KB Diff Download File