chiark / gitweb /
bootctl: print partition uuids as /dev/disk/by-partuuid/...
[elogind.git] / TODO
1 Bugfixes:
2 * check systemd-tmpfiles for selinux context hookup for mknod(), symlink() and similar
3
4 * swap units that are activated by one name but shown in the kernel under another are semi-broken
5
6 * Dangling symlinks of .automount unit files in .wants/ directories, set up
7   automount points even when the original .automount file did not exist
8   anymore. Only the .mount unit was still around.
9
10 * make polkit checks async
11
12 * properly handle .mount unit state tracking when two mount points are stacked one on top of another on the exact same mount point.
13
14 * add 'set -e' to scripts in test/
15 * make test in test/ work with separate output dir
16
17 * suppress log output on shutdown when "quiet" is used
18
19 Fedora 19:
20 * make anaconda write timeout=0 for encrypted devices
21
22 * drop no longer needed modprobe.d udlfb file (it does not belong in /etc anyway)
23
24 * Retest multi-seat (new kms driver for displaylink)
25
26 * make sure pkexec works fine with pam_systemd works fine with audit=0
27
28 * create /var/log/journal/
29
30 * external: maybe it is time to patch procps so that "ps" links to
31   libsystemd-logind to print a pretty service name, seat name, session
32   name in its output. Currently it only shows cgroup membership, but
33   that's sometimes kinda hard to parse for a human.
34
35 * cgroup attrs:
36   - don't unconditionally filter out duplicate settings
37   - support high-level cgroup setting syntax in systemctl. Example: "systemctl set-cgroup-attr MemoryLimit 5K"
38   - support writte string mapping even for non-high-level settings
39   - add man page for systemctl commands
40   - make sure we work fine with multi-line strings
41
42 * kernel cmdline switch to turn off predictable network interface names
43
44 * journal is not closed properly at shutdown when run in a container?
45
46 * introduce new "journal" group in place of adm?
47
48 * localed:
49   - localectl: add listing support for X11 keymaps, by parsing /usr/share/X11/xkb/rules/xorg.lst
50   - localectl: support new converted x11→console keymaps
51
52 * logind: Class property should probably know "background" or so as value for cron jobs, and the inhibition checks should filter those out too.
53
54 Features:
55
56 * support --root= in msgcatalog compiler
57
58 * Honour "-" prefix for InaccessibleDirectories= and ReadOnlyDirectories= to
59   suppress errors of the specified path doesn't exist
60
61 * dev-setup.c: when running in a container, create a tiny stub udev
62   database with the systemd tag set for all network interfaces found,
63   so that libudev reports them as present, and systemd's .device units
64   will be activated.
65
66 * merge service_kill() logic into unit_kill_context() and unify the code paths
67
68 * introduce ExecCondition= in services
69
70 * if we have systemd-analyze in C "systemctl dot" should move there too
71
72 * EFI:
73   - fsck hookup for the ESP mount is missing
74   - write man page for efi boot generator
75   - add configure switch for enabling/disabling efi stuff
76   - honor language efi variables for default language selection (if there are any?)
77   - honor timezone efi variables for default timezone selection (if there are any?)
78   - introduce bootctl (backed by systemd-bootd) to control temporary and persistent default boot goal plus efi variables
79
80 * polkit: add configure switch to enable/disable polkit client side code
81
82 * maybe do not install getty@tty1.service symlink in /etc but in /usr?
83
84 * re-enable "make check" for gtk-doc (broken for unknown reason)
85
86 * fstab: add new mount option x-systemd-after=/foobar/waldo to allow manual dependencies to other mount points
87   https://bugzilla.redhat.com/show_bug.cgi?id=812826
88
89 * print a nicer explanation if people use variable/specifier expansion in ExecStart= for the first word
90
91 * mount: turn dependency information from /proc/self/mountinfo into dependency information between systemd units.
92
93 * logind:
94   - logind: optionally, ignore idle-hint logic for autosuspend, block suspend as long as a session is around
95   - When we update the kernel all kind of hibernation should be prohibited until shutdown/reboot
96   - logind: wakelock/opportunistic suspend support
97   - Add pretty name for seats in logind
98   - logind: allow showing logout dialog from system?
99   - logind: spawn user@..service on login
100   - logind: non-local X11 server handling
101   - logind: add equivalent to sd_pid_get_owner_uid() to the D-Bus API
102   - pam_systemd: try to get old session id from cgroup, if audit sessionid cannot be determined
103   - pam: when leaving a session explicitly exclude the ReleaseSession() caller process from the killing spree
104   - logind: GetSessionByPID() should accept 0 as PID value
105
106 * exec: when deinitializating a tty device fix the perms and group, too, not only when initializing. Set access mode/gid to 0620/tty.
107
108 * DeviceAllow/DeviceDeny: disallow everything by default, but whitelist /dev/zero, /dev/null and friends
109
110 * service: watchdog logic: for testing purposes allow ping, but do not require pong
111
112 * journal:
113   - journald: also get thread ID from client, plus thread name
114   - journal: when waiting for journal additions in the client always sleep at least 1s or so, in order to minimize wakeups
115   - add API to close/reopen/get fd for journal client fd in libsystemd-journal.
116   - fallback to /dev/log based logging in libsystemd-journal, if we can't log natively?
117   - declare the local journal protocol stable in the wiki interface chart
118   - journal: reuse XZ context
119   - sd-journal: speed up sd_journal_get_data() with transparent hash table in bg
120   - journald: when dropping msgs due to ratelimit make sure to write
121     "dropped %u messages" not only when we are about to print the next
122     message that works, but alraedy after a short tiemout
123   - check if we can make journalctl by default use --follow mode inside of less if called without args?
124   - maybe add API to send pairs of iovecs via sd_journal_send
125   - journal: when writing journal auto-rotate if time jumps backwards
126   - gatewayd: should run under its own UID
127   - journal: add a setgid "adm" utility to invoke from libsystemd-journal, which passes fds via STDOUT and does PK access
128   - journactl: support negative filtering, i.e. FOOBAR!="waldo",
129     and !FOOBAR for events without FOOBAR.
130   - journal: when rotating, copy over old acls/access mode
131   - journal: document why we do not give ownership to journal files to the user that created them but use FS ACLs for that
132   - journal: send out marker messages every now and then, and immediately sync with fdatasync() afterwards, in order to have hourly guaranteed syncs.
133   - journal: when we haven't written anything in a while, sync to disk and mark file as offline, in order to be more often than not in a clean state
134   - journal-send.c, log.c: when the log socket is clogged, and we drop, count this and write a message about this when it gets unclogged again.
135   - journal: find a way to allow dropping history early, based on priority, other rules
136   - journal: When used on NFS, check payload hashes
137   - journal: When used on NFS make sure wake up sd_journal_wait() every 2s, to handle missing inotify
138   - document that people can use file system ACLs to manage access to journal files, with example
139   - Introduce journalctl -b <nr> to show journal messages of a previous boot
140   - journald: check whether it is OK if the client can still modify delivered journal entries
141   - journal live copy, based on libneon (client) and libmicrohttpd
142   - journald: add kernel cmdline option to disable ratelimiting for debug purposes
143   - refuse taking lower-case variable names in sd_journal_send() and friends.
144   - journald: we currently rotate only after MaxUse+MaxFilesize has been reached.
145   - journal: deal nicely with byte-by-byte copied files, especially regards header
146   - journalctl: show multiline log messages sanely, expand tabs, and show all valid utf8 messages
147   - journal: store euid in journal if it differs from uid
148   - journal: sanely deal with entries which are larger than the individual file size, but where the components would fit
149
150 * document:
151   - document unit_name_mangle()
152   - document that deps in [Unit] sections ignore Alias= fileds in
153     [Install] units of other units, unless those units are disabled
154   - man: clarify that time-sync.target is not only sysv compat but also useful otherwise. Same for similar targets
155   - Document word splitting syntax for ExecStart= and friends
156   - document that units from /etc override those from /usr and /run
157   - document the exit codes when services fail before they are exec()ed
158   - document that %% can be used to write % in a string that is specifier extended
159   - document that service reload may be implemented as service reexec
160   - document in wiki how to map ical recurrence events to systemd timer unit calendar specifications
161
162 * systemctl:
163   - systemctl list-jobs - show dependencies
164   - add systemctl switch to dump transaction without executing it
165   - Add a verbose mode to "systemctl start" and friends that explains what is being done or not done
166   - "systemctl disable" on a static unit prints no message and does
167     nothing. "systemctl enable" does nothing, and gives a bad message
168     about it. Should fix both to print nice actionable messages.
169   - print nice message from systemctl --failed if there are no entries shown, and hook that into ExecStartPre of rescue.service/emergency.service
170   - add new command to systemctl: "systemctl system-reexec" which reexecs as many daemons as virtually possible
171   - systemctl enable: improve the success messages (i.e. more human readable, less shell-like)
172   - systemctl enable: fail if target to alias into doesn't exist? maybe show how many units are enabled afterwards?
173   - systemctl: "Journal has been rotated since unit was started." message is misleading
174   - support "systemctl stop foobar@.service" to stop all units matching a certain template
175   - Something is wrong with symlink handling of "autovt@.service" in "systemctl list-unit-files"
176
177 * When shutdown.target is queued begin with an asynchronous sync()?
178
179 * introduce ntp.service (or suchlike) as symlink that is used to arbitrate between various NTP implementations
180
181 * deal with sendmail/postfix exclusivity
182
183 * timer units:
184   - configurable jitter for timer events
185   - timer events with system resume
186   - timer units should get the ability to trigger when:
187     o CLOCK_REALTIME makes jumps (TFD_TIMER_CANCEL_ON_SET)
188     o DST changes
189   - Support 2012-02~4 as syntax for specifying the fourth to last day of the month.
190
191 * update the kernel's TZ (sys_tz) when DST changes
192
193 * sync down the system time to the RTC when:
194     - CLOCK_REALTIME makes jumps (the user explicitely requested a time set)
195     - DST/timezone changes && ntp is active && RTC-in-localtime (never do it without ntp)
196   This takes care of syncing ntpdate updates to the RTC, and DST updates for localtime
197   mode, it will never touch the RTC if the no reliable time source is active or the
198   user did not request anything like it.
199
200 * hwdb:
201   - implement conditional properties (dmi matches)
202   - hwdb --filter=ID_DRIVE_*
203
204 * if booted in "quiet" mode, and an error happens, turn on status
205   output again, so that the emergency mode isn't totally
206   surprising. Also, terminate plymouth.
207
208 * libunwind support for coredump pattern hook, and includes this in
209   the message for coredumps. After all, libunwind is now capable to
210   unwind coredumps since a few weeks ago. This probably requires that
211   we have nice support for multi-line messages on display in
212   logs-show.c. Alternatively: use libelfutil, which seems to be the
213   better supported alternative.
214
215 * figure out relation of --all and --full in the various tools
216
217 * add libsystemd-password or so to query passwords during boot using the password agent logic
218
219 * If we show an error about a unit (such as not showing up) and it has no Description string, then show a description string generated form the reverse of unit_name_mangle().
220
221 * fedup: add --unit to systemctl switch-root somehow
222 * fedup: don't delete initrd on switch-root
223 * fedup: generator
224
225 * timedated:
226   - timedated: export boolean that clarifies whether NTP is even available
227   - timedated: refuse time changes when NTP is on
228
229 * clean up date formatting and parsing so that all absolute/relative timestamps we format can also be parsed
230
231 * introduce generic AUGMENT_PID=, AUGMENT_DEVICE= fields
232
233 * on shutdown: move utmp, wall, audit logic all into PID 1 (or logind?), get rid of systemd-update-utmp-runlevel
234
235 * add "provisioning" instructions to setup an empty /etc + /var
236     - used to setup a new container from a shared /usr
237     - superset of tmpfiles model
238     - instructions shipped by packages and stored in /usr/lib/
239     - compose /etc/passwd and /etc/group, copy files
240     - able to create uid + gid used by packages, for file ownership
241
242 * make repeated alt-ctrl-del presses printing a dump, or even force a reboot without
243   waiting for the timeout
244
245 * high level net_prio setting in execution context
246
247 * hostnamed: before returning information from /etc/machine-info.conf check the modification data and reread. Similar for localed, ...
248
249 * currently x-systemd.timeout is lost in the initrd, since crypttab is copied into dracut, but fstab isn't
250
251 * WorkingDirectory: support env var replacements like in ExecStart= so that people can use $HOME
252
253 * refuse boot if /etc/machine-id is not useful (or set taint?)
254
255 * nspawn:
256   - nspawn: consider changing users for -u with su, so that NSS resolving works correctly
257   - nspawn: implement personality changes a la linux32(8)
258   - nspawn: --read-only is not applied recursively to submounts
259   - nspawn: make use of device cgroup controller by default
260   - bind mount read-only the cgroup tree higher than nspawn
261   - nspawn: investigate whether we can support the same as LXC's
262     lxc.network.type=phys mode, and pass through entire network
263     interfaces to the container
264   - nspawn: maybe add a way to drop additional caps, in addition to add additional caps
265   - nspawn: maybe explicitly reset loginuid?
266
267 * cryptsetup:
268   - cryptsetup-generator: warn if the password files are world-readable
269   - cryptsetup-generator: add RequiresMountsFor= to cryptseup service files referencing a file, similar for devices
270   - cryptsetup-generator: allow specification of passwords in crypttab itself
271   - move cryptsetup key caching into kernel keyctl?
272     https://bugs.freedesktop.org/show_bug.cgi?id=54982
273   - when key file cannot be found, read it from kbd in cryptsetup
274
275 * move debug shell to tty6 and make sure this doesn't break the gettys on tty6
276
277 * hw watchdog: optionally try to use the preset watchdog timeout instead of always overriding it
278   https://bugs.freedesktop.org/show_bug.cgi?id=54712
279
280 * after deserializing sockets in socket.c we should reapply sockopts and things
281
282 * make timer units go away after they elapsed
283
284 * http://lists.freedesktop.org/archives/systemd-devel/2012-September/006502.html
285   (network and remote-fs on shutdown)
286
287 * come up with a nice way to write queue/read_ahead_kb for a block device without interfering with readahead
288
289 * move PID 1 segfaults to /var/lib/systemd/coredump?
290
291 * create /sbin/init symlinks from the build system
292
293 * Query Paul Moore about relabelling socket fds while they are open
294
295 * system.conf should have controls for cgroups
296
297 * allow writing multiple conditions in unit files on one line
298
299 * explore multiple service instances per listening socket idea
300
301 * testing tool for socket activation: some binary that listens on a socket and passes it on using the usual socket activation protocol to some server.
302
303 * shutdown: don't read-only mount anything when running in container
304
305 * MountFlags=shared acts as MountFlags=slave right now.
306
307 * ReadOnlyDirectories= is not applied recursively to submounts
308
309 * drop PID 1 reloading, only do reexecing (difficult: Reload()
310   currently is properly synchronous, Reexec() is weird, because we
311   can't delay the response properly until we are back, so instead of
312   being properly synchronous we just keep open the fd and close it
313   when done. That means clients don't get a successful method reply,
314   but much rather a disconnect on success.
315
316 * remember which condition failed for services, not just the fact that something failed
317
318 * use opterr = 0 for all getopt tools
319
320 * properly handle loop back mounts via fstab, especially regards to fsck/passno
321
322 * allow services with no ExecStart= but with an ExecStop=
323
324 * dracut-shutdown needs to be ordered before unmounting /boot
325
326 * initialize the hostname from the fs label of /, if /etc/hostname does not exist?
327
328 * rename "userspace" to "core-os"
329
330 * syscall filter:
331   - syscall filter: add knowledge about compat syscalls
332   - syscall filter: don't enforce no new privs?
333   - syscall filter: option to return EPERM rather than SIGSYS?
334   - syscall filter: port to libseccomp
335   - system-wide seccomp filter
336
337 * systemd-analyze: data collection tools should be lightweight (few dependencies); data analysis tools can be heavyweight
338
339 * .device aliases need to be implemented with the "following" logic, probably.
340
341 * load-fragment: when loading a unit file via a chain of symlinks
342   verify that it isn't masked via any of the names traversed.
343
344 * introduce Type=pid-file
345
346 * maybe allow services with ExecStop= set, but no ExecStart=?
347
348 * change Requires=basic.target to RequisiteOverride=basic.target
349
350 * support rd.luks.allow-discards= kernel cmdline params in cryptsetup generator
351
352 * drop accountsservice's StandardOutput=syslog and Type=dbus fields
353
354 * when breaking cycles drop sysv services first, then services from /run, then from /etc, then from /usr
355
356 * move passno parsing to fstab generator
357
358 * automount: implement expire:
359    - set superblock timeout AUTOFS_DEV_IOCTL_TIMEOUT_CMD
360    - periodically run AUTOFS_DEV_IOCTL_EXPIRE_CMD
361      - every timeout/4 (original autofs logic)
362      - blocking, needs a thread
363      - run until -EAGAIN
364    - receive expire packet on pipe if kernel tells the timeout is over
365      - call umount
366      - answer expire packet on pipe with AUTOFS_DEV_IOCTL_{READY,FAIL}_CMD
367    - AUTOFS_DEV_IOCTL_EXPIRE_CMD returns
368
369 * services which create their own subcgroups break cgroup-empty notification (needs to be fixed in the kernel)
370
371 * ExecOnFailure=/usr/bin/foo
372
373 * ConditionSecurity= should learn about IMA and SMACK
374
375 * udev:
376   - remove all (misguided from day 1) userspace firmware_class handling
377   - move to LGPL
378   - unify utf8 validator code with shared/
379   - kill scsi_id
380   - add trigger --subsystem-match=usb/usb_device device
381
382 * cleanup syslog 'priority' vs. 'level' wording
383
384 * dbus upstream still refers to dbus.target and shouldn't
385
386 * 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
387
388 * support container_ttys=
389
390 * introduce mix of BindTo and Requisite
391
392 * add DeleteSocketsOnStop=yes|no option to socket units
393
394 * There's currently no way to cancel fsck (used to be possible via C-c or c on the console)
395
396 * add option to sockets to avoid activation. Instead just drop packets/connections, see http://cyberelk.net/tim/2012/02/15/portreserve-systemd-solution/
397
398 * default unix qlen is too small (10). bump sysctl? add sockopt?
399
400 * figure out whether we should leave dbus around during shutdown
401
402 * dbus: in fedora, make /var/lib/dbus/machine-id a symlink to /etc/machine-id
403
404 * dbus: move dbus to early boot
405
406 * save coredump in Windows/Mozilla minidump format
407
408 * support crash reporting operation modes (https://live.gnome.org/GnomeOS/Design/Whiteboards/ProblemReporting)
409
410 * clean up session cgroups that remain after logout (think sshd), but eventually run empty
411
412 * when an instanced service exits, remove its parent cgroup too if possible.
413
414 * default to actual 32bit PIDs, via /proc/sys/kernel/pid_max
415
416 * be able to specify a forced restart of service A where service B depends on, in case B
417   needs to be auto-respawned?
418
419 * when a bus name of a service disappears from the bus make sure to queue further activation requests
420
421 * tmpfiles: apply "x" on "D" too (see patch from William Douglas)
422
423 * for services: don't set $HOME in services unless requested
424
425 * hide PAM/TCPWrap options in fragment parser when compile time disabled
426
427 * when we automatically restart a service, ensure we restart its rdeps, too.
428
429 * allow Type=simple with PIDFile=
430   https://bugzilla.redhat.com/show_bug.cgi?id=723942
431
432 * move PAM code into its own binary
433
434 * implement Register= switch in .socket units to enable registration
435   in Avahi, RPC and other socket registration services.
436
437 * make sure systemd-ask-password-wall does not shutdown systemd-ask-password-console too early
438
439 * support sd_notify() style notification when reload begins (RELOADING=1), reload is finished (READY=1), and add ReloadSignal= then to use in combination
440
441 * support sd_notify() style notification when shutting down, to make auto-exit bus services work (STOPPING=1)
442
443 * verify that the AF_UNIX sockets of a service in the fs still exist
444   when we start a service in order to avoid confusion when a user
445   assumes starting a service is enough to make it accessible
446
447 * Make it possible to set the keymap independently from the font on
448   the kernel cmdline. Right now setting one resets also the other.
449
450 * and a dbus call to generate target from current state
451
452 * readahead:
453   - drop /.readahead on bigger upgrades with yum
454   - move readahead files into /var (look for them with .path units?)
455   - readahead: use BTRFS_IOC_DEFRAG_RANGE instead of BTRFS_IOC_DEFRAG ioctl, with START_IO
456   - readahead: when bumping /sys readahead variable save mtime and compare later to detect changes
457   - readahead: make use of EXT4_IOC_MOVE_EXT, as used by http://e4rat.sourceforge.net/
458
459 * add support for /bin/mount -s
460
461 * GC unreferenced jobs (such as .device jobs)
462
463 * write blog stories about:
464   - hwdb: what belongs into it, lsusb
465   - enabling dbus services
466   - status update
467   - how to make changes to sysctl and sysfs attributes
468   - remote access
469   - how to pass throw-away units to systemd, or dynamically change properties of existing units
470   - how to integrate cgconfig and suchlike with systemd
471   - testing with Harald's awesome test kit
472   - auto-restart
473   - how to develop against journal browsing APIs
474   - the journal HTTP iface
475   - non-cgroup resource management
476   - dynamic resource management with cgroups
477   - refreshed, longer missions statement
478   - celendar time events
479
480 * allow port=0 in .socket units
481
482 * support systemd.mask= on the kernel command line.
483
484 * reuse mkdtemp namespace dirs in /tmp?
485
486 * recreate systemd's D-Bus private socket file on SIGUSR2
487
488 * Support --test based on current system state
489
490 * investigate whether the gnome pty helper should be moved into systemd, to provide cgroup support.
491
492 * maybe introduce ExecRestartPre=
493
494 * dot output for --test showing the 'initial transaction'
495
496 * port over to LISTEN_FDS/LISTEN_PID:
497    - rpcbind (/var/run/rpcbind.sock!) HAVEPATCH
498    - cups     HAVEPATCH
499    - postfix, saslauthd
500    - apache/samba
501    - libvirtd (/var/run/libvirt/libvirt-sock-ro)
502    - bluetoothd (/var/run/sdp! @/org/bluez/audio!)
503    - distccd
504
505 * fingerprint.target, wireless.target, gps.target, netdevice.target
506
507 * io priority during initialization
508
509 * drop cap bounding set in readahead and other services
510
511 External:
512
513 * dbus:
514    - dbus --user
515    - natively watch for dbus-*.service symlinks (PENDING)
516    - allow specification of socket mode/umask when allocating DBusServer
517    - allow disabling of fd passing when connecting a AF_UNIX connection
518    - allow disabling of UID passing for AUTH EXTERNAL
519    - always pass cred data along each message
520    - teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
521
522 * fix alsa mixer restore to not print error when no config is stored
523
524 * make cryptsetup lower --iter-time
525
526 * patch kernel for xattr support in /dev, /proc/, /sys?
527
528 * NTP: the kernel's 11-minutes-mode syncs the system time to the RTC, but only
529   in an ~30 minutes window. It does not adjust larger differences. Find a way
530   to tell the kernel, to always do a full time sync when the RTC is in UTC and
531   we are in 11-minutes-mode. When we trust the system time to NTP we also want
532   the RTC to sync up.
533
534 * kernel: add device_type = "fb", "fbcon" to class "graphics"
535
536 Regularly:
537
538 * look for close() vs. close_nointr() vs. close_nointr_nofail()
539
540 * check for strerror(r) instead of strerror(-r)
541
542 * Use PR_SET_PROCTITLE_AREA if it becomes available in the kernel
543
544 * %m in printf() instead of strerror(errno);
545
546 * pahole
547
548 * set_put(), hashmap_put() return values check. i.e. == 0 doesn't free()!
549
550 * use secure_getenv() instead of getenv() where appropriate
551
552 * link up selected blog stories from man pages and unit files Documentation= fields
553
554 Scheduled for removal or fixing:
555
556 * xxxOverridable dependencies (probably: fix)