freebsd-dev/usr.sbin/nologin/Makefile
Colin Percival 47c524ddd4 Report login attempts to syslog. Due to the statically-linked nature of
nologin(8), this causes a considerable (100K) increase in the binary size,
so I've added a NO_LOGIN_LOG option which disables this.

While I'm here, s/sizeof(MESSAGE)/sizeof(MESSAGE) - 1/, in order to
avoid writing the string-terminating zero byte.

No complaints from: -current
Approved by:	rwatson (mentor)
2004-02-22 10:03:24 +00:00

22 lines
708 B
Makefile

# @(#)Makefile 8.2 (Berkeley) 4/22/94
# $FreeBSD$
PROG= nologin
MAN= nologin.5 nologin.8
# It is important that nologin be statically linked for security
# reasons. A dynamic non-setuid binary can be linked against a trojan
# libc by setting LD_LIBRARY_PATH appropriately. Both sshd(8) and
# login(1) make it possible to log in with an unsanitized environment,
# rendering a dynamic nologin binary virtually useless.
NOSHARED= YES
# Logging to syslog increases the size of the statically linked
# binary by over 100K. Provide an option for disabling this on
# systems where conserving space on the root device is critical.
.ifdef NO_NOLOGIN_LOG
CFLAGS+= -DNO_NOLOGIN_LOG
.endif
.include <bsd.prog.mk>