/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 TODO

  • Committer: Teddy Hogeborn
  • Date: 2008-07-29 03:35:39 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080729033539-08zecoj3jwlkpjhw
* server.conf: New file.

* mandos-clients.conf: Renamed to clients.conf.

* Makefile (FORTIFY): New.
  (CFLAGS): Include $(FORTIFY).

* plugins.d/mandosclient.c (main): New "if_index" variable.  Bug fix:
                                   check if interface exists.  New
                                   "--connect" option.

* server.py (serviceInterface): Removed; replaced by
                                "AvahiService.interface".  All users
                                changed.
  (AvahiError, AvahiServiceError, AvahiGroupError): New exception
                                                    classes.
  (AvahiService): New class.
  (serviceName): Removed; replaced by "AvahiService.name".  All users
                 changed.
  (serviceType): Removed; replaced by "AvahiService.type".  All users
                 changed.
  (servicePort): Removed; replaced by "AvahiService.port".  All users
                 changed.
  (serviceTXT): Removed; replaced by "AvahiService.TXT".  All users
                changed.
  (domain): Removed; replaced by "AvahiService.domain".  All users
            changed.
  (host): Removed; replaced by "AvahiService.host".  All users
          changed.
  (rename_count): Removed; replaced by "AvahiService.rename_count" and
                 "AvahiService.max_renames".  All users changed.
  (Client.__init__): If no secret or secfile, raise TypeError instead
                     of RuntimeError.
  (Client.last_seen): Renamed to "Client.last_checked_ok".  All users
                      changed.
  (Client.stop, Client.stop_checker): Use "getattr" with default value
                                      instead of "hasattr".
  (Client.still_valid): Removed "now" argument.
  (Client.handle): Separate the "no client found" and "client invalid"
                   cases for clearer code.
  (IPv6_TCPServer.__init__): "options" argument replaced by
                             "settings".  All callers changed.
  (IPv6_TCPServer.options): Replaced by "IPv6_TCPServer.settings".
                            All users changed.
  (IPv6_TCPServer.server_bind): Use getattr instead of hasattr.
  (add_service): Removed; replaced by "AvahiService.add".  All callers
                 changed.
  (remove_service): Removed; replaced by "AvahiService.remove".  All
                    callers changed.
  (entry_group_state_changed): On entry group collision, call the new
                               AvahiService.rename method.  Raise
                               AvahiGroupError on group error.
  (if_nametoindex): Use ctypes.utils.find_library to locate the C
                    library.  Cache the result.  Loop on EINTR.
  (daemon): Use os.path.devnull to locate "/dev/null".
  (killme): Removed.  All callers changed to do "sys.exit()" instead,
            except where stated otherwise.
  (main): Removed "exitstatus".  Removed all default values from all
          non-bool options.  New option "--configdir".  New variables
          "server_defaults" and "server_settings", read from
          "%(configdir)s/server.conf".  Let any supplied command line
          options override server settings.   Variable "defaults"
          renamed to "client_defaults", which is read from
          "clients.conf" instead of "mandos-clients.conf".  New global
          AvahiService object "service" replaces old global variables.
          Catch AvahiError and exit with error if caught.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
-*- org -*-
2
 
 
3
 
* mandos-client
4
 
** TODO [#A] Clean up /tmp directory and take down interface on signal    :test:
5
 
** TODO [#B] use scandir(3) instead of readdir(3)
6
 
** TODO [#B] Prefix all debug output with argv[0]
7
 
 
8
 
* splashy
9
 
** TODO [#A] Re-raise signal received when exiting due to handled signal.
10
 
** TODO [#B] use scandir(3) instead of readdir(3)
11
 
** TODO [#B] Prefix all debug output with argv[0]
12
 
 
13
 
* usplash
14
 
** TODO [#A] Re-raise signal received when exiting due to handled signal.
15
 
** TODO [#B] use scandir(3) instead of readdir(3)
16
 
** TODO [#B] Prefix all debug output with argv[0]
17
 
 
18
 
* password-prompt
19
 
** TODO [#B] Prefix all debug output with argv[0]
20
 
 
21
 
* plugin-runner
22
 
** TODO [#A] Do not handle ignored signals
23
 
** TODO [#B] use scandir(3) instead of readdir(3)
24
 
** TODO [#C] use same file name rules as run-parts(8)
25
 
 
26
 
* mandos (server)
27
 
** TODO [#B] Log level                          :BUGS:
28
 
** TODO /etc/mandos/clients.d/*.conf
29
 
   Watch this directory and add/remove/update clients?
30
 
** TODO config for TXT record
31
 
** TODO [#B] Run-time communication with server :BUGS:
32
 
   Probably using D-Bus
33
 
*** Client class
34
 
*** Main server
35
 
    + SetLogLevel
36
 
      syslogger.setLevel(logging.WARNING)
37
 
    + [[http://log.ometer.com/2007-05.html][Best D-Bus practices]]
38
 
** TODO Implement --foreground                  :BUGS:
39
 
   [[info:standards:Option%20Table][Table of Long Options]]
40
 
** TODO Implement --socket
41
 
   [[info:standards:Option%20Table][Table of Long Options]]
42
 
** TODO Date+time on console log messages       :BUGS:
43
 
   Is this the default?
44
 
** TODO Split IPv6_TCPServer into a generic and Mandos-specific class
45
 
** TODO move handle_ipc out of IPv6_TCPServer
46
 
** TODO DBusServiceObjectUsingSuper
47
 
** Global enable/disable flag
48
 
** By-client countdown on secrets given
49
 
 
50
 
* mandos.xml
51
 
** [[file:mandos.xml::XXX][Document D-Bus interface]]
52
 
 
53
 
* Provide and install /etc/dbus-1/system.d/mandos.conf
54
 
 
55
 
* mandos-ctl
56
 
*** Handle "no D-Bus server" and/or "no Mandos server found" better
57
 
*** [#B] --dump option
58
 
 
59
 
* mandos-name
60
 
** D-Bus mail loop w/ signal receiver
61
 
** Urwid/Newt client data displayer
62
 
*** Urwid scaffolding
63
 
*** Client Widgets
64
 
*** Properties popup
65
 
 
66
 
* mandos-keygen
67
 
** TODO Loop until passwords match when run interactively
68
 
** TODO "--secfile" option
69
 
   Using the "secfile" option instead of "secret"
70
 
** TODO [#B] "--test" option
71
 
   For testing decryption before rebooting.
72
 
 
73
 
* Package
74
 
** /usr/share/initramfs-tools/hooks/mandos
75
 
*** TODO [#C] use same file name rules as run-parts(8)
76
 
*** TODO [#C] Do not install in initrd.img if configured not to.
77
 
    Use "/etc/initramfs-tools/hooksconf.d/mandos"?
78
 
** TODO [#C] /etc/bash_completion.d/mandos
79
 
   From XML sources directly?
80
 
 
81
 
 
82
 
#+STARTUP: showall
 
1
[Mandos client]
 
2
configuration for OpenPGP key dir
 
3
header files/symbols tally
 
4
check exit codes of all system calls
 
5
IPv4 support
 
6
protocol version header
 
7
use strsep instead of strtok?
 
8
 
 
9
[Pluginbasedclient]
 
10
disable certain plugins
 
11
header files/symbols tally
 
12
check exit codes of all system calls
 
13
change uid to nobody:nogroup
 
14
        other drop privs stuff?
 
15
pass things in environment, like device name, etc
 
16
        Does cryptsetup already do this?
 
17
Configurable plugin dir
 
18
use strsep instead of strtok?
 
19
 
 
20
[Server]
 
21
config for:
 
22
        TXT record
 
23
protocol version header
 
24
Run-time communication with server
 
25
        probably using D-Bus
 
26
 
 
27
[Mandos-tools/utilities]
 
28
        List clients
 
29
        Enable client
 
30
        Disable client
 
31
 
 
32
[Installer]
 
33
...