chiark / gitweb /
cmdline: we actually want to parse the kernel cmdline in VMs, just not in containers
[elogind.git] / TODO
1 F15:
2
3 * swap units that are activated by one name but shown in the kernel under another are semi-broken
4
5 * isolate multi-user.target doesn't start a getty@tty1 if we run it from graphical.target
6    https://bugzilla.redhat.com/show_bug.cgi?id=688661
7
8 * NFS, networkmanager ordering issue (PENDING)
9
10 * NM should pull in network.target (PENDING)
11   https://bugzilla.redhat.com/show_bug.cgi?id=692008
12
13 * ntpd should pull in time-sync.target. (PENDING)
14
15 * add fstab fields to add wait timeouts, change Wants to Requires by local-fs.target
16
17 * hook emergency.target into local-fs.target in some way as OnFailure with isolate
18
19 * bind mounts are ignored
20   https://bugzilla.redhat.com/show_bug.cgi?id=682662
21
22 * 0595f9a1c182a84581749823ef47c5f292e545f9 is borked, freezes shutdown
23     (path: after installing inotify watches, recheck file again to fix race)
24
25 * bluetooth should be possible to disable
26
27 * fix alsa mixer restore to not print error when no config is stored
28
29 Features:
30
31 * don't trim empty cgroups
32   https://bugzilla.redhat.com/show_bug.cgi?id=678555
33
34 * serialize used job ids and max job id
35
36 * expose monotonic timestamps on the bus and make systemd-analyze use it
37
38 * write blog stories about:
39   - chroot, nspawn and friends
40   - the blame game: systemd-analyze
41   - enabling dbus services
42   - status update
43
44 * allow port = 0 in .socket units
45
46 * rename systemd-logger to systemd-stdio-syslog-bridge
47
48 * introduce /usr/lib/binfmt.d/, /usr/lib/tmpfiles.d/
49
50 * in pam_systemd: don't rely on /proc/self/loginuid in a container
51
52 * take BSD file lock on tty devices when using them?
53
54 * tmpfiles should allow two identical lines
55   https://bugzilla.redhat.com/show_bug.cgi?id=690253
56
57 * avoid any flag files, or readahead files in /, we need to support r/o /
58   or / on tmpfs like Android setups.
59
60 * teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
61
62 * get process transport into dbus for systemctl -P/-H
63
64 * document default dependencies
65
66 * support systemd.whitelist=/systemd.blacklist= on the kernel command
67   line.
68
69 * Find a way to replace /var/run, /var/lock directories with
70   symlinks during an RPM package upgrade (filesystem.rpm or systemd.rpm).
71   We soon want to get rid of var-run.mount var-lock.mount units.
72
73 * when key file cannot be found, read it from kbd in cryptsetup
74
75 * get rid of random file name in generator directory?
76     /run/systemd/generator-IH1vFu
77
78 * fix SD_WARNING syslog stuff in src/sd-daemon.h to include the
79   LOG_DAEMON(3) facility value. Never use the LOG_KERNEL(0) facility.
80
81 * add switch to systemctl to show enabled but not running services. Or
82   another switch that shows service that have been running since
83   booting but aren't running anymore.
84
85 * reuse mkdtemp namespace dirs in /tmp?
86
87 * don't strip facility from kmsg log messages as soon as that is possible:
88     http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=9d90c8d9cde929cbc575098e825d7c29d9f45054
89
90 * recreate systemd's D-Bus private socket file on SIGUSR2
91
92 * be more specific what failed:
93     ...
94     Unmounting file systems.
95     Not all file systems unmounted, 1 left.
96     Disabling swaps.
97     Detaching loop devices.
98     Detaching DM devices.
99     Cannot finalize remaining file systems and devices, trying to kill remaining processes.
100     Unmounting file systems.
101     Not all file systems unmounted, 1 left.
102     Cannot finalize remaining file systems and devices, giving up.
103     ...
104
105 * check for compiled-in, but not active selinux, and don't print any warnings
106   about policy loading. Probably check for available selinux in /proc/filesystems,
107   and check for active selinux with getcon_raw() == "kernel"
108
109 * optionally create watched directories in .path units
110
111 * Support --test based on current system state
112
113 * consider services with no [Install] section and stored in /lib enabled by "systemctl is-enabled"
114
115 * consider services with any kind of link in /etc/systemd/system enabled
116
117 * show failure error string in "systemctl status"
118
119 * make sure timeouts are applied to Type=oneshot services.
120
121 * Maybe implement "systemctl mask" and "systemctl unmask", but not
122   document it? When doing that add switch to make this temporary by
123   placing mask links in /dev.
124   Consider moving the actual fs operations into systemd behind a D-Bus
125   interface, to make namespaces/containers/remote connections work properly.
126
127 * detect LXC environment
128
129 * invoke vhangup() before and after invoking getty
130     http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=3c95c985fa91ecf6a0e29622bbdd13dcfc5ce9f1
131
132 * support "auto" and "comment=systemd.automount" at the same time for an fstab entry
133
134 * Maybe store in unit files whether a service should be enabled by default on package installation
135   (belongs into a distro pattern though, not in an upstream package's service file)
136
137 * perhaps add "systemctl reenable" as combination of "systemctl disable" and "systemctl enable"
138
139 * need a way to apply mount options of api vfs from systemd unit files
140   (or some other modern source?) instead of fstab
141
142 * maybe introduce ExecRestartPre=
143
144 * figure out what happened to bluez patch
145
146 * Patch systemd-fsck to use -C and pass console fd to it
147
148 * support remote/ssh systemctl/systemadm, and local privileged access → dbus patches need to be merged
149
150 * configurable jitter for timer events
151
152 * Support ProcessNeededForShutdown=true to allow stuff like mdmon
153   to be killed very late after the rootfs is read only (?)
154
155 * Integrate "mdadm --wait-clean". Maybe just let SIGTERM to mdmon trigger the
156   needed action
157
158 * dot output for --test showing the 'initial transaction'
159
160 * calendar time support in timer, iCalendar semantics for the timer stuff (RFC2445)
161   - check timerfd() patch: http://lkml.org/lkml/2010/11/23/290
162
163 * systemd --user
164   - get PR_SET_ANCHOR merged: http://lkml.org/lkml/2010/2/2/165
165
166 * add VT tracking:
167   - provide CK functionality
168   - start getty only when actual vt switch happens (same model as
169     socket on-demand activation). allocate the next free tty and
170     start a getty there. this way, pressing alt-f[1-12] will switch
171     through running X and getty sessions, and any unallocated
172     activated tty will start a new getty. the hardcoding of
173     getty[1-6] will entirely go away.
174   - http://git.kernel.org/?p=linux/kernel/git/gregkh/tty-2.6.git;a=commitdiff;h=fbc92a3455577ab17615cbcb91826399061bd789
175
176 * implicitly import "defaults" settings file into all types
177
178 * port over to LISTEN_FDS/LISTEN_PID:
179    - uuidd    HAVEPATCH
180    - rpcbind (/var/run/rpcbind.sock!) HAVEPATCH
181    - cups     HAVEPATCH
182    - postfix, saslauthd
183    - apache/samba
184    - libvirtd (/var/run/libvirt/libvirt-sock-ro)
185    - bluetoothd (/var/run/sdp! @/org/bluez/audio!)
186    - distccd
187
188 * fingerprint.target, wireless.target, gps.target, netdevice.target
189
190 * set_put(), hashmap_put() return values check. i.e. == 0 doesn't free()!
191
192 * io priority during initialization
193
194 * if a service fails too often, make the service enter failed mode, and the socket, too.
195
196 * systemctl list-jobs - show dependencies
197
198 * accountsservice is borked
199
200 * auditd service files
201
202 * add systemctl switch to dump transaction without executing it
203
204 * suspend, resume support?
205
206 * readahead: btrfs/LVM SSD detection
207
208 * add separate man page for [Install] settings
209
210 * allow runtime changing of log level and target
211
212 External:
213
214 * udisks should not use udisks-part-id, instead use blkid. also not probe /dev/loopxxx
215
216 * snd-seq should go, https://bugzilla.redhat.com/show_bug.cgi?id=676095
217
218 * gnome-shell python script/glxinfo/is-accelerated must die
219
220 * make cryptsetup lower --iter-time
221
222 * patch kernel for xattr support in /dev, /proc/, /sys and /sys/fs/cgroup.
223
224 * patch kernel for cpu feature modalias for autoloading aes/kvm/...
225     http://git.kernel.org/?p=linux/kernel/git/ak/linux-misc-2.6.git;a=shortlog;h=refs/heads/cpuid-match
226   (Rafael J. Wysocki's sysdev rework is on the way. After that CPUs can be exported a proper bus.)
227
228 * procps, psmisc, sysvinit-tools, hostname → util-linux-ng
229
230 https://bugzilla.redhat.com/show_bug.cgi?id=614245 -- plymouth
231 https://bugzilla.redhat.com/show_bug.cgi?id=612789 -- umount /cgroup on halt
232 https://bugzilla.redhat.com/show_bug.cgi?id=612728 -- /etc/rc.d/init.d/functions
233 https://bugzilla.redhat.com/show_bug.cgi?id=612712 -- pam_systemd
234 https://bugs.freedesktop.org/show_bug.cgi?id=29193 -- accountsservice
235 https://bugs.freedesktop.org/show_bug.cgi?id=29194 -- ConsoleKit
236 https://bugs.freedesktop.org/show_bug.cgi?id=29205 -- udisks
237 http://article.gmane.org/gmane.linux.bluez.kernel/6479 -- bluez
238 http://www.spinics.net/lists/linux-nfs/msg14371.html -- rpcbind
239 https://bugzilla.redhat.com/show_bug.cgi?id=617328 -- ntp
240 https://bugzilla.redhat.com/show_bug.cgi?id=617320 -- at
241 https://bugzilla.redhat.com/show_bug.cgi?id=617326 -- fprintd
242 https://bugzilla.redhat.com/show_bug.cgi?id=617333 -- yum
243 https://bugzilla.redhat.com/show_bug.cgi?id=617317 -- acpid
244 https://bugzilla.redhat.com/show_bug.cgi?id=617327 -- gpm
245 https://bugzilla.redhat.com/show_bug.cgi?id=617330 -- pcsc-lite
246 https://bugzilla.redhat.com/show_bug.cgi?id=617321 -- audit
247 https://bugzilla.redhat.com/show_bug.cgi?id=617316 -- abrt
248
249 Regularly:
250
251 * look for close() vs. close_nointr() vs. close_nointr_nofail()
252
253 * check for strerror(r) instead of strerror(-r)
254
255 * Use PR_SET_PROCTITLE_AREA if it becomes available in the kernel
256
257 * %m in printf() instead of strerror();
258
259 * pahole
260
261 * CFLAGS="-Wl,--gc-sections -Wl,--print-gc-sections -ffunction-sections -fdata-sections"