/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-09-16 23:28:39 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090916232839-3o7i8qmcdcz5j1ya
* init.d-mandos (Required-Start, Required-Stop): Bug fix: Added
                 "$syslog", thanks to Petter Reinholdtsen
                 <pere@hungry.com> (Debian bug #546928).

* initramfs-tools-script: Removed erroneous comment.

* plugins.d/askpass-fifo.c: Removed TEMP_FAILURE_RETRY since it is
                            not needed.

* plugins.d/mandos-client.c (main): Bug fix: Initialize
                                    "old_sigterm_action".

* plugins.d/splashy.c (main): Bug fix: really check return value from
                              "sigaddset".  Fix some warnings on
                              64-bit systems.

* plugins.d/usplash.c (termination_handler, main): Save received
                                                   signal and
                                                   re-raise it on
                                                   exit.
  (usplash_write): Do not close FIFO, instead, take an additional file
                   descriptor pointer to it and open only when needed
                   (all callers changed).  Abort immediately on EINTR.
                   Bug fix:  Add NUL byte on single-word commands.
                   Ignore "interrupted_by_signal".
  (makeprompt, find_usplash): New; broken out from "main()".
  (find_usplash): Bug fix: close /proc/<pid>/cmdline FD on error.
  (main): Reorganized to jump to a new "failure" label on any error.
          Bug fix: check return values from sigaddset.
          New variable "usplash_accessed" to flag if usplash(8) needs
          to be killed and restarted.  Removed the "an_error_occured"
          variable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
-*- org -*-
2
2
 
3
 
* Use _attribute_((nonnull)) wherever possible.
4
 
 
5
 
* mandos-applet
6
 
 
7
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
8
9
** TODO [#B] Use capabilities instead of seteuid().
9
 
** TODO [#B] Use struct sockaddr_storage instead of a union
10
 
** TODO [#B] Use getaddrinfo(hints=AI_NUMERICHOST) instead of inet_pton()
11
 
** TODO [#B] Use getnameinfo(serv=NULL, NI_NUMERICHOST) instead of inet_ntop()
12
 
** TODO [#B] Prefer /run/tmp over /tmp, if it exists
13
10
 
14
11
* splashy
15
12
** TODO [#B] use scandir(3) instead of readdir(3)
 
13
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
16
14
 
17
15
* usplash
18
 
** TODO [#A] Make it work again
19
16
** TODO [#B] use scandir(3) instead of readdir(3)
20
 
** TODO Use [[info:libc:Argz%20Functions][argz_extract]]
 
17
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
21
18
 
22
19
* askpass-fifo
 
20
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
23
21
** TODO [#B] Drop privileges after opening FIFO.
24
22
 
25
23
* password-prompt
26
 
** TODO [#B] lock stdin (with flock()?)
27
 
 
28
 
* plymouth
29
 
 
30
 
* TODO [#B] passdev
 
24
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
31
25
 
32
26
* plugin-runner
33
 
** TODO handle printing for errors for plugins
34
 
*** Hook up stderr of plugins, buffer them, and prepend mandos pluig [plugin name]
35
27
** TODO [#B] use scandir(3) instead of readdir(3)
36
28
** TODO [#C] use same file name rules as run-parts(8)
37
 
** kernel command line option for debug info
38
 
** TODO [#B] Use openat()
39
29
 
40
30
* mandos (server)
41
 
** TODO [#B] Log level                                                    :BUGS:
42
 
** TODO Persistent state                                                  :BUGS:
43
 
   /var/lib/mandos/*
44
 
*** TODO /etc/mandos/clients.d/*.conf
45
 
    Watch this directory and add/remove/update clients?
46
 
** TODO [#C] config for TXT record
47
 
** TODO Log level option
48
 
   syslogger.setLevel(logging.WARNING)
49
 
   + SetLogLevel D-Bus call
50
 
** TODO Implement --foreground                                            :BUGS:
 
31
** TODO [#B] Log level                          :BUGS:
 
32
** TODO /etc/mandos/clients.d/*.conf
 
33
   Watch this directory and add/remove/update clients?
 
34
** TODO config for TXT record
 
35
** TODO [#B] Run-time communication with server :BUGS:
 
36
   Probably using D-Bus
 
37
*** Client class
 
38
*** Main server
 
39
    + SetLogLevel
 
40
      syslogger.setLevel(logging.WARNING)
 
41
    + [[http://log.ometer.com/2007-05.html][Best D-Bus practices]]
 
42
** TODO Implement --foreground                  :BUGS:
51
43
   [[info:standards:Option%20Table][Table of Long Options]]
52
44
** TODO Implement --socket
53
45
   [[info:standards:Option%20Table][Table of Long Options]]
54
 
** TODO Date+time on console log messages                                 :BUGS:
 
46
** TODO Date+time on console log messages       :BUGS:
55
47
   Is this the default?
56
 
** TODO [#C] DBusServiceObjectUsingSuper
57
 
** TODO [#B] Global enable/disable flag
58
 
** TODO [#B] By-client countdown on secrets given
59
 
** TODO [#B] Support RFC 3339 time duration syntax
60
 
** More D-Bus methods
61
 
*** NeedsPassword(50) - Timeout, default disapprove
62
 
    + SetPass(u"gazonk", True) -> Approval, persistent
63
 
    + Approve(False) -> Close client connection immediately
64
 
** TODO [#C] python-parsedatetime
65
 
** TODO [#C] systemd/launchd
66
 
   http://0pointer.de/blog/projects/systemd.html
67
 
** TODO Separate logging logic to own object
68
 
** TODO make clients to a dict!
69
 
** TODO [#A] Limit approval_delay to max gnutls/tls timeout value
70
 
** TODO [#B] break the wait on approval_delay if connection dies
71
 
** TODO Generate Client.runtime_expansions from client options + extra
72
 
** TODO Allow %%(checker)s as a runtime expansion
73
 
** TODO Use python-tlslite?
 
48
** TODO Split IPv6_TCPServer into a generic and Mandos-specific class
 
49
** TODO move handle_ipc out of IPv6_TCPServer
 
50
** TODO DBusServiceObjectUsingSuper
 
51
** Global enable/disable flag
 
52
** By-client countdown on secrets given
 
53
** Fix problem with fsck taking a really long time
 
54
   Whenever a client successfully gets a secret it could get a
 
55
   one-time timeout boost to allow for an fsck-incurred delay
74
56
 
75
57
* mandos.xml
76
 
** Add mandos contact info in manual pages
 
58
** [[file:mandos.xml::XXX][Document D-Bus interface]]
 
59
 
 
60
* Provide and install /etc/dbus-1/system.d/mandos.conf
77
61
 
78
62
* mandos-ctl
79
63
*** Handle "no D-Bus server" and/or "no Mandos server found" better
80
64
*** [#B] --dump option
81
 
** TODO Support RFC 3339 time duration syntax
82
 
 
83
 
* TODO mandos-dispatch
84
 
  Listens for specified D-Bus signals and spawns shell commands with
85
 
  arguments.
86
 
 
87
 
* mandos-monitor
88
 
** TODO help should be toggleable
89
 
** Urwid client data displayer
90
 
   Better view of client data in the listing
 
65
 
 
66
* mandos-name
 
67
** D-Bus mail loop w/ signal receiver
 
68
** Urwid/Newt client data displayer
 
69
*** Urwid scaffolding
 
70
*** Client Widgets
91
71
*** Properties popup
92
 
** Nicer crashes. Stack traces Messes up shell.
93
 
*** Print a nice "We are sorry" message, save stack trace to log.
94
 
** Show timeout countdown for approval
95
72
 
96
73
* mandos-keygen
 
74
** TODO Loop until passwords match when run interactively
97
75
** TODO "--secfile" option
98
76
   Using the "secfile" option instead of "secret"
99
77
** TODO [#B] "--test" option
100
78
   For testing decryption before rebooting.
101
79
 
102
 
* Makefile
103
 
** TODO [#C] Implement DEB_BUILD_OPTIONS
104
 
   http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options
105
 
 
106
80
* Package
107
81
** /usr/share/initramfs-tools/hooks/mandos
108
82
*** TODO [#C] use same file name rules as run-parts(8)
111
85
** TODO [#C] /etc/bash_completion.d/mandos
112
86
   From XML sources directly?
113
87
 
114
 
* Side Stuff
115
 
** TODO Locate which packet move the other bin/sh when busy box is deactivated
116
 
** TODO contact owner of packet, and ask them to have that shell static in position regardless of busybox
117
 
 
118
88
 
119
89
#+STARTUP: showall