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