Skip to content

Commit 6b4fdb4

Browse files
besser82solardiz
authored andcommitted
pam_tcb: Allow setting a custom PAM_SO_SUFFIX during build.
At least FreeBSD and NetBSD are using OpenPAM, which needs the ability to specify a PAM_SO_SUFFIX to externally built modules. Signed-off-by: Björn Esser <[email protected]>
1 parent 9ca8292 commit 6b4fdb4

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
storage for the underlying directory stream in this case.
2929
* LICENSE: Update copyright for this contribution.
3030

31+
pam_tcb: Allow setting a custom PAM_SO_SUFFIX during build.
32+
At least FreeBSD and NetBSD are using OpenPAM, which needs
33+
the ability to specify a PAM_SO_SUFFIX to externally built
34+
modules.
35+
* pam_tcb/Makefile: Honor PAM_SO_SUFFIX variable.
36+
3137
2021-09-25 Dmitry V. Levin <ldv at owl.openwall.com>
3238

3339
Add github CI.

pam_tcb/Makefile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include ../Make.defs
22

3-
PAM_TCB = pam_tcb.so
3+
PAM_SO_SUFFIX =
4+
PAM_TCB = pam_tcb.so$(PAM_SO_SUFFIX)
45
PAM_MAP = pam_tcb.map
56

67
LIBSRC = \
@@ -31,15 +32,15 @@ install:
3132
$(INSTALL) -m 644 pam_tcb.8 $(DESTDIR)$(MANDIR)/man8/
3233

3334
install-pam_unix: install
34-
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix.so
35-
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix_acct.so
36-
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix_auth.so
37-
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix_passwd.so
38-
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix_session.so
35+
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix.so$(PAM_SO_SUFFIX)
36+
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix_acct.so$(PAM_SO_SUFFIX)
37+
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix_auth.so$(PAM_SO_SUFFIX)
38+
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix_passwd.so$(PAM_SO_SUFFIX)
39+
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_unix_session.so$(PAM_SO_SUFFIX)
3940
$(INSTALL) -m 644 pam_unix.8 $(DESTDIR)$(MANDIR)/man8/
4041

4142
install-pam_pwdb: install
42-
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_pwdb.so
43+
ln -s $(PAM_TCB) $(DESTDIR)$(SLIBDIR)/security/pam_pwdb.so$(PAM_SO_SUFFIX)
4344
$(INSTALL) -m 644 pam_pwdb.8 $(DESTDIR)$(MANDIR)/man8/
4445

4546
clean:

0 commit comments

Comments
 (0)