summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2006-02-12 07:19:45 +0000
committercsjp <csjp@FreeBSD.org>2006-02-12 07:19:45 +0000
commit8e902c8278dacf959495a1fe705435e481073506 (patch)
treed899bd58c2b66c0e19f92cd58a4a227595073bcf /secure
parent4b639ea8edb358d8445e20cf17545e3937cec707 (diff)
downloadFreeBSD-src-8e902c8278dacf959495a1fe705435e481073506.zip
FreeBSD-src-8e902c8278dacf959495a1fe705435e481073506.tar.gz
Hook audit into OpenSSH. Now that the necessary bits for OpenSSH support
have been added with the latest OpenBSM import, hook USE_BSM_AUDIT into build conditionally. For users which do not care for audit support and do not want to compile it into their SSH servers, add the following to the /etc/make.conf: NO_AUDIT=true Discussed with: rwatson Obtained from: TrustedBSD Project
Diffstat (limited to 'secure')
-rw-r--r--secure/usr.sbin/sshd/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/secure/usr.sbin/sshd/Makefile b/secure/usr.sbin/sshd/Makefile
index fa0a21a..0e23288 100644
--- a/secure/usr.sbin/sshd/Makefile
+++ b/secure/usr.sbin/sshd/Makefile
@@ -23,6 +23,12 @@ CFLAGS+=-I${SSHDIR}
DPADD= ${LIBSSH} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
LDADD= -lssh -lutil -lz -lwrap ${MINUSLPAM}
+.if !defined(NO_AUDIT)
+CFLAGS+= -DUSE_BSM_AUDIT
+DPADD+= ${LIBBSM}
+LDADD+= -lbsm
+.endif
+
.if !defined(NO_KERBEROS)
CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL
DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
OpenPOWER on IntegriCloud