/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: 2009-10-24 19:17:52 UTC
  • Revision ID: teddy@fukt.bsnet.se-20091024191752-7g6xlf6wpp2pdexb
Convert some programs to use the exit codes from <sysexits.h>.  Change
all programs using the "argp" parsing functions to use them correctly;
checking return value, using argp_error() to report parse errors etc.

* plugin-runner.c: Use <sysexits.h> exit codes.  Always use fallback,
                   even on option errors, except for "--help", etc.
  (getplugin): Make sure "errno" is set correctly on return.
  (main): Declare our own "--help", "--usage", and "--version"
          options which do not cause the fallback to be invoked.
          In all other options, use fallback on any error.
  (parse_opt, parse_opt_config_file): Reset errno at start and return
                                      errno.  No need to check "arg"
                                      for NULL.  New "--help",
                                      "--usage", and "--version"
                                      options.
  (parse_opt): Accept empty string as global option.  Do not print
               errors which will be detected and reported later.  Do
               "argp_error()" on parse error or empty plugin names.
* plugins.d/mandos-client.c: Use <sysexits.h> exit codes.  Do not
                             return successful exit code on "--help",
                             etc. since this would give the wrong
                             message to "plugin-runner".
  (main): Declare our own "--help", "--usage", and "--version"
          options which do not return a successful exit code.
  (parse_opt): Reset errno at start and return errno.  Do
               "argp_error()" on parse errors.  New "--help",
               "--usage", and "--version" options.
* plugins.d/password-prompt.c: Use exit codes from <sysexits.h>.  Do
                               not return successful exit code on
                               "--help", etc. since this would give
                               the wrong message to "plugin-runner".
  (main): Declare our own "--help", "--usage", and "--version" options
          which do not return a successful exit code.  Do
          close(STDOUT_FILENO) after writing to check its return code.
  (parse_opt): Reset errno at start and return errno.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
-*- org -*-
2
2
 
3
 
* DONE plugin-runner
4
 
 
5
3
* mandos-client
6
 
** TODO [#B] Temporarily lower kernel log level
7
 
   for less printouts during sucessfull boot.
8
 
** TODO IPv4 support
9
 
** TODO use strsep instead of strtok?
10
 
 
11
 
* DONE password-prompt
 
4
** TODO [#B] use scandir(3) instead of readdir(3)
 
5
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
6
** TODO use error() instead of perror()
 
7
** TODO [#B] Retry a server which has a non-definite reply:
 
8
*** A closed connection during the TLS handshake
 
9
*** A TCP timeout
 
10
** TODO [#B] Use capabilities instead of seteuid().
 
11
** TODO use EX_* from <sysexits.h>
 
12
 
 
13
* splashy
 
14
** TODO [#B] use scandir(3) instead of readdir(3)
 
15
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
16
** TODO use error() instead of perror()
 
17
 
 
18
* usplash
 
19
** TODO [#B] use scandir(3) instead of readdir(3)
 
20
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
21
** TODO use error() instead of perror()
 
22
** TODO use EX_* from <sysexits.h>
 
23
 
 
24
* askpass-fifo
 
25
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
26
** TODO use error() instead of perror()
 
27
** TODO [#B] Drop privileges after opening FIFO.
 
28
 
 
29
* password-prompt
 
30
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
31
** TODO use error() instead of perror()
 
32
** TODO lock stdin (with flock()?)
 
33
 
 
34
* TODO passdev
 
35
 
 
36
* plugin-runner
 
37
** TODO [#B] use scandir(3) instead of readdir(3)
 
38
** TODO [#C] use same file name rules as run-parts(8)
 
39
** TODO use EX_* from <sysexits.h>
 
40
** TODO use error() instead of perror()
12
41
 
13
42
* mandos (server)
14
 
** TODO [#B] Log level                          :bugs:
 
43
** TODO [#B] Log level                          :BUGS:
15
44
** TODO /etc/mandos/clients.d/*.conf
16
45
   Watch this directory and add/remove/update clients?
17
46
** TODO config for TXT record
18
 
** TODO [#B] Run-time communication with server :bugs:
 
47
** TODO [#B] Run-time communication with server :BUGS:
19
48
   Probably using D-Bus
20
 
   See also [[*Mandos-tools]]
21
 
** TODO Implement --foreground                  :bugs:
 
49
*** Client class
 
50
*** Main server
 
51
    + SetLogLevel
 
52
      syslogger.setLevel(logging.WARNING)
 
53
    + [[http://log.ometer.com/2007-05.html][Best D-Bus practices]]
 
54
** TODO Implement --foreground                  :BUGS:
22
55
   [[info:standards:Option%20Table][Table of Long Options]]
23
56
** TODO Implement --socket
24
57
   [[info:standards:Option%20Table][Table of Long Options]]
25
 
** TODO Date+time on console log messages       :bugs:
 
58
** TODO Date+time on console log messages       :BUGS:
26
59
   Is this the default?
27
 
** TODO delete hook when clients fall out by timeout
28
 
 
29
 
* Mandos-tools/utilities
30
 
  All of this probably using D-Bus
31
 
** TODO List clients
32
 
** TODO Disable client
33
 
** TODO Enable client
34
 
** TODO Reset timer
35
 
 
36
 
* Man pages
37
 
** TODO Use xinclude for all common sections
38
 
   Like authors, etc.
39
 
 
40
 
 
41
 
* Installer
42
 
** Client-side
43
 
*** TODO Update initrd.img after installation
44
 
    This seems to use some kind of "trigger" system
45
 
    [[file:/usr/share/doc/dpkg/triggers.txt.gz]]
46
 
    dpkg-trigger(1), deb-triggers(5)
47
 
*** mandos-keygen
48
 
**** TODO [#A] Ask for password twice for confirmation
49
 
**** TODO "--passfile" option
50
 
     Using the "secfile" option instead of "secret"
51
 
**** TODO [#A] "--test" option
52
 
     For testing decryption before rebooting.
53
 
** Server-side
54
 
*** TODO [#A] Create mandos user and group for server
55
 
 
56
 
 
57
 
* [#A] Package
 
60
** TODO DBusServiceObjectUsingSuper
 
61
** TODO Global enable/disable flag
 
62
** TODO By-client countdown on secrets given
 
63
** TODO Fix problem with fsck taking a really long time
 
64
   Whenever a client successfully gets a secret it could get a
 
65
   one-time timeout boost to allow for an fsck-incurred delay
 
66
** TODO Delay before client receives key
 
67
   This would give an operator opportunity to cancel the request if
 
68
   desired.
 
69
** TODO Client manual approval mode
 
70
   A client needs manual approval on the server before it gets the
 
71
   secret
 
72
** TODO Persistent state
 
73
   /var/lib/mandos/*
 
74
 
 
75
* mandos.xml
 
76
** [[file:mandos.xml::XXX][Document D-Bus interface]]
 
77
 
 
78
* Provide and install /etc/dbus-1/system.d/mandos.conf
 
79
 
 
80
* mandos-ctl
 
81
*** Handle "no D-Bus server" and/or "no Mandos server found" better
 
82
*** [#B] --dump option
 
83
 
 
84
* TODO mandos-dispatch
 
85
  Listens for specified D-Bus signals and spawns shell commands with
 
86
  arguments.
 
87
 
 
88
* mandos-monitor
 
89
** D-Bus main loop w/ signal receiver
 
90
** Urwid client data displayer
 
91
*** Urwid scaffolding
 
92
*** Client Widgets
 
93
*** Properties popup
 
94
 
 
95
* mandos-keygen
 
96
** TODO Loop until passwords match when run interactively
 
97
** TODO "--secfile" option
 
98
   Using the "secfile" option instead of "secret"
 
99
** TODO [#B] "--test" option
 
100
   For testing decryption before rebooting.
 
101
 
 
102
* Makefile
 
103
** Implement DEB_BUILD_OPTIONS
 
104
   http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options
 
105
 
 
106
* Package
58
107
** /usr/share/initramfs-tools/hooks/mandos
59
 
*** TODO Do not install in initrd.img if configured not to.
60
 
    Use "/etc/initramfs-tools/conf.d/mandos"?  Definitely a debconf
61
 
    question.
62
 
** TODO /etc/bash_completion.d/mandos
 
108
*** TODO [#C] use same file name rules as run-parts(8)
 
109
*** TODO [#C] Do not install in initrd.img if configured not to.
 
110
    Use "/etc/initramfs-tools/hooksconf.d/mandos"?
 
111
** TODO [#C] /etc/bash_completion.d/mandos
63
112
   From XML sources directly?
64
 
** TODO unperish
65
 
** DONE bzr-builddeb
66
 
 
67
 
* TODO Web site
68
 
 
69
 
* Mailing list
70
 
** DONE mandos-dev
71
 
*** TODO http://gmane.org/subscribe.php
72
 
 
73
 
* TODO Announce project on news
74
 
  [[news:comp.os.linux.announce]]
75
113
 
76
114
 
77
115
#+STARTUP: showall