diff options
author | Felipe Sateler <fsateler@users.noreply.github.com> | 2017-08-28 13:49:03 -0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-08-28 18:49:03 +0200 |
commit | 4f5993c3f48d6f5454f72aeb10b4642fde758076 (patch) | |
tree | 0ef40b05aba7530001dc66b1e20f8b4ed6496f76 /src/shared/libshared.sym | |
parent | 6c24adfd46aac12ec23fd17f6b5a3113546902d0 (diff) | |
download | systemd-4f5993c3f48d6f5454f72aeb10b4642fde758076.tar.gz |
shared: Add a linker script so that all functions are tagget @SD_SHARED instead of @Base (#6669)
This helps prevent symbol collisions with other programs and libraries. In particular,
because PAM modules are loaded into the process that is creating the session, and
systemd creates PAM sessions, the potential for collisions is high.
Disambiguate all systemd calls by tagging a 'version' SD_SHARED.
Fixes #6624
Diffstat (limited to 'src/shared/libshared.sym')
-rw-r--r-- | src/shared/libshared.sym | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/libshared.sym b/src/shared/libshared.sym new file mode 100644 index 0000000000..e4ae17eede --- /dev/null +++ b/src/shared/libshared.sym @@ -0,0 +1,3 @@ +SD_SHARED { + global: *; +}; |