diff options
author | Kay Sievers <kay@vrfy.org> | 2014-06-21 15:45:49 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-06-21 15:45:49 +0200 |
commit | e09c69d9fdb2d3aa957fd7b43d9c27615b56d5ae (patch) | |
tree | c54ca28a7c1bfc0a17ab60114765ec5084826aca | |
parent | dfb0c6cc3b1b5d2250b76b052d9536995e0cdd16 (diff) |
pam_systemd: replace regex with sym file
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | src/login/pam_systemd.sym | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 32bbd455ab..68c53b785f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4646,6 +4646,7 @@ tests += \ if HAVE_PAM pam_systemd_la_SOURCES = \ + src/login/pam_systemd.sym \ src/login/pam_systemd.c pam_systemd_la_CFLAGS = \ @@ -4659,7 +4660,7 @@ pam_systemd_la_LDFLAGS = \ -export-dynamic \ -avoid-version \ -shared \ - -export-symbols-regex '^pam_sm_.*' + -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym pam_systemd_la_LIBADD = \ libsystemd-capability.la \ diff --git a/src/login/pam_systemd.sym b/src/login/pam_systemd.sym new file mode 100644 index 0000000000..23ff75f688 --- /dev/null +++ b/src/login/pam_systemd.sym @@ -0,0 +1,15 @@ +/*** + This file is part of systemd. + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. +***/ + +{ +global: + pam_sm_close_session; + pam_sm_open_session; +local: *; +}; |