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)
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()?)
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()
43
** TODO [#A] Make all attributes properties!
44
** TODO [#B] Log level :BUGS:
45
** TODO Persistent state :BUGS:
47
*** TODO /etc/mandos/clients.d/*.conf
48
Watch this directory and add/remove/update clients?
49
** TODO [#C] config for TXT record
50
** TODO Log level option
51
syslogger.setLevel(logging.WARNING)
52
+ SetLogLevel D-Bus call
53
** TODO Implement --foreground :BUGS:
54
[[info:standards:Option%20Table][Table of Long Options]]
55
** TODO Implement --socket
56
[[info:standards:Option%20Table][Table of Long Options]]
57
** TODO Date+time on console log messages :BUGS:
6
[[file:/usr/share/common-licenses/GPL-3][GPLv3]]
9
** [#A] Change syntaxt for arguments
10
** [#A] Man page: man8/mandos-client.8mandos
12
Describe the plus sign syntax for passing options from crypttab
16
Examples of normal usage, debug usage, debugging single or all
17
plugins, examples of crypttab lines with plus syntax, etc.
27
Explaining test on what you can read
28
** Use asprintf instead of malloc and strcat?
29
** use strsep instead of strtok?
30
** use config file in addition to arguments
31
** pass things in environment, like device name, etc
34
** [#A] Man page: man8/password-request.8mandos
36
Move options to new OPTIONS section.
37
State that this command is not meant to be invoked directly, but
38
is run as a plugin from mandos-client(8) and only run in the
39
initrd environment, not the real system.
43
Examples of normal usage, debug usage, debugging by connecting
46
Describe the key files and the key ring files. Also note that
47
they should normally have been automatically created.
53
Create this section (if needed)
57
Refer to mandos-client(8mandos) and password-prompt(8mandos)
58
** Use asprintf instead of malloc and memcpy?
60
** use strsep instead of strtok?
61
** Do not depend on GPG key rings on disk
62
This would mean creating new GPG key rings with GPGME by importing
63
the key files from scratch on every program start.
66
** [#A] Man page: man8/password-prompt.8mandos
68
Move options to new OPTIONS section.
72
Examples of normal usage, debug usage, with a prefix, etc.
77
Not much to do here but it is noteworthy to state the danger of
78
not having a fallback option.
80
Note that this is more or less a simple getpass(3) wrapper, even
81
though actual use of getpass(3) is not guaranteed.
85
Refer to mandos-client(8mandos) and password-request(8mandos)
87
Man page says "obsolete", but [[info:libc:getpass][GNU LibC Manual: Reading Passwords]]
88
does not. See also [[http://sources.redhat.com/ml/libc-alpha/2003-05/msg00251.html][Marcus Brinkmann: Re: getpass obsolete?]] and
89
[[http://article.gmane.org/gmane.comp.lib.glibc.alpha/4906][Petter Reinholdtsen: Re: getpass obsolete?]], and especially also
90
[[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?]]
91
** Replace completely with "/lib/cryptsetup/askpass"?
94
** [#A] Command man page: man8/mandos.8
96
Move options to new OPTIONS section
102
Describe briefly that the server gets global settings from
103
mandos.conf and clients from clients.conf, but refer to their man
104
pages for more details.
110
Create this section (if needed)
114
Refer to the client man page
115
** [#A] Config file man page: man5/mandos.conf (mandos.conf)
116
** [#A] Config file man page: man5/mandos-clients.conf (clients.conf)
117
** [#A] /etc/init.d/mandos-server :teddy:
119
** /etc/mandos/clients.d/*.conf
120
Watch this directory and add/remove/update clients?
121
** config for TXT record
122
** Run-time communication with server
124
See also [[*Mandos-tools]]
125
** Implement --foreground
126
[[info:standards:Option%20Table][Table of Long Options]]
127
** Implement --socket
128
[[info:standards:Option%20Table][Table of Long Options]]
129
** Date+time on console log messages
58
130
Is this the default?
59
** TODO [#C] DBusServiceObjectUsingSuper
60
** TODO [#B] Global enable/disable flag
61
** TODO [#B] By-client countdown on secrets given
62
** TODO [#B] Support RFC 3339 time duration syntax
64
*** NeedsPassword(50) - Timeout, default disapprove
65
+ SetPass(u"gazonk", True) -> Approval, persistent
66
+ Approve(False) -> Close client connection immediately
67
** TODO [#C] python-parsedatetime
68
** TODO [#C] systemd/launchd
69
http://0pointer.de/blog/projects/systemd.html
70
** TODO Separate logging logic to own object
71
** TODO make clients to a dict!
72
** TODO [#A] Limit approval_delay to max gnutls/tls timeout value
73
** TODO [#B] break the wait on approval_delay if connection dies
74
** TODO Generate Client.runtime_expansions from client options + extra
75
** TODO Allow %%(checker)s as a runtime expansion
76
** TODO Use python-tlslite?
79
** Add mandos contact info in manual pages
82
*** Handle "no D-Bus server" and/or "no Mandos server found" better
83
*** [#B] --dump option
84
** TODO Support RFC 3339 time duration syntax
86
* TODO mandos-dispatch
87
Listens for specified D-Bus signals and spawns shell commands with
91
** TODO help should be toggleable
92
** Urwid client data displayer
93
Better view of client data in the listing
95
** Nicer crashes. Stack traces Messes up shell.
96
*** Print a nice "We are sorry" message, save stack trace to log.
97
** Show timeout countdown for approval
100
** TODO "--secfile" option
101
Using the "secfile" option instead of "secret"
102
** TODO [#B] "--test" option
103
For testing decryption before rebooting.
106
** TODO [#C] Implement DEB_BUILD_OPTIONS
107
http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options
132
* Mandos-tools/utilities
133
All of this probably using D-Bus
139
** DONE [#A] Change initrd.img file to not be publically readable
140
/etc/initramfs-tools/conf.d/mandos
142
** Update initrd.img after installation
143
** [#A] Create mandos user and group for server
144
** [#A] Create /var/run/mandos directory with perm and ownership
147
** /etc/bash_completion.d/mandos
110
148
** /usr/share/initramfs-tools/hooks/mandos
111
*** TODO [#C] use same file name rules as run-parts(8)
112
*** TODO [#C] Do not install in initrd.img if configured not to.
113
Use "/etc/initramfs-tools/hooksconf.d/mandos"?
114
** TODO [#C] /etc/bash_completion.d/mandos
115
From XML sources directly?
118
** TODO Locate which packet move the other bin/sh when busy box is deactivated
119
** TODO contact owner of packet, and ask them to have that shell static in position regardless of busybox
149
[[file:/usr/share/doc/initramfs-tools/examples/example_hook][Example initramfs-tools hook script]]
150
*** Create GPG key ring files in initrd
160
* Announce project on news
161
[[news:comp.os.linux.announce]]
122
164
#+STARTUP: showall