/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 mandos-options.xml

  • Committer: Teddy Hogeborn
  • Date: 2015-08-10 09:00:23 UTC
  • Revision ID: teddy@recompile.se-20150810090023-fz6vjqr7zf33e2tf
Support the standard org.freedesktop.DBus.ObjectManager interface.

Now that the D-Bus standard has an interface to keep track of new and
removed objects, use that instead of our own methods.  This deprecates
our D-Bus methods "GetAllClients" and "GetAllClientsWithProperties"
and the signals "ClientAdded" and "ClientRemoved", all on the server
interface "se.recompile.Mandos".

* DBUS-API: Removed references to deprecated methods and signals;
  insert reference to the org.freedesktop.DBus.ObjectManager
  interface.
* mandos (DBusObjectWithProperties._get_all_interface_names): New.
  (dbus.OBJECT_MANAGER_IFACE): If not present, monkey patch.
  (DBusObjectWithObjectManager): New.
  (main/MandosDBusService): Inherit from DBusObjectWithObjectManager.
  (main/MandosDBusService.ClientRemoved): Annotate as deprecated.
  (main/MandosDBusService.GetAllClients): - '' -
  (main/MandosDBusService.GetAllClientsWithProperties): Annotate as
                                                        deprecated.
                                                        Also only
                                                        return
                                                        properties on
                                                        client
                                                        interface.
  (main/MandosDBusService.RemoveClient): Call client_removed_signal
                                         instead of ClientRemoved.
  (main/MandosDBusService.GetManagedObjects): New.
  (main/MandosDBusService.client_added_signal): New.
  (main/MandosDBusService.client_removed_signal): - '' -
  (main/cleanup): Call "client_removed_signal" instead of sending
                  "ClientRemoved" signal directly.
  (main): Call "client_added_signal" instead of sending "ClientAdded"
          signal directly.
* mandos-ctl: Use GetManagedObjects instead of
              GetAllClientsWithProperties.  Also, show better error
              message in case of failure to connect to the D-Bus

* mandos-monitor (MandosClientPropertyCache.properties_changed):
  Bug fix; only update properties on client interface.
  (UserInterface.find_and_remove_client): Change to accept arguments
                                          from InterfacesRemoved
                                          signal.  Also, bug fix:
                                          working error message when
                                          removing unknown client.
  (UserInterface.add_new_client): Change to accept arguments from
                                  InterfacesRemoved signal.  Pass
                                  properties to MandosClientWidget
                                  constructor.
  (UserInterface.run): Connect find_and_remove_client method to
                       InterfacesRemoved signal and the add_new_client
                       method to the InterfacesAdded signal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  <para id="priority">
50
50
    GnuTLS priority string for the <acronym>TLS</acronym> handshake.
51
51
    The default is <quote><literal
52
 
    >SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP</literal></quote>.  See
53
 
    <citerefentry><refentrytitle>gnutls_priority_init</refentrytitle>
 
52
    >SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP:!RSA</literal>
 
53
    <literal>:+SIGN-DSA-SHA256</literal></quote>.
 
54
    See <citerefentry><refentrytitle
 
55
    >gnutls_priority_init</refentrytitle>
54
56
    <manvolnum>3</manvolnum></citerefentry> for the syntax.
55
57
    <emphasis>Warning</emphasis>: changing this may make the
56
58
    <acronym>TLS</acronym> handshake fail, making server-client
57
 
    communication impossible.
 
59
    communication impossible.  Changing this option may also make the
 
60
    network traffic decryptable by an attacker.
58
61
  </para>
59
62
  
60
63
  <para id="servicename">
85
88
    to the server if this option is turned off.  <emphasis>Only
86
89
    advanced users should consider changing this option</emphasis>.
87
90
  </para>
88
 
 
 
91
  
89
92
  <para id="restore">
90
 
    This option controls whether the server will restore any state from
91
 
    last time it ran. The Default is to try restore last state.
 
93
    This option controls whether the server will restore its state
 
94
    from the last time it ran.  Default is to restore last state.
 
95
  </para>
 
96
  
 
97
  <para id="statedir">
 
98
    Directory to save (and restore) state in.  Default is
 
99
    <quote><filename
 
100
    class="directory">/var/lib/mandos</filename></quote>.
 
101
  </para>
 
102
  
 
103
  <para id="socket">
 
104
    If this option is used, the server will not create a new network
 
105
    socket, but will instead use the supplied file descriptor.  By
 
106
    default, the server will create a new network socket.
 
107
  </para>
 
108
  
 
109
  <para id="foreground">
 
110
    This option will make the server run in the foreground and not
 
111
    write a PID file.  The default is to <emphasis>not</emphasis> run
 
112
    in the foreground, except in <option>debug</option> mode, which
 
113
    implies this option.
 
114
  </para>
 
115
  
 
116
  <para id="zeroconf">
 
117
    This option controls whether the server will announce its
 
118
    existence using Zeroconf.  Default is to use Zeroconf.  If
 
119
    Zeroconf is not used, a <option>port</option> number or a
 
120
    <option>socket</option> is required.
92
121
  </para>
93
122
  
94
123
</section>