3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/systemd
Andreas Rammhold 494ed4d6ee
systemd: patch runtime dlopen calls
This ensures that all the features that are implemented via dlopen(3)
are available (or explicitly deactivated) by pointing dlopen to the
absolute store path instead of relying on the linkers runtime lookup
code.

All of the dlopen calls have to be handled. When new ones are introduced
by upstream (or one of our patches) those must be explicitly declared,
otherwise the build will fail.

As of systemd version 247 we've seen a few errors like `libpcre2.… not
found` when using e.g. --grep with journalctl. Those errors should
become less unexpected now.

There are generally two classes of dlopen calls. Those that we want to
support and those that should be deactivated / unsupported. This change
enforces that we handle all dlopen calls explicitly. Meaning: There is
not a single dlopen call in the code source tree that we did not
explicitly handle.

In order to do this I introduced a list of attributes that maps from
shared object name to the package that contains them. The package can be
null meaning the reference should be nuked and the shared object will
never be loadable during runtime (because it points at an invalid store
path location).
2021-01-03 11:50:01 +01:00
..
0001-Start-device-units-for-uninitialised-encrypted-devic.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0002-Don-t-try-to-unmount-nix-or-nix-store.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0003-Fix-NixOS-containers.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0004-Look-for-fsck-in-the-right-place.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0005-Add-some-NixOS-specific-unit-directories.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0006-Get-rid-of-a-useless-message-in-user-sessions.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0007-hostnamed-localed-timedated-disable-methods-that-cha.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0008-Fix-hwdb-paths.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0009-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0010-localectl-use-etc-X11-xkb-for-list-x11.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0011-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0012-inherit-systemd-environment-when-calling-generators.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0013-add-rootprefix-to-lookup-dir-paths.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0014-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0015-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0016-kmod-static-nodes.service-Update-ConditionFileNotEmp.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0017-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0018-logind-seat-debus-show-CanMultiSession-again.patch systemd: 246.6 -> 247-rc2 2020-12-02 23:40:04 +01:00
0019-Revert-pkg-config-prefix-is-not-really-configurable-.patch systemd: fix pc files 2020-12-11 08:37:42 +01:00
default.nix systemd: patch runtime dlopen calls 2021-01-03 11:50:01 +01:00