HALF ECHO LEARN / REFERENCE COLLECTION
v262.2TODO.md
Git blob: 10c59d0b424af14ef5cbfde9e99aa680c9466f25
Lines 3001–3058 of 3,058
until users are allowed to log in).
- we probably should have some infrastructure to acquire sysexts with
drivers/firmware for local hardware automatically. Idea: reuse the modalias
logic of the kernel for this: make the main OS image install a hwdb file
that matches against local modalias strings, and adds properties to relevant
devices listing names of sysexts needed to support the hw. Then provide some
tool that goes through all devices and tries to acquire/download the
specified images.
- We should probably replace /etc/rc.d/README with a symlink to doc
content. After all it is constant vendor data.
- We should start measuring all services, containers, and system extensions we
activate. probably into PCR 13. i.e. add --tpm2-measure-pcr= or so to
systemd-nspawn, and MeasurePCR= to unit files. Should contain a measurement
of the activated configuration and the image that is being activated (in case
verity is used, hash of the root hash).
- what to do about udev db binary stability for apps? (raw access is not an option)
- when importing an fs tree with machined, complain if image is not an OS
- when importing an fs tree with machined, optionally apply userns-rec-chown
- when isolating, try to figure out a way how we implicitly can order
all units we stop before the isolating unit...
- when killing due to service watchdog timeout maybe detect whether target
process is under ptracing and then log loudly and continue instead.
- when mounting disk images: if IMAGE_ID/IMAGE_VERSION is set in os-release
data in the image, make sure the image filename actually matches this, so
that images cannot be misused.
- when switching root from initrd to host, set the machine_id env var so that
if the host has no machine ID set yet we continue to use the random one the
initrd had set.
- when systemd-sysext learns mutable /usr/ (and systemd-confext mutable /etc/)
then allow them to store the result in a .v/ versioned subdir, for some basic
snapshot logic
- when we detect that there are waiting jobs but no running jobs, do something
- whenever we receive fds via SCM_RIGHTS make sure none got dropped due to the
reception limit the kernel silently enforces.
- after option+verb introspection is added, add a test to verify that the
list in proc-cmdline.c matches the actual option list in systemd and shutdown.
- write a document explaining how to write correct udev rules. Mention things
such as:
1. do not do lists of vid/pid matches, use hwdb for that
2. add|change action matches are typically wrong, should be != remove
3. use GOTO, make rules short
4. people shouldn't try to make rules file non-world-readable