chiark / gitweb /
update TODO
[elogind.git] / TODO
diff --git a/TODO b/TODO
index 915236439b248ccb077048248d461007e3ff956a..e9cbe1e4b7f020554f2ad60157de702ea703c87d 100644 (file)
--- a/TODO
+++ b/TODO
@@ -13,41 +13,166 @@ Bugfixes:
 
 * properly handle .mount unit state tracking when two mount points are stacked one on top of another on the exact same mount point.
 
-F18:
-
+Fedora 19:
 * Retest multi-seat
 
+* create /var/log/journal/
+
 Features:
 
-* add --unit to systemctl switch-root somehow
+* link runlevel targets on install only if sysv compat is enabled
 
-* journalctl/gatewayd: GELF output
+* logind: when executing sleep/shutdown job, keep track of its id, and
+  as long as the job is running refuse any further operation.
 
-* journal: find a way to allow dropping history early, based on priority, other rules
+* maybe not install getty@tty1.service symlink in /etc but in /usr?
+
+* re-enable "make check" for gtk-doc (broken for unknown reason)
+
+* logind: make PrepareForSuspend(false) an official api for notification of resumes
+
+* "systemctl disable" on a static unit prints no message and does
+  nothing. "systemctl enable" does nothing, and gives a bad message
+  about it. Should fix both to print nice actionable messages.
+
+* fstab: add new mount option x-systemd-after=/foobar/waldo to allow manual dependencies to other mount points
+  https://bugzilla.redhat.com/show_bug.cgi?id=812826
+
+* add "loginctl unlock-sessions" as counterpart for "loginctl lock-sessions"
+
+* cgroup attrs:
+  - make persistent
+  - don't filter out duplicate settings
+  - support high-level cgroup setting syntax in systemctl. Example: "systemctl set-cgroup-attr MemoryLimit 5K"
+  - support writte string mapping even for non-high-level settings
+  - add man page for systemctl commands
+  - make sure we work fine with multi-line strings
+
+* print a nicer explanation if people use variable/specifier expansion in ExecStart= for the first word
+
+* kernel cmdline switch to turn off predictable network interface names
+
+* mount: turn dependency information from /proc/self/mountinfo into dependency information between systemd units.
+
+* logind: optionally, ignore idle-hint logic for autosuspend, block suspend as long as a session is around
+
+* service: when killing a service with SIGKILL always kill all processes, even if for SIGTERM we only killed the main process
+
+* exec: when deinitializating a tty device fix the perms and group, too, not only when initializing. Set access mode/gid to 0620/tty.
+
+* DeviceAllow/DeviceDeny: disallow everything by default, but whitelist /dev/zero, /dev/null and friends
+
+* service: watchdog logic: for testing purposes allow ping, but do not require pong
+
+* journald: when dropping msgs due to ratelimit make sure to write
+  "dropped %u messages" not only when we are about to print the next
+  message that works, but alraedy after a short tiemout
+
+* journald: also get thread ID from client, plus thread name
+
+* check if we can make journalctl by default use --follow mode inside of less if called without args?
+
+* Add a verbose mode to "systemctl start" and friends that explains what is being done or not done
+
+* journal is not closed properly at shutdown when run in a container?
+
+* journal: when waiting for journal additions in the client always sleep at least 1s or so, in order to minimize wakeups
+
+* When shutdown.target is queued begin with an asynchronous sync()?
+
+* add API to close/reopen/get fd for journal client fd in libsystemd-journal.
+
+* maybe add API to send pairs of iovecs via sd_journal_send
+
+* fallback to /dev/log based logging in libsystemd-journal, if we can't log natively?
+
+* declare the local journal protocol stable in the wiki interface chart
+
+* journal: reuse XZ context
+
+* sd-journal: speed up sd_journal_get_data() with transparent hash table in bg
+
+* introduce ntp.service (or suchlike) as symlink that is used to arbitrate between various NTP implementations
+
+* timer units should get the ability to trigger when:
+    - CLOCK_REALTIME makes jumps (TFD_TIMER_CANCEL_ON_SET)
+    - DST changes
+
+* update the kernel's TZ (sys_tz) when DST changes
+
+* sync down the system time to the RTC when:
+    - CLOCK_REALTIME makes jumps (the user explicitely requested a time set)
+    - DST/timezone changes && ntp is active && RTC-in-localtime (never do it without ntp)
+  This takes care of syncing ntpdate updates to the RTC, and DST updates for localtime
+  mode, it will never touch the RTC if the no reliable time source is active or the
+  user did not request anything like it.
+
+* When we begin with system shutdown all kind of suspend/hibernation should be prohibited until shutdown/reboot
+
+* When we update the kernel all kind of hibernation should be prohibited until shutdown/reboot
+
+* hwdb:
+  - implement conditional properties (dmi matches)
+  - hwdb --filter=ID_DRIVE_*
+
+* if booted in "quiet" mode, and an error happens, turn on status
+  output again, so that the emergency mode isn't totally
+  surprising. Also, terminate plymouth.
+
+* localectl: add listing support for X11 keymaps, by parsing /usr/share/X11/xkb/rules/xorg.lst
+
+* libunwind support for coredump pattern hook, and includes this in
+  the message for coredumps. After all, libunwind is now capable to
+  unwind coredumps since a few weeks ago. This probably requires that
+  we have nice support for multi-line messages on display in
+  logs-show.c. Alternatively: use libelfutil, which seems to be the
+  better supported alternative.
+
+* figure out relation of --all and --full in the various tools
+
+* journal: when writing journal auto-rotate if time jumps backwards
+
+* introduce new "journal" group in place of adm? introduce groups for the various mini daemons?
+
+* journal: add a setgid "adm" utility to invoke from libsystemd-journal, which passes fds via STDOUT and does PK access
+
+* journactl: support negative filtering, i.e. FOOBAR!="waldo",
+  and !FOOBAR for events without FOOBAR.
 
-* journal: When interleaving journal files cache binary search results so that
-  we can cheaply continue where we left off.
+* print nice message from systemctl --failed if there are no entries shown, and hook that into ExecStartPre of rescue.service/emergency.service
+
+* add libsystemd-password or so to query passwords during boot using the password agent logic
+
+* journal: when rotating, copy over old acls/access mode
+
+* journal: document why we do not give ownership to journal files to the user that created them but use FS ACLs for that
+
+* journal: send out marker messages every now and then, and immediately sync with fdatasync() afterwards, in order to have hourly guaranteed syncs.
+
+* 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
+
+* 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.
+
+* 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().
+
+* fedup: add --unit to systemctl switch-root somehow
+* fedup: don't delete initrd on switch-root
+* fedup: generator
+
+* journal: find a way to allow dropping history early, based on priority, other rules
 
 * journal: When used on NFS, check payload hashes
 
 * journal: When used on NFS make sure wake up sd_journal_wait() every 2s, to handle missing inotify
 
-* "See journal for details" messages should include "journalctl -u" command line
-
 * document that people can use file system ACLs to manage access to journal files, with example
 
-* don't show cgroup in "systemctl status" if empty/non-existant, especially for foreign .mount units
-
 * timedated: export boolean that clarifies whether NTP is even available
 
 * timedated: refuse time changes when NTP is on
 
 * clean up date formatting and parsing so that all absolute/relative timestamps we format can also be parsed
 
-* introduce hybrid-sleep.target
-
-* _SOURCE_MONOTONIC_TIMESTAMP entries from the kernel seem to be off by 1000000
-
 * document unit_name_mangle()
 
 * add new command to systemctl: "systemctl system-reexec" which reexecs as many daemons as virtually possible
@@ -82,14 +207,12 @@ Features:
 
 * WorkingDirectory: support env var replacements like in ExecStart= so that people can use $HOME
 
-* refuse boot if /etc/machine-id is not useful
+* refuse boot if /etc/machine-id is not useful (or set taint?)
 
 * nspawn: consider changing users for -u with su, so that NSS resolving works correctly
 
 * nspawn: implement personality changes a la linux32(8)
 
-* nspawn: reset all aux groups
-
 * cryptsetup-generator: warn if the password files are world-readable
 
 * cryptsetup-generator: add RequiresMountsFor= to cryptseup service files referencing a file, similar for devices
@@ -99,27 +222,14 @@ Features:
 * document that deps in [Unit] sections ignore Alias= fileds in
   [Install] units of other units, unless those units are disabled
 
-* need to update LGPL2.1 text to newest version (with updated FSF address)
-
-* allow users from "wheel" to start/stop services
-
-* systemctl: when powering down/suspending check for inhibitors, and warn.
-
 * instantiated [Install] for target units
   https://bugs.freedesktop.org/show_bug.cgi?id=54377
 
-* support *static* (/run) hibernate inhibitors. All rpm -i actions should completely prevent any
-  sort of hibernate action until the next reboot. If the kernel or any other base tool is replaced
-  by rpm, the resume path might fail, the for resume needed kernel might even be uninstalled, and
-  the whole situation leads directly to data loss.
-
 * move debug shell to tty6 and make sure this doesn't break the gettys on tty6
 
 * move cryptsetup key caching into kernel keyctl?
   https://bugs.freedesktop.org/show_bug.cgi?id=54982
 
-* make nspawn work without terminal
-
 * hw watchdog: optionally try to use the preset watchdog timeout instead of always overriding it
   https://bugs.freedesktop.org/show_bug.cgi?id=54712
 
@@ -128,6 +238,7 @@ Features:
 * make timer units go away after they elapsed
 
 * http://lists.freedesktop.org/archives/systemd-devel/2012-September/006502.html
+  (network and remote-fs on shutdown)
 
 * come up with a nice way to write queue/read_ahead_kb for a block device without interfering with readahead
 
@@ -141,30 +252,18 @@ Features:
 
 * Query Paul Moore about relabelling socket fds while they are open
 
-* move keymaps to /usr/lib/... rather than /usr/lib/udev/...
-
 * journald: check whether it is OK if the client can still modify delivered journal entries
 
-* json: properly serialize multiple fields with the same name per entry
-
 * journal live copy, based on libneon (client) and libmicrohttpd
 
-* document in wiki json serialization
-
 * system-wide seccomp filter
 
-* ability to pass fds into systemd
-
 * system.conf should have controls for cgroups
 
-* bind mount read-only the cgroup tree higher than than nspawn
-
-* currently system services appear not to generate core dumps...
+* bind mount read-only the cgroup tree higher than nspawn
 
 * allow writing multiple conditions in unit files on one line
 
-* cleanup ellipsation for log output in journalctl and systemctl status: have a sane way to disable ellipsation, and disable it by default when invoked in less/more
-
 * explore multiple service instances per listening socket idea
 
 * 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.
@@ -181,7 +280,7 @@ Features:
   currently is properly synchronous, Reexec() is weird, because we
   can't delay the response properly until we are back, so instead of
   being properly synchronous we just keep open the fd and close it
-  when done. That means clients don't get a succesful method reply,
+  when done. That means clients don't get a successful method reply,
   but much rather a disconnect on success.
 
 * document that service reload may be implemented as service reexec
@@ -218,6 +317,8 @@ Features:
 
 * systemd-analyze post-boot is broken for initrd
 
+* systemd-analyze: data collection tools should be lightweight (few dependencies); data analysis tools can be heavyweight
+
 * man: clarify that time-sync.target is not only sysv compat but also useful otherwise. Same for similar targets
 
 * .device aliases need to be implemented with the "following" logic, probably.
@@ -229,18 +330,15 @@ Features:
 
 * journald: we currently rotate only after MaxUse+MaxFilesize has been reached.
 
-* Document:
-        - PID 1 D-Bus API
-
 * introduce Type=pid-file
 
 * maybe allow services with ExecStop= set, but no ExecStart=?
 
 * efi: implement /forcefsck as uefi variables thus not requiring file system altering to trigger a file system check
 
-* efi: honour language efi variables for default language selection
+* efi: honor language efi variables for default language selection
 
-* efi: honour timezone efi variables for default timezone selection
+* efi: honor timezone efi variables for default timezone selection
 
 * efi: automatically mount EFI partition to /boot if no such entry exists in /etc/fstab and /boot is empty
   gummiboot exports the EFI system partion (ESP) device:
@@ -261,7 +359,7 @@ Features:
 
 * support rd.luks.allow-discards= kernel cmdline params in cryptsetup generator
 
-* nspawn: make use of device cgroup contrller by default
+* nspawn: make use of device cgroup controller by default
 
 * drop accountsservice's StandardOutput=syslog and Type=dbus fields
 
@@ -269,10 +367,6 @@ Features:
 
 * readahead: when bumping /sys readahead variable save mtime and compare later to detect changes
 
-* (attempt to) make Debianites happy:
-        - implement .d/ auto includes for unit files
-        - add syntax to reset ExecStart= lists (and similar)
-
 * move passno parsing to fstab generator
 
 * improve !/proc/*/loginuid situation: make /proc/*/loginuid less dependent on CONFIG_AUDIT,
@@ -286,20 +380,21 @@ Features:
 
 * readahead: make use of EXT4_IOC_MOVE_EXT, as used by http://e4rat.sourceforge.net/
 
-* automount: implement expire
-
-* logind: auto-suspend, auto-shutdown:
-        IdleAction=(none|suspend|opportunistic|hibernate|poweroff)
-        IdleActionDelay=...
-        SessionIdleMode=(explicit|ignore|login)
-        ForceShutdown=(yes|no)
+* automount: implement expire:
+   - set superblock timeout AUTOFS_DEV_IOCTL_TIMEOUT_CMD
+   - periodically run AUTOFS_DEV_IOCTL_EXPIRE_CMD
+     - every timeout/4 (original autofs logic)
+     - blocking, needs a thread
+     - run until -EAGAIN
+   - receive expire packet on pipe if kernel tells the timeout is over
+     - call umount
+     - answer expire packet on pipe with AUTOFS_DEV_IOCTL_{READY,FAIL}_CMD
+   - AUTOFS_DEV_IOCTL_EXPIRE_CMD returns
 
 * services which create their own subcgroups break cgroup-empty notification (needs to be fixed in the kernel)
 
 * don't delete /tmp/systemd-namespace-* before a process is gone down
 
-* vconsole: implement setterm -store -foreground xxx --background zzz
-
 * ExecOnFailure=/usr/bin/foo
 
 * fedora: make sshd and pam_loginuid work in nspawn containers
@@ -308,28 +403,14 @@ Features:
 
 * Add pretty name for seats in logind
 
-* ConditionSecurity= should learn about IMA
-
-* Auke: merge Auke's bootchart
-
-* udev: move to LGPL
-
-* udev systemd unify:
-  - strpcpy(), strpcpyl(), strscpy(), strscpyl()
-  - utf8 validator code
-  - now() vs. now_usec()
+* ConditionSecurity= should learn about IMA and SMACK
 
-* udev: remove network interface renaming, sleep and retry logic, we do
-        no support renaming of interfaces in the conflicting kernel
-        namespace
-
-* udev: find a way to tell udev to not cancel firmware requests when running in initramfs
-
-* udev: scsi_id -> sg3_utils -> kill scsi_id
-
-* udev: add trigger --subsystem-match=usb/usb_device device
-
-* allow configuration of console width/height in vconsole.conf
+* udev:
+  - remove all (misguided from day 1) userspace firmware_class handling
+  - move to LGPL
+  - unify utf8 validator code with shared/
+  - kill scsi_id
+  - add trigger --subsystem-match=usb/usb_device device
 
 * cleanup syslog 'priority' vs. 'level' wording
 
@@ -349,7 +430,7 @@ Features:
 
 * There's currently no way to cancel fsck (used to be possible via C-c or c on the console)
 
-* journal: sanely deal with entries which are larger than the individual file size, but where the componets would fit
+* journal: sanely deal with entries which are larger than the individual file size, but where the components would fit
 
 * add command to systemctl to plot dependency graph as tree (see rhbz 795365)
 
@@ -359,20 +440,16 @@ Features:
 
 * figure out whether we should leave dbus around during shutdown
 
-* dbus: in fedora, make the machine a symlink to /etc/machine-id
+* dbus: in fedora, make /var/lib/dbus/machine-id a symlink to /etc/machine-id
 
 * dbus: move dbus to early boot
 
-* journald: reuse XZ context
-
 * logind: add equivalent to sd_pid_get_owner_uid() to the D-Bus API
 
 * journal: deal nicely with byte-by-byte copied files, especially regards header
 
 * journal: local deserializer of export mode, http server
 
-* journal: message catalog
-
 * document the exit codes when services fail before they are exec()ed
 
 * save coredump in Windows/Mozilla minidump format
@@ -398,7 +475,7 @@ Features:
 
 * when a bus name of a service disappears from the bus make sure to queue further activation requests
 
-* something like ConditionExec= or ExecStartPre= without failure state
+* something like ConditionExec= or ExecCondition= without failure state
 
 * tmpfiles: apply "x" on "D" too (see patch from William Douglas)
 
@@ -424,8 +501,6 @@ Features:
 
 * readahead: use BTRFS_IOC_DEFRAG_RANGE instead of BTRFS_IOC_DEFRAG ioctl, with START_IO
 
-* readahead: check whether a btrfs volume includes ssd by checking mount flag "ssd"
-
 * support sd_notify() style notification when reload begins (RELOADING=1), reload is finished (READY=1), and add ReloadSignal= then to use in combination
 
 * support sd_notify() style notification when shutting down, to make auto-exit bus services work (STOPPING=1)
@@ -437,8 +512,6 @@ Features:
 * Make it possible to set the keymap independently from the font on
   the kernel cmdline. Right now setting one resets also the other.
 
-* move nss-myhostname into systemd
-
 * and a dbus call to generate target from current state
 
 * drop /.readahead on bigger upgrades with yum
@@ -455,9 +528,14 @@ Features:
   - remote access
   - how to pass throw-away units to systemd, or dynamically change properties of existing units
   - how to integrate cgconfig and suchlike with systemd
-  - resource control in systemd
   - testing with Harald's awesome test kit
   - auto-restart
+  - how to develop against journal browsing APIs
+  - the journal HTTP iface
+  - non-cgroup resource management
+  - dynamic resource management with cgroups
+  - refreshed, longer missions statement
+  - celendar time events
 
 * allow port=0 in .socket units
 
@@ -485,9 +563,6 @@ Features:
 
 * dot output for --test showing the 'initial transaction'
 
-* calendar time support in timer:
-    https://docs.google.com/document/pub?id=1bAMyFAjWLpzR3GTDYdgj5FWRMxoZiWw5zmUHEtvdHKA
-
 * writable cgroups dbus properties for live changes
 
 * port over to LISTEN_FDS/LISTEN_PID:
@@ -525,7 +600,7 @@ External:
 
 * make cryptsetup lower --iter-time
 
-* patch kernel for xattr support in /dev, /proc/, /sys and /sys/fs/cgroup?
+* patch kernel for xattr support in /dev, /proc/, /sys?
 
 * NTP: the kernel's 11-minutes-mode syncs the system time to the RTC, but only
   in an ~30 minutes window. It does not adjust larger differences. Find a way
@@ -551,8 +626,8 @@ Regularly:
 
 * use secure_getenv() instead of getenv() where appropriate
 
+* link up selected blog stories from man pages and unit files Documentation= fields
+
 Scheduled for removal or fixing:
 
 * xxxOverridable dependencies (probably: fix)
-
-* support for early-boot SysV services (definitely: remove)