/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to DBUS-API

  • Committer: Teddy Hogeborn
  • Date: 2015-07-06 20:09:47 UTC
  • mto: This revision was merged to the branch mainline in revision 759.
  • Revision ID: teddy@recompile.se-20150706200947-w21u4eq74efgl6r5
Fix minor bugs and typos and add some more debug output.

* Makefile (install-client-nokey): Create plugin-helpers directory and
                                   the mandos-client-iprouteadddel
                                   helper program.
* initramfs-tools-hook (PLUGINHELPERDIR): Fix typo.
* plugins.d/mandos-client.c: Change terminology; routes are "deleted",
                             not "removed".  All occurences changed.
  (add_remove_local_route): Renamed to "add_delete_local_route".  All
                            callers changed.  Also pass "--debug" flag
                            to helper if in debug mode.
  (add_local_route): Add debugging output.
  (remove_local_route): Renamed to "delete_local_route".  All callers
                        changed.  Also pass "--debug" flag to helper
                        if in debug mode.
  (start_mandos_communication): Add debug output when adding route.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    Assert that this client has been checked and found to be alive.
56
56
    This will restart the timeout before disabling this client.  See
57
57
    also the "LastCheckedOK" property.
 
58
    
 
59
*** Disable() → nothing
 
60
    Disable this client.  See also the "Enabled" property.
 
61
    
 
62
*** Enable() → nothing
 
63
    Enable this client.  See also the "Enabled" property.
 
64
    
 
65
*** StartChecker() → nothing
 
66
    Start a new checker for this client, if none is currently
 
67
    running.  See also the "CheckerRunning" property.
 
68
    
 
69
*** StopChecker() → nothing
 
70
    Abort a running checker process for this client, if any.  See also
 
71
    the "CheckerRunning" property.
58
72
 
59
73
** Properties
60
74
   
82
96
   | LastCheckerStatus (i)   | n    | Read       | N/A                 |
83
97
   | LastEnabled (j)         | s    | Read       | N/A                 |
84
98
   | Name                    | s    | Read       | (Section name)      |
 
99
   | ObjectPath              | o    | Read       | N/A                 |
85
100
   | Secret (k)              | ay   | Write      | secret (or secfile) |
86
101
   | Timeout (a)             | t    | Read/Write | timeout             |
87
102
   
89
104
   
90
105
   b) An approval is currently pending.
91
106
   
92
 
   c) Changing this property can either start a new checker or abort a
93
 
      running one.
 
107
   c) Setting this property is equivalent to calling StartChecker() or
 
108
      StopChecker().
94
109
   
95
110
   d) The creation time of this client object, as an RFC 3339 string.
96
111
   
97
 
   e) Changing this property enables or disables a client.
 
112
   e) Setting this property is equivalent to calling Enable() or
 
113
      Disable().
98
114
   
99
115
   f) The date and time this client will be disabled, as an RFC 3339
100
116
      string, or an empty string if this is not scheduled.
139
155
 
140
156
* Copyright
141
157
 
142
 
    Copyright © 2010-2015 Teddy Hogeborn
143
 
    Copyright © 2010-2015 Björn Påhlsson
 
158
    Copyright © 2010-2012 Teddy Hogeborn
 
159
    Copyright © 2010-2012 Björn Påhlsson
144
160
  
145
161
** License:
146
162