/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 [#B] use scandir(3) instead of readdir(3)
5
 
** TODO [#B] Prefix all debug output with argv[0]
6
 
** TODO [#B] Retry a server which has a non-definite reply:
7
 
*** A closed connection during the TLS handshake
8
 
*** A TCP timeout
9
 
** TODO [#B] Use capabilities instead of seteuid().
10
 
 
11
 
* splashy
12
 
** TODO [#A] Re-raise signal received when exiting due to handled signal  :test:
13
 
** TODO [#B] use scandir(3) instead of readdir(3)
14
 
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
15
 
 
16
 
* usplash
17
 
** TODO [#A] Re-raise signal received when exiting due to handled signal.
18
 
** TODO [#B] use scandir(3) instead of readdir(3)
19
 
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
20
 
 
21
 
* askpass-fifo
22
 
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
23
 
** TODO [#B] Drop privileges after opening FIFO.
24
 
 
25
 
* password-prompt
26
 
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
27
 
 
28
 
* plugin-runner
29
 
** TODO [#B] use scandir(3) instead of readdir(3)
30
 
** TODO [#C] use same file name rules as run-parts(8)
31
 
 
32
 
* mandos (server)
33
 
** TODO [#B] Log level                          :BUGS:
34
 
** TODO /etc/mandos/clients.d/*.conf
35
 
   Watch this directory and add/remove/update clients?
36
 
** TODO config for TXT record
37
 
** TODO [#B] Run-time communication with server :BUGS:
38
 
   Probably using D-Bus
39
 
*** Client class
40
 
*** Main server
41
 
    + SetLogLevel
42
 
      syslogger.setLevel(logging.WARNING)
43
 
    + [[http://log.ometer.com/2007-05.html][Best D-Bus practices]]
44
 
** TODO Implement --foreground                  :BUGS:
45
 
   [[info:standards:Option%20Table][Table of Long Options]]
46
 
** TODO Implement --socket
47
 
   [[info:standards:Option%20Table][Table of Long Options]]
48
 
** TODO Date+time on console log messages       :BUGS:
49
 
   Is this the default?
50
 
** TODO Split IPv6_TCPServer into a generic and Mandos-specific class
51
 
** TODO move handle_ipc out of IPv6_TCPServer
52
 
** TODO DBusServiceObjectUsingSuper
53
 
** Global enable/disable flag
54
 
** By-client countdown on secrets given
55
 
** Fix problem with fsck taking a really long time
56
 
   Whenever a client successfully gets a secret it could get a
57
 
   one-time timeout boost to allow for an fsck-incurred delay
58
 
 
59
 
* mandos.xml
60
 
** [[file:mandos.xml::XXX][Document D-Bus interface]]
61
 
 
62
 
* Provide and install /etc/dbus-1/system.d/mandos.conf
63
 
 
64
 
* mandos-ctl
65
 
*** Handle "no D-Bus server" and/or "no Mandos server found" better
66
 
*** [#B] --dump option
67
 
 
68
 
* mandos-name
69
 
** D-Bus mail loop w/ signal receiver
70
 
** Urwid/Newt client data displayer
71
 
*** Urwid scaffolding
72
 
*** Client Widgets
73
 
*** Properties popup
74
 
 
75
 
* mandos-keygen
76
 
** TODO Loop until passwords match when run interactively
77
 
** TODO "--secfile" option
78
 
   Using the "secfile" option instead of "secret"
79
 
** TODO [#B] "--test" option
80
 
   For testing decryption before rebooting.
81
 
 
82
 
* Package
83
 
** /usr/share/initramfs-tools/hooks/mandos
84
 
*** TODO [#C] use same file name rules as run-parts(8)
85
 
*** TODO [#C] Do not install in initrd.img if configured not to.
86
 
    Use "/etc/initramfs-tools/hooksconf.d/mandos"?
87
 
** TODO [#C] /etc/bash_completion.d/mandos
88
 
   From XML sources directly?
89
 
 
90
 
 
91
 
#+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
...