[pam_ssh] avoid cross linking with openssh daemon
Dmitry Butskoy
buc at fedoraproject.org
Wed Jan 5 16:57:38 UTC 2011
commit 3c6cb8c7740cfdf76bc29d4f9f092e1d43cc3591
Author: Dmitry Butskoy <Dmitry at Butskoy.name>
Date: Wed Jan 5 19:56:58 2011 +0300
avoid cross linking with openssh daemon
pam_ssh.spec | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/pam_ssh.spec b/pam_ssh.spec
index 4c1a28b..308d8a4 100644
--- a/pam_ssh.spec
+++ b/pam_ssh.spec
@@ -1,7 +1,7 @@
Summary: PAM module for use with SSH keys and ssh-agent
Name: pam_ssh
Version: 1.97
-Release: 4%{?dist}
+Release: 5%{?dist}
Group: System Environment/Base
License: BSD
URL: http://sourceforge.net/projects/pam-ssh/
@@ -33,7 +33,18 @@ autoreconf -f -si
%build
%configure --with-pam-dir=/%{_lib}/security/
make clean
-make %{?_smp_mflags}
+
+# only needed symbols should be exported
+cat >>pam_ssh.sym <<EOF
+pam_sm_acct_mgmt
+pam_sm_authenticate
+pam_sm_chauthtok
+pam_sm_close_session
+pam_sm_open_session
+pam_sm_setcred
+EOF
+
+make %{?_smp_mflags} LDFLAGS='-export-symbols pam_ssh.sym'
%install
@@ -58,6 +69,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Wed Jan 5 2011 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.97-5
+- export only pam_sm_* symbols from the module
+ (else it could cause cross linking when used under sshd daemon)
+
* Mon Dec 13 2010 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.97-4
- auto-create state dir under /var/run (#656657)
More information about the scm-commits
mailing list