This integration test demonstrates that a containerized systemd instance can write to a bind mounted file observable to the host. Specifically, the bash script uses systemd-run to start a systemd instance as a transient unit container. This systemd-run command bind mounts a directory the container will share with the host, and runs an internal service which creates and writes to a file from the container's view of this directory. When finished writing, the service runs the exit target, terminating the internal systemd instance, and ending the lifetime of the container. The script waits for the container to finish running, then verifies that the expected file contents were written on the host side of the filesystem mount. This test employs a workaround, creating an unmasked procfs mount on the host which enables the privileged guest to create its own mounts internally. This may indicate a systemd bug, as the privileged container should not rely on the existence of an unmasked procfs on the host in order to mount its own filesystems internally.
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.
We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack
Repositories with distribution packages built from git main are available on OBS
