chiark / gitweb /
update todo
[elogind.git] / TODO
1 * udev-kernel.socket + udev.control.socket seems not
2   to work, udevd is started but no fd is passed
3
4 F15:
5
6 * swap units that are activated by one name but shown in the kernel under another are semi-broken
7
8 F15 External:
9
10 * NFS, networkmanager ordering issue (PENDING)
11
12 * NM should pull in network.target (PENDING)
13   https://bugzilla.redhat.com/show_bug.cgi?id=692008
14
15 * bluetooth should be possible to disable (PENDING)
16
17 * get writev() /dev/kmsg support into the F15 kernel
18     http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7e5b58bcbcb3d7518389c1d82fb6e926f5a9f72c
19
20 * make anaconda write timeout=0 for encrypted devices
21
22 * fix broken Sockets=syslog-ng.socket packaging
23
24 Features:
25
26 * kernel: add /proc/sys file exposing CAP_LAST_CAP?
27
28 * understand https://bugzilla.redhat.com/show_bug.cgi?id=672194
29
30 * possibly set timezone offset from systemd at init instead
31   of calling hwclock
32
33 * kernel: add device_type = "fb", "fbcon" to class "graphics"
34
35 * readahead: use BTRFS_IOC_DEFRAG_RANGE instead of BTRFS_IOC_DEFRAG ioctl, with START_IO
36
37 * readahead: check whether a btrfs volume includes ssd by checking mount flag "ssd"
38
39 * hostnamed: make file updates atomic
40
41 * support sd_notify() style notificatio when reload is finished (RELOADED=1)
42
43 * verify that the AF_UNIX sockets of a service in the fs still exist
44   when we start a service in order to avoid confusion when a user
45   assumes starting a service is enough to make it accessible
46
47 * drop -lrt req for sd-daemon.[ch]
48
49 * Make it possible to set the keymap independently from the font on
50   the kernel cmdline. Right now setting one resets also the other.
51
52 * add dbus call to convert snapshot into target
53
54 * move nss-myhostname into systemd
55
56 * figure out a standard place to configure timezone name, inform myllynen@redhat.com
57
58 * add dbus call to convert snapshot into target
59
60 * move /selinux to /sys/fs/selinux
61
62 * detect LXC with $container=lxc
63
64 * add prefix match to sysctl, tmpfiles, ...
65
66 * drop /.readahead on bigger upgrades with yum
67
68 * add inode stat() check to readahead to suppress preloading changed files
69
70 * allow list of paths in config_parse_condition_path()
71
72 * introduce dbus calls for enabling/disabling a service
73
74 * support notifications for services being enabled/disabled
75
76 * add support for /bin/mount -s
77
78 * GC unreferenced jobs (such as .device jobs)
79
80 * add JoinControllers= to system.conf to mount certain cgroup
81   controllers together in order to guarantee atomic creation/addition
82   of cgroups
83
84 * don't enter "exited" mode for sysv services with pid file
85
86 * avoid DefaultStandardOutput=syslog to have any effect on StandardInput=socket services
87
88 * cgroup_notify_empty(): recursively check groups up the tree, too
89
90 * fix alsa mixer restore to not print error when no config is stored
91
92 * show enablement status in systemctl status
93
94 * support SYSTEMD_PAGER taking precedence over PAGER
95
96 * fix upstart reboot compat call
97
98 * In systemctl make sure both is-enabled and is-active print a string, or neither.
99
100 * teach systemctl to enable unit files in arbitrary directories
101
102 * when failing to start a service due to ratelimiting, try again later, if restart=always is set
103
104 * write blog stories about:
105   - enabling dbus services
106   - status update
107   - /etc/sysconfig and /etc/default
108   - how to write socket activated services
109
110 * maybe add tiny dbus services similar to hostnamed for locale and wallclock/timezone?
111
112 * allow port=0 in .socket units
113
114 * rename systemd-logger to systemd-stdio-syslog-bridge
115
116 * take BSD file lock on tty devices when using them?
117
118 * avoid any flag files, or readahead files in /, we need to support r/o /
119   or / on tmpfs like Android setups.
120
121 * move readahead files into /var, look for them with .path units
122
123 * teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
124
125 * get process transport into dbus for systemctl -P/-H
126
127 * document default dependencies
128
129 * support systemd.whitelist=/systemd.blacklist= on the kernel command
130   line.
131
132 * Find a way to replace /var/run, /var/lock directories with
133   symlinks during an RPM package upgrade (filesystem.rpm or systemd.rpm).
134   (lua code to create symlinks right away for new installations is in filesytem.rpm now)
135   We soon want to get rid of var-run.mount var-lock.mount units:
136     if mountpoint /run ; then
137           umount /var/run || :
138     else
139           mount --move /var/run /run || mount --bind /var/run /run
140     fi
141     mv /var/run /var/.run.save
142     ln -s /run /var/run
143     echo "R /var/.run.save" > /etc/tmpfiles.d/remove-run-save.conf
144
145 * when key file cannot be found, read it from kbd in cryptsetup
146
147 * add switch to systemctl to show enabled but not running services. Or
148   another switch that shows service that have been running since
149   booting but aren't running anymore.
150
151 * reuse mkdtemp namespace dirs in /tmp?
152
153 * recreate systemd's D-Bus private socket file on SIGUSR2
154
155 * be more specific what failed:
156     ...
157     Unmounting file systems.
158     Not all file systems unmounted, 1 left.
159     Disabling swaps.
160     Detaching loop devices.
161     Detaching DM devices.
162     Cannot finalize remaining file systems and devices, trying to kill remaining processes.
163     Unmounting file systems.
164     Not all file systems unmounted, 1 left.
165     Cannot finalize remaining file systems and devices, giving up.
166     ...
167
168 * check for compiled-in, but not active selinux, and don't print any warnings
169   about policy loading. Probably check for available selinux in /proc/filesystems,
170   and check for active selinux with getcon_raw() == "kernel"
171
172 * Support --test based on current system state
173
174 * consider services with any kind of link in /etc/systemd/system enabled
175
176 * show failure error string in "systemctl status"
177
178 * make sure timeouts are applied to Type=oneshot services.
179
180 * Implement:
181     systemctl mask <unit>
182     systemctl unmask <unit>
183   Also support --temp to make this temporary by placing mask links in /run.
184
185 * detect LXC environment
186
187 * investigate whether the gnome pty helper should be moved into systemd, to provide cgroup support.
188
189 * Maybe store in unit files whether a service should be enabled by default on package installation
190   (belongs into a distro pattern though, not in an upstream package's service file)
191
192 * perhaps add "systemctl reenable" as combination of "systemctl disable" and "systemctl enable"
193
194 * need a way to apply mount options of api vfs from systemd unit files
195   (or some other modern source?) instead of fstab?
196
197 * maybe introduce ExecRestartPre=
198
199 * figure out what happened to bluez patch
200
201 * Patch systemd-fsck to use -C and pass console fd to it
202
203 * configurable jitter for timer events
204
205 * Support ProcessNeededForShutdown=true to allow stuff like mdmon to
206   be killed very late after the rootfs is read only? If implement pass
207   this to shutdown binary via command line argument.
208
209 * use pivot_root on shutdown so that we can unmount the root directory.
210    - copy binaries to, and pivot_root() to the "shutdown tmpfs"
211    - solve "mdadm --wait-clean" problem that way
212
213 * dot output for --test showing the 'initial transaction'
214
215 * calendar time support in timer, iCalendar semantics for the timer stuff (RFC2445)
216     http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=99ee5315dac6211e972fa3f23bcc9a0343ff58c4
217
218 * systemd --user
219   - get PR_SET_ANCHOR merged: http://lkml.org/lkml/2010/2/2/165
220
221 * add VT tracking:
222   - provide CK functionality
223   - start getty only when actual vt switch happens (same model as
224     socket on-demand activation). allocate the next free tty and
225     start a getty there. this way, pressing alt-f[1-12] will switch
226     through running X and getty sessions, and any unallocated
227     activated tty will start a new getty. the hardcoding of
228     getty[1-6] will entirely go away.
229   - http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fbc92a3455577ab17615cbcb91826399061bd789
230
231 * implicitly import "defaults" settings file into all types
232
233 * port over to LISTEN_FDS/LISTEN_PID:
234    - uuidd    HAVEPATCH
235    - rpcbind (/var/run/rpcbind.sock!) HAVEPATCH
236    - cups     HAVEPATCH
237    - postfix, saslauthd
238    - apache/samba
239    - libvirtd (/var/run/libvirt/libvirt-sock-ro)
240    - bluetoothd (/var/run/sdp! @/org/bluez/audio!)
241    - distccd
242
243 * fingerprint.target, wireless.target, gps.target, netdevice.target
244
245 * set_put(), hashmap_put() return values check. i.e. == 0 doesn't free()!
246
247 * io priority during initialization
248
249 * if a service fails too often, make the service enter failed mode, and the socket, too.
250
251 * systemctl list-jobs - show dependencies
252
253 * auditd service files
254
255 * add systemctl switch to dump transaction without executing it
256
257 * suspend, resume support?
258
259 * readahead: btrfs/LVM SSD detection
260
261 * add separate man page for [Install] settings
262
263 * allow runtime changing of log level and target
264
265 * drop cap bounding set in readahead and other services
266
267 External:
268
269 * udisks should not use udisks-part-id, instead use blkid. also not probe /dev/loopxxx
270
271 * snd-seq should go, https://bugzilla.redhat.com/show_bug.cgi?id=676095
272
273 * gnome-shell python script/glxinfo/is-accelerated must die
274
275 * make cryptsetup lower --iter-time
276
277 * patch kernel for xattr support in /dev, /proc/, /sys and /sys/fs/cgroup?
278
279 * patch kernel for cpu feature modalias for autoloading aes/kvm/...
280     http://git.kernel.org/?p=linux/kernel/git/ak/linux-misc-2.6.git;a=shortlog;h=refs/heads/cpuid-match
281   (Rafael J. Wysocki's sysdev rework is on the way. After that CPUs can be exported a proper bus.)
282
283 * procps, psmisc, sysvinit-tools, hostname → util-linux-ng
284
285 https://bugzilla.redhat.com/show_bug.cgi?id=614245 -- plymouth
286 https://bugzilla.redhat.com/show_bug.cgi?id=612789 -- umount /cgroup on halt
287 https://bugzilla.redhat.com/show_bug.cgi?id=612728 -- /etc/rc.d/init.d/functions
288 https://bugzilla.redhat.com/show_bug.cgi?id=612712 -- pam_systemd
289 https://bugs.freedesktop.org/show_bug.cgi?id=29193 -- accountsservice
290 https://bugs.freedesktop.org/show_bug.cgi?id=29194 -- ConsoleKit
291 https://bugs.freedesktop.org/show_bug.cgi?id=29205 -- udisks
292 http://article.gmane.org/gmane.linux.bluez.kernel/6479 -- bluez
293 http://www.spinics.net/lists/linux-nfs/msg14371.html -- rpcbind
294 https://bugzilla.redhat.com/show_bug.cgi?id=617328 -- ntp
295 https://bugzilla.redhat.com/show_bug.cgi?id=617320 -- at
296 https://bugzilla.redhat.com/show_bug.cgi?id=617326 -- fprintd
297 https://bugzilla.redhat.com/show_bug.cgi?id=617333 -- yum
298 https://bugzilla.redhat.com/show_bug.cgi?id=617317 -- acpid
299 https://bugzilla.redhat.com/show_bug.cgi?id=617327 -- gpm
300 https://bugzilla.redhat.com/show_bug.cgi?id=617330 -- pcsc-lite
301 https://bugzilla.redhat.com/show_bug.cgi?id=617321 -- audit
302 https://bugzilla.redhat.com/show_bug.cgi?id=617316 -- abrt
303
304 Regularly:
305
306 * look for close() vs. close_nointr() vs. close_nointr_nofail()
307
308 * check for strerror(r) instead of strerror(-r)
309
310 * Use PR_SET_PROCTITLE_AREA if it becomes available in the kernel
311
312 * %m in printf() instead of strerror();
313
314 * pahole
315
316 * CFLAGS="-Wl,--gc-sections -Wl,--print-gc-sections -ffunction-sections -fdata-sections"