/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
3
* mandos-client
4
 
** TODO [#A] Clean up /tmp directory on signal
 
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
5
35
 
6
36
* plugin-runner
7
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()
8
41
 
9
42
* mandos (server)
10
43
** TODO [#B] Log level                          :BUGS:
24
57
   [[info:standards:Option%20Table][Table of Long Options]]
25
58
** TODO Date+time on console log messages       :BUGS:
26
59
   Is this the default?
27
 
** TODO Split IPv6_TCPServer into a generic and Mandos-specific class
28
 
** TODO move handle_ipc out of IPv6_TCPServer
29
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/*
30
74
 
31
75
* mandos.xml
32
76
** [[file:mandos.xml::XXX][Document D-Bus interface]]
37
81
*** Handle "no D-Bus server" and/or "no Mandos server found" better
38
82
*** [#B] --dump option
39
83
 
40
 
* mandos-name
41
 
** D-Bus mail loop w/ signal receiver
42
 
** Urwid/Newt client data displayer
 
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
43
91
*** Urwid scaffolding
44
92
*** Client Widgets
45
93
*** Properties popup
51
99
** TODO [#B] "--test" option
52
100
   For testing decryption before rebooting.
53
101
 
 
102
* Makefile
 
103
** Implement DEB_BUILD_OPTIONS
 
104
   http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options
 
105
 
54
106
* Package
55
107
** /usr/share/initramfs-tools/hooks/mandos
 
108
*** TODO [#C] use same file name rules as run-parts(8)
56
109
*** TODO [#C] Do not install in initrd.img if configured not to.
57
110
    Use "/etc/initramfs-tools/hooksconf.d/mandos"?
58
111
** TODO [#C] /etc/bash_completion.d/mandos