Makefile revision 126117
155714Skris#	@(#)Makefile	8.2 (Berkeley) 4/22/94
255714Skris# $FreeBSD: head/usr.sbin/nologin/Makefile 126117 2004-02-22 10:03:24Z cperciva $
355714Skris
455714SkrisPROG=	nologin
555714SkrisMAN=	nologin.5 nologin.8
655714Skris
755714Skris# It is important that nologin be statically linked for security
8280304Sjkim# reasons.  A dynamic non-setuid binary can be linked against a trojan
955714Skris# libc by setting LD_LIBRARY_PATH appropriately.  Both sshd(8) and
1055714Skris# login(1) make it possible to log in with an unsanitized environment,
1155714Skris# rendering a dynamic nologin binary virtually useless.
1255714SkrisNOSHARED=	YES
1355714Skris
1455714Skris# Logging to syslog increases the size of the statically linked
15280304Sjkim# binary by over 100K.  Provide an option for disabling this on
1655714Skris# systems where conserving space on the root device is critical.
1755714Skris.ifdef NO_NOLOGIN_LOG
1855714SkrisCFLAGS+=	-DNO_NOLOGIN_LOG
1955714Skris.endif
2055714Skris
2155714Skris.include <bsd.prog.mk>
22280304Sjkim