3
* Use _attribute_((nonnull)) wherever possible.
5
* [[http://www.undeadly.org/cgi?action=article&sid=20110530221728][OpenBSD]]
10
** TODO [#B] Use capabilities instead of seteuid().
11
** TODO [#B] Use struct sockaddr_storage instead of a union
12
** TODO [#B] Use getaddrinfo(hints=AI_NUMERICHOST) instead of inet_pton()
13
** TODO [#B] Use getnameinfo(serv=NULL, NI_NUMERICHOST) instead of inet_ntop()
14
** TODO [#B] Prefer /run/tmp over /tmp, if it exists
17
** TODO [#B] use scandir(3) instead of readdir(3)
19
* usplash (Deprecated)
20
** TODO [#A] Make it work again
21
** TODO [#B] use scandir(3) instead of readdir(3)
22
** TODO Use [[info:libc:Argz%20Functions][argz_extract]]
25
** TODO [#B] Drop privileges after opening FIFO.
28
** TODO [#B] lock stdin (with flock()?)
6
** [#B] Add more comments to code
7
** [#B] Add more if(debug) calls
8
** [#B] Seperate more code to function for more readability
9
** [#A] Man page: man8/plugin-runner.8mandos
12
Examples of normal usage, debug usage, debugging single or all
18
Explaining text on what you can read
19
** Keydir move: /etc/mandos -> /etc/keys/mandos
20
Must create in preinst if not pre-depending on cryptsetup
23
** [#A] Man page: man8/password-request.8mandos
25
Document short options
27
State that this command is not meant to be invoked directly, but
28
is run as a plugin from mandos-client(8) and only run in the
29
initrd environment, not the real system.
36
Note that it does *not* currently use cryptsource or crypttarget.
38
Describe the key files and the key ring files. Also note that
39
they should normally have been automatically created.
42
Examples of normal usage, debug usage, debugging by connecting
46
Update from mandos.xml
47
** [#B] Temporarily lower kernel log level
48
for less printouts during sucessfull boot.
50
** use strsep instead of strtok?
51
** Do not depend on GnuPG key rings on disk
52
This would mean creating new GnuPG key rings with GPGME by
53
importing the key files from scratch on every program start.
56
** [#A] Man page: man8/password-prompt.8mandos
58
Document short options
60
Note that this is more or less a simple getpass(3) wrapper, even
61
though actual use of getpass(3) is not guaranteed.
64
Document use of "cryptsource" and "crypttarget".
68
Examples of normal usage, debug usage, with a prefix, etc.
70
Not much to do here but it is noteworthy to state the danger of
71
not having a fallback option.
73
Refer to mandos-client(8mandos) and password-request(8mandos)
74
and also, perhaps, to cryptsetup(8)?
76
Man page says "obsolete", but [[info:libc:getpass][GNU LibC Manual: Reading Passwords]]
77
does not. See also [[http://sources.redhat.com/ml/libc-alpha/2003-05/msg00251.html][Marcus Brinkmann: Re: getpass obsolete?]] and
78
[[http://article.gmane.org/gmane.comp.lib.glibc.alpha/4906][Petter Reinholdtsen: Re: getpass obsolete?]], and especially also
79
[[http://www.steve.org.uk/Reference/Unix/faq_4.html#SEC48][Unix Programming FAQ 3.1 How can I make my program not echo input?]]
35
** TODO handle printing for errors for plugins
36
*** Hook up stderr of plugins, buffer them, and prepend mandos pluig [plugin name]
37
** TODO [#B] use scandir(3) instead of readdir(3)
38
** TODO [#C] use same file name rules as run-parts(8)
39
** kernel command line option for debug info
40
** TODO [#B] Use openat()
82
** [#A] Config file man page: man5/mandos.conf (mandos.conf)
83
** [#A] Config file man page: man5/mandos-clients.conf (clients.conf)
84
** [#A] /etc/init.d/mandos-server :teddy:
85
** [#B] Log level :bugs:
86
** /etc/mandos/clients.d/*.conf
87
Watch this directory and add/remove/update clients?
88
** config for TXT record
89
** [#B] Run-time communication with server :bugs:
91
See also [[*Mandos-tools]]
92
** Implement --foreground :bugs:
93
[[info:standards:Option%20Table][Table of Long Options]]
95
[[info:standards:Option%20Table][Table of Long Options]]
96
** Date+time on console log messages :bugs:
99
* Mandos-tools/utilities
100
All of this probably using D-Bus
107
*** Update initrd.img after installation
108
This seems to use some kind of "trigger" system
110
*** [#A] Create mandos user and group for server
111
*** [#A] Create /var/run/mandos directory with perm and ownership
114
*** [#A] Output cut-and-paste ready snippet for clients.conf.
43
** TODO [#B] Log level :BUGS:
44
** TODO [#A] Save state to new file and move instead of overwrite
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:
51
[[info:standards:Option%20Table][Table of Long Options]]
52
** TODO Implement --socket
53
[[info:standards:Option%20Table][Table of Long Options]]
54
** TODO [#C] DBusServiceObjectUsingSuper
55
** TODO [#B] Global enable/disable flag
56
** TODO [#B] By-client countdown on secrets given
57
** TODO [#B] Support RFC 3339 time duration syntax
59
*** NeedsPassword(50) - Timeout, default disapprove
60
+ SetPass(u"gazonk", True) -> Approval, persistent
61
+ Approve(False) -> Close client connection immediately
62
** TODO [#C] python-parsedatetime
63
** TODO [#C] systemd/launchd
64
http://0pointer.de/blog/projects/systemd.html
65
http://wiki.debian.org/systemd
66
** TODO Separate logging logic to own object
67
** TODO [#A] Limit approval_delay to max gnutls/tls timeout value
68
** TODO [#B] break the wait on approval_delay if connection dies
69
** TODO Generate Client.runtime_expansions from client options + extra
70
** TODO Allow %%(checker)s as a runtime expansion
71
** TODO Use python-tlslite?
74
** Add mandos contact info in manual pages
77
*** Handle "no D-Bus server" and/or "no Mandos server found" better
78
*** [#B] --dump option
79
** TODO Support RFC 3339 time duration syntax
80
** TODO Send milliseconds if bare integer is passed as time duration
82
* TODO mandos-dispatch
83
Listens for specified D-Bus signals and spawns shell commands with
87
** TODO help should be toggleable
88
** Urwid client data displayer
89
Better view of client data in the listing
91
** Nicer crashes. Stack traces Messes up shell.
92
*** Print a nice "We are sorry" message, save stack trace to log.
93
** Show timeout countdown for approval
96
** TODO "--secfile" option
97
Using the "secfile" option instead of "secret"
98
** TODO [#B] "--test" option
99
For testing decryption before rebooting.
102
** TODO [#C] Implement DEB_BUILD_OPTIONS
103
http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options
117
106
** /usr/share/initramfs-tools/hooks/mandos
118
*** Do not install in initrd.img if configured not to.
119
Use "/etc/initramfs-tools/conf.d/mandos"? Definitely a debconf
121
** /etc/bash_completion.d/mandos
122
*** From XML sources directly?
132
* Announce project on news
133
[[news:comp.os.linux.announce]]
107
*** TODO [#C] use same file name rules as run-parts(8)
108
*** TODO [#C] Do not install in initrd.img if configured not to.
109
Use "/etc/initramfs-tools/hooksconf.d/mandos"?
110
** TODO [#C] /etc/bash_completion.d/mandos
111
From XML sources directly?
114
** TODO Locate which package moves the other bin/sh when busybox is deactivated
115
** TODO contact owner of package, and ask them to have that shell static in position regardless of busybox
136
118
#+STARTUP: showall