/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/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 Committer Comment Size
..
.bzr-builddeb 185 15 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in Diff
debian 185 15 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in Diff
network-hooks.d 505.3.10 12 years ago Teddy Hogeborn * network-hooks.d: New directory. * network-hooks. Diff
plugin-helpers 738.1.1 8 years ago Teddy Hogeborn Add a plugin helper directory, available to all pl Diff
plugins.d 13 15 years ago Björn Påhlsson Added following support: Pluginbased client handle Diff
.bzrignore 585 11 years ago Teddy Hogeborn * .bzrignore (statedir): Added. 188 bytes Diff Download File
bugs.xml 821 8 years ago Teddy Hogeborn Add bug reporting information to manual pages * b 539 bytes Diff Download File
clients.conf 964 5 years ago Teddy Hogeborn Doc fix: Change some "/etc/mandos" to "/etc/keys/m 3.3 KB Diff Download File
common.ent 237.4.108 5 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.3. * NEWS (Ver 93 bytes Diff Download File
COPYING 24.1.51 15 years ago Björn Påhlsson Added configuration files support for mandos-clien 34.2 KB Diff Download File
DBUS-API 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 5.9 KB Diff Download File
dbus-mandos.conf 24.1.186 12 years ago Björn Påhlsson transitional stuff actually working documented cha 820 bytes Diff Download File
default-mandos 185 15 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in 174 bytes Diff Download File
init.d-mandos 927 6 years ago Teddy Hogeborn Remove unnecessary text left from old example init 4.2 KB Diff Download File
initramfs-tools-conf 954 5 years ago Teddy Hogeborn Move UMASK setting to more proper place * Makefil 695 bytes Diff Download File
File initramfs-tools-hook 954 5 years ago Teddy Hogeborn Move UMASK setting to more proper place * Makefil 7.6 KB Diff Download File
File initramfs-tools-script 953 5 years ago Teddy Hogeborn Adapt to changes in cryptsetup; use "cryptroot-unl 4.5 KB Diff Download File
File initramfs-tools-script-stop 956 5 years ago Teddy Hogeborn Set executable permissions on new files * initram 1.8 KB Diff Download File
File initramfs-unpack 923 6 years ago Teddy Hogeborn Update copyright year to 2018 * DBUS-API: Update 2.3 KB Diff Download File
INSTALL 962 5 years ago Teddy Hogeborn Add support for using raw public keys in TLS (RFC 5.4 KB Diff Download File
intro.xml 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 16.3 KB Diff Download File
legalnotice.xml 907 6 years ago Teddy Hogeborn Alter copyright notices slightly. Actual license 1 KB Diff Download File
Makefile 237.4.108 5 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.3. * NEWS (Ver 18.7 KB Diff Download File
File mandos 1088 5 years ago Teddy Hogeborn mandos: Refactor; use classes, not instances, as n 142 KB Diff Download File
mandos-clients.conf.xml 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 19.4 KB Diff Download File
File mandos-ctl 1090 5 years ago Teddy Hogeborn mandos-ctl: Refactor D-Bus operations * mandos-ct 83.2 KB Diff Download File
mandos-ctl.xml 1043 5 years ago Teddy Hogeborn mandos-ctl: Add new --debug option to show D-Bus c 17.3 KB Diff Download File
File mandos-keygen 237.4.108 5 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.3. * NEWS (Ver 12.6 KB Diff Download File
mandos-keygen.xml 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 16.3 KB Diff Download File
File mandos-monitor 237.4.108 5 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.3. * NEWS (Ver 29.1 KB Diff Download File
mandos-monitor.xml 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 6.3 KB Diff Download File
mandos-options.xml 962 5 years ago Teddy Hogeborn Add support for using raw public keys in TLS (RFC 5 KB Diff Download File
File mandos-to-cryptroot-unlock 956 5 years ago Teddy Hogeborn Set executable permissions on new files * initram 2.5 KB Diff Download File
mandos.conf 777 8 years ago Teddy Hogeborn Bug fix for GnuTLS 3: be compatible with old 2048- 1.6 KB Diff Download File
mandos.conf.xml 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 8.9 KB Diff Download File
mandos.lsm 237.4.108 5 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.3. * NEWS (Ver 907 bytes Diff Download File
mandos.service 905 6 years ago Teddy Hogeborn Add some more restrictions to the systemd service 1.2 KB Diff Download File
mandos.xml 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 24.1 KB Diff Download File
NEWS 237.4.108 5 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.3. * NEWS (Ver 19.5 KB Diff Download File
overview.xml 962 5 years ago Teddy Hogeborn Add support for using raw public keys in TLS (RFC 923 bytes Diff Download File
plugin-runner.c 975 5 years ago Teddy Hogeborn Fix warnings from -Wimplicit-fallthrough * plugin 34.8 KB Diff Download File
plugin-runner.conf 342 14 years ago Teddy Hogeborn * initramfs-tools-hook: Bug fix: Add "--userid" an 380 bytes Diff Download File
plugin-runner.xml 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 22.6 KB Diff Download File
README 844 8 years ago Teddy Hogeborn Use HTTPS in home page links Since we have a real 410 bytes Diff Download File
tmpfiles.d-mandos.conf 838 8 years ago Teddy Hogeborn Server: New tmpfiles.d file for persistent state d 38 bytes Diff Download File
TODO 1080 5 years ago Teddy Hogeborn mandos-ctl: Refactor tests * mandos-ctl (Test_str 4.6 KB Diff Download File