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