summaryrefslogtreecommitdiffstats
path: root/src/shared/libshared.sym
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@users.noreply.github.com>2017-08-28 18:49:03 +0200
committerLennart Poettering <lennart@poettering.net>2017-08-28 18:49:03 +0200
commit4f5993c3f48d6f5454f72aeb10b4642fde758076 (patch)
tree0ef40b05aba7530001dc66b1e20f8b4ed6496f76 /src/shared/libshared.sym
parentRevert "mount-setup: mount xenfs filesystem (#6491)" (#6662) (diff)
downloadsystemd-4f5993c3f48d6f5454f72aeb10b4642fde758076.tar.xz
systemd-4f5993c3f48d6f5454f72aeb10b4642fde758076.zip
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.sym3
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: *;
+};