chiark / gitweb /
01b5edcd220ebd9a78cfbba41b42153b01e734e7
[elogind.git] / TODO
1 Fedora 18:
2 * chrony/ntp target?
3
4 Bugfixes:
5 * remove MS_SHARED from src/core/execute.c and src/test/test-ns.c. They are always combined
6   with MS_REMOUNT, which currently does nothing in the kernel, but might which fail in the
7   future; https://bugzilla.redhat.com/show_bug.cgi?id=813563
8
9 * check systemd-tmpfiles for selinux context hookup for mknod(), symlink() and similar
10
11 * swap units that are activated by one name but shown in the kernel under another are semi-broken
12
13 * make anaconda write timeout=0 for encrypted devices
14
15 * Dangling symlinks of .automount unit files in .wants/ directories, set up
16   automount points even when the original .automount file did not exist
17   anymore. Only the .mount unit was still around.
18
19 * make polkit checks async
20
21 * properly handle .mount unit state tracking when two mount points are stacked one on top of another on the exact same mount point.
22
23 * we pull src/core/manager.h into src/shared/src/shared/path-lookup.c which is the wrong direction
24    rename enum "ManagerRunningAs" to "SystemdRunningAs" and move it to shared/
25
26 Features:
27
28 * logind: export a bool property that tells user whether a
29   suspend/shutdown is currently scheduled, i.e. where are between
30   PrepareForSuspend(true) and PrepareForSuspend(false)
31
32 * support debian's console-setup logic
33
34 * introduce Type=pid-file
35
36 * systemctl list-unit-files appears to be broken for symlinked units in /usr/lib
37
38 * maybe allow services with ExecStop= set, but no ExecStart=?
39
40 * efi: implement /forcefsck as uefi variables thus not requiring file system altering to trigger a file system check
41
42 * efi: honour language efi variables for default language selection
43
44 * efi: honour timezone efi variables for default timezone selection
45
46 * new dependency type to "group" services in a target
47
48 * add switch to journalctl to only show data from current boot
49
50 * change REquires=basic.target to RequisiteOverride=basic.target
51
52 * turn $NOTIFY_SOCKET back into an abstract namespace socket for
53   compatibility with services which chroot()
54
55 * exclude processes marked with argv[0][0]=@ from the normal service killing too
56
57 * support rd.luks.allow-discards= kernel cmdline params in cryptsetup generator
58
59 * systemctl: when stopping a service which has triggres and warning about it actually check the TriggeredBy= deps fields
60
61 * journal: hook up with EFI firmware log, new kmsg logic
62
63 * handle C-A-Del in logind, like the power/suspend buttons?
64
65 * nspawn: make use of device cgroup contrller by default
66
67 * journalctl /dev/sda, journalctl --device=b12:8 (--device=n12, --device=+usb:1-1)
68
69 * make use of /sys/power/wake_lock in inhibitors
70
71 * drop accountsservice's StandardOutput=syslog and Type=dbus fields
72
73 * make sure show-logs checks for utf8 validity, not ascii validity
74
75 * when breaking cycles drop sysv services first, then services from /run, then from /etc, then from /usr
76
77 * readahead: when bumping /sys readahead variable save mtime and compare later to detect changes
78
79 * (attempt to) make Debianites happy:
80         - implement .d/ auto includes for unit files
81         - add syntax to reset ExecStart= lists (and similar)
82
83 * manipulate CPU governor during boot, set it to performance
84
85 * steal SBF management from the kernel
86
87 * delay journal /var writeout to after boot if SBF is clean
88
89 * move passno parsing to fstab generator
90
91 * improve !/proc/*/loginuid situation: make /proc/*/loginuid less dependent on CONFIG_AUDIT,
92   or use the users cgroup information when /proc/*/loginuid is not available.
93
94 * pam_systemd: try to get old session id from cgroup, if audit sessionid cannot be determined
95
96 * pam: when leaving a session explicitly exclude the ReleaseSession() caller process from the killing spree
97
98 * maybe introduce ~/.config/locale.conf and apply it within PAM
99
100 * readahead: make use of EXT4_IOC_MOVE_EXT, as used by http://e4rat.sourceforge.net/
101
102 * automount: implement expire
103
104 * logind: auto-suspend, auto-shutdown:
105         IdleAction=(none|suspend|opportunistic|hibernate|poweroff)
106         IdleActionDelay=...
107         SessionIdleMode=(explicit|ignore|login)
108         ForceShutdown=(yes|no)
109
110 * services which create their own subcgroups break cgroup-empty notification (needs to be fixed in the kernel)
111
112 * don't delete /tmp/systemd-namespace-* before a process is gone down
113
114 * don't delete /run/users/lennart if lennart is still logged in even if aging is used
115
116 * vconsole: implement setterm -store -foreground xxx --background zzz
117
118 * ExecOnFailure=/usr/bin/foo
119
120 * fedora: make sshd and pam_loginuid work in nspawn containers
121
122 * fix utmp for console logins in containers
123
124 * Add pretty name for seats in logind
125
126 * nspawn wants dev_setup() for /dev/fd/ and friends?
127
128 * selinux: merge systemd selinux access controls (dwalsh)
129
130 * ConditionSecurity= should learn about IMA
131
132 * Auke: merge Auke's bootchart
133
134 * udev: move to LGPL
135
136 * udev systemd unify:
137   - strpcpy(), strpcpyl(), strscpy(), strscpyl()
138   - utf8 validator code
139   - now() vs. now_usec()
140
141 * udev: remove network interface renaming, sleep and retry logic, we do
142         no support renaming of interfaces in the conflicting kernel
143         namespace
144
145 * udev: find a way to tell udev to not cancel firmware requests when running in initramfs
146
147 * udev: scsi_id -> sg3_utils -> kill scsi_id
148
149 * udev: add trigger --subsystem-match=usb/usb_device device
150
151 * allow configuration of console width/height in vconsole.conf
152
153 * cleanup syslog 'priority' vs. 'level' wording
154
155 * journal: if mmap() fails for mapping window try to unmap a a few older maps
156
157 * dbus upstream still refers to dbus.target and shouldn't
158
159 * when a service has the same env var set twice we actually store it twice and return that in systemctl show -p... We should only show the last setting
160
161 * support container_ttys=
162
163 * journald: make configurable "store-on-var", "store-on-run", "dont-store", "auto"
164   (store-persistent, store-volatile?)
165
166 * introduce mix of BindTo and Requisite
167
168 * journalctl: show multiline log messages sanely, expand tabs, and show all valid utf8 messages
169
170 * add DeleteSocketsOnStop=yes|no option to socket units
171
172 * journal: store euid in journal if it differs from uid
173
174 * support chrony in addition to ntpd in timedated
175
176 * There's currently no way to cancel fsck (used to be possible via C-c or c on the console)
177
178 * journal: sanely deal with entries which are larger than the individual file size, but where the componets would fit
179
180 * add command to systemctl to plot dependency graph as tree (see rhbz 795365)
181
182 * make logind reserve tty9 or so for text logins, so that gdm never picks it up
183
184 * add option to sockets to avoid activation. Instead just drop packets/connections, see http://cyberelk.net/tim/2012/02/15/portreserve-systemd-solution/
185
186 * default unix qlen is too small (10). bump sysctl? add sockopt?
187
188 * Possibly, detect whether SysV init scripts can do reloading by looking for "echo Usage:" lines
189
190 * figure out whether we should leave dbus around during shutdown
191
192 * dbus: in fedora, make the machine a symlink to /etc/machine-id
193
194 * journald: reuse XZ context
195
196 * logind: add equivalent to sd_pid_get_owner_uid() to the D-Bus API
197
198 * write RPM spec macros for presets
199
200 * journal: write man pages for API
201
202 * journal: OR matches are borked
203
204 * journal: extend hash tables as we go
205
206 * journal: API for looking for retrieving "all values of this field"
207
208 * journal: deal nicely with byte-by-byte copied files, especially regards header
209
210 * journal: local deserializer of export mode, http server
211
212 * journal: message catalog
213
214 * journal: forward-secure signatures
215
216 * document the exit codes when services fail before they are exec()ed
217
218 * rework namespace support, don't use pivot_root, and mount things after creating the namespace, not before
219
220 * systemctl journal command
221
222 * journalctl: --cursor support, priority filtering
223
224 * systemctl status: show coredumps
225
226 * save coredump in Windows/Mozilla minidump format
227
228 * support crash reporting operation modes (https://live.gnome.org/GnomeOS/Design/Whiteboards/ProblemReporting)
229
230 * clean up session cgroups that remain after logout (think sshd), but eventually run empty
231
232 * support "systemctl stop foobar@.service" to stop all units matching a certain template
233
234 * logind: allow showing logout dialog from system
235
236 * document that %% can be used to write % in a string that is specifier extended
237
238 * when an instanced service exits, remove its parent cgroup too if possible.
239
240 * automatically escape unit names passed on the service (i.e. think "systemctl start serial-getty.service@serial/by-path/jshdfjsdfhkjh" being automatically escaped as necessary.
241
242 * if we can not get user quota for tmpfs, mount a separate tmpfs instance
243   for every user in /run/user/$USER with a configured maximum size
244
245 * default to actual 32bit PIDs, via /proc/sys/kernel/pid_max
246
247 * add an option to make mounts private/shareable and so on, enable this for root by default
248
249 * be able to specify a forced restart of service A where service B depends on, in case B
250   needs to be auto-respawned?
251
252 * Something is wrong with symlink handling of "autovt@.service" in "systemctl list-unit-files"
253
254 * when a bus name of a service disappears from the bus make sure to queue further activation requests
255
256 * something like ConditionExec= or ExecStartPre= without failure state
257
258 * tmpfiles: apply "x" on "D" too (see patch from William Douglas)
259
260 * don't set $HOME in services unless requested
261
262 * hide PAM/TCPWrap options in fragment parser when compile time disabled
263
264 * when we automatically restart a service, ensure we restart its rdeps, too.
265
266 * allow Type=simple with PIDFile=
267   https://bugzilla.redhat.com/show_bug.cgi?id=723942
268
269 * move PAM code into its own binary
270
271 * warn if the user stops a service but not its associated socket
272
273 * logind: spawn user@..service on login
274
275 * logind: non-local X11 server handling
276
277 * implement Register= switch in .socket units to enable registration
278   in Avahi, RPC and other socket registration services.
279
280 * make sure systemd-ask-password-wall does not shutdown systemd-ask-password-console too early
281
282 * readahead: use BTRFS_IOC_DEFRAG_RANGE instead of BTRFS_IOC_DEFRAG ioctl, with START_IO
283
284 * readahead: check whether a btrfs volume includes ssd by checking mount flag "ssd"
285
286 * support sd_notify() style notification when reload begins (RELOADING=1), reload is finished (READY=1), and add ReloadSignal= then to use in combination
287
288 * support sd_notify() style notification when shutting down, to make auto-exit bus services work (STOPPING=1)
289
290 * verify that the AF_UNIX sockets of a service in the fs still exist
291   when we start a service in order to avoid confusion when a user
292   assumes starting a service is enough to make it accessible
293
294 * Make it possible to set the keymap independently from the font on
295   the kernel cmdline. Right now setting one resets also the other.
296
297 * move nss-myhostname into systemd
298
299 * and a dbus call to generate target from current state
300
301 * drop /.readahead on bigger upgrades with yum
302
303 * add support for /bin/mount -s
304
305 * GC unreferenced jobs (such as .device jobs)
306
307 * when failing to start a service due to ratelimiting, try again later, if restart=always is set
308
309 * write blog stories about:
310   - enabling dbus services
311   - status update
312   - how to make changes to sysctl and sysfs attributes
313   - remote access
314   - how to pass throw-away units to systemd, or dynamically change properties of existing units
315   - how to integrate cgconfig and suchlike with systemd
316   - resource control in systemd
317   - inhibiting
318   - testing with Harald's awesome test kit
319
320 * allow port=0 in .socket units
321
322 * move readahead files into /var, look for them with .path units
323
324 * teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
325
326 * support systemd.mask= on the kernel command line.
327
328 * when key file cannot be found, read it from kbd in cryptsetup
329
330 * reuse mkdtemp namespace dirs in /tmp?
331
332 * recreate systemd's D-Bus private socket file on SIGUSR2
333
334 * Support --test based on current system state
335
336 * investigate whether the gnome pty helper should be moved into systemd, to provide cgroup support.
337
338 * maybe introduce ExecRestartPre=
339
340 * configurable jitter for timer events
341
342 * timer events with system resume
343
344 * timer events on calendar time
345
346 * dot output for --test showing the 'initial transaction'
347
348 * calendar time support in timer, iCalendar semantics for the timer stuff (RFC2445)
349     http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=99ee5315dac6211e972fa3f23bcc9a0343ff58c4
350
351 * implicitly import "defaults" settings file into all types
352 * exec settings override
353 * writable cgroups dbus properties for live changes
354
355 * read config fragments for all units from /lib/systemd/system/foobar.service.d/ to override/extend specific settings
356
357 * port over to LISTEN_FDS/LISTEN_PID:
358    - rpcbind (/var/run/rpcbind.sock!) HAVEPATCH
359    - cups     HAVEPATCH
360    - postfix, saslauthd
361    - apache/samba
362    - libvirtd (/var/run/libvirt/libvirt-sock-ro)
363    - bluetoothd (/var/run/sdp! @/org/bluez/audio!)
364    - distccd
365
366 * auditd service files
367
368 * fingerprint.target, wireless.target, gps.target, netdevice.target
369
370 * io priority during initialization
371
372 * systemctl list-jobs - show dependencies
373
374 * add systemctl switch to dump transaction without executing it
375
376 * drop cap bounding set in readahead and other services
377
378 External:
379
380 * dbus:
381    - dbus --user
382    - natively watch for dbus-*.service symlinks (PENDING)
383    - allow specification of socket mode/umask when allocating DBusServer
384    - allow disabling of fd passing when connecting a AF_UNIX connection
385    - allow disabling of UID passing for AUTH EXTERNAL
386    - always pass cred data along each message
387
388 * fix alsa mixer restore to not print error when no config is stored
389
390 * gnome-shell python script/glxinfo/is-accelerated must die
391
392 * make cryptsetup lower --iter-time
393
394 * patch kernel for xattr support in /dev, /proc/, /sys and /sys/fs/cgroup?
395
396 * NTP: the kernel's 11-minutes-mode syncs the system time to the RTC, but only
397   in an ~30 minutes window. It does not adjust larger differences. Find a way
398   to tell the kernel, to always do a full time sync when the RTC is in UTC and
399   we are in 11-minutes-mode. When we trust the system time to NTP we also want
400   the RTC to sync up.
401
402 * kernel: add device_type = "fb", "fbcon" to class "graphics"
403
404 Regularly:
405
406 * look for close() vs. close_nointr() vs. close_nointr_nofail()
407
408 * check for strerror(r) instead of strerror(-r)
409
410 * Use PR_SET_PROCTITLE_AREA if it becomes available in the kernel
411
412 * %m in printf() instead of strerror();
413
414 * pahole
415
416 * set_put(), hashmap_put() return values check. i.e. == 0 doesn't free()!
417
418 Scheduled for removal (or fixing):
419
420 * xxxOverridable dependencies