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