head	1.11;
access;
symbols
	RELENG_4_11_0_RELEASE:1.6.6.2
	RELENG_4_11:1.6.6.2.0.16
	RELENG_4_11_BP:1.6.6.2
	RELENG_4_10_0_RELEASE:1.6.6.2
	RELENG_4_10:1.6.6.2.0.14
	RELENG_4_10_BP:1.6.6.2
	RELENG_5_2_1_RELEASE:1.9
	RELENG_5_2_0_RELEASE:1.9
	RELENG_5_2:1.9.0.2
	RELENG_5_2_BP:1.9
	RELENG_4_9_0_RELEASE:1.6.6.2
	RELENG_4_9:1.6.6.2.0.12
	RELENG_4_9_BP:1.6.6.2
	RELENG_5_1_0_RELEASE:1.8
	RELENG_5_1:1.8.0.4
	RELENG_5_1_BP:1.8
	RELENG_4_8_0_RELEASE:1.6.6.2
	RELENG_4_8:1.6.6.2.0.10
	RELENG_4_8_BP:1.6.6.2
	RELENG_5_0_0_RELEASE:1.8
	RELENG_5_0:1.8.0.2
	RELENG_5_0_BP:1.8
	RELENG_4_7_0_RELEASE:1.6.6.2
	RELENG_4_7:1.6.6.2.0.8
	RELENG_4_7_BP:1.6.6.2
	RELENG_4_6_2_RELEASE:1.6.6.2
	RELENG_4_6_1_RELEASE:1.6.6.2
	RELENG_4_6_0_RELEASE:1.6.6.2
	RELENG_4_6:1.6.6.2.0.6
	RELENG_4_6_BP:1.6.6.2
	RELENG_4_5_0_RELEASE:1.6.6.2
	RELENG_4_5:1.6.6.2.0.4
	RELENG_4_5_BP:1.6.6.2
	RELENG_4_4_0_RELEASE:1.6.6.2
	RELENG_4_4:1.6.6.2.0.2
	RELENG_4_4_BP:1.6.6.2
	RELENG_4_3_0_RELEASE:1.6
	RELENG_4_3:1.6.0.8
	RELENG_4_3_BP:1.6
	RELENG_4_2_0_RELEASE:1.6
	RELENG_4_1_1_RELEASE:1.6
	PRE_SMPNG:1.6
	RELENG_4_1_0_RELEASE:1.6
	RELENG_3_5_0_RELEASE:1.6
	RELENG_4_0_0_RELEASE:1.6
	RELENG_4:1.6.0.6
	RELENG_4_BP:1.6
	RELENG_3_4_0_RELEASE:1.6
	RELENG_3_3_0_RELEASE:1.6
	RELENG_3_2_PAO:1.6.0.4
	RELENG_3_2_PAO_BP:1.6
	RELENG_3_2_0_RELEASE:1.6
	RELENG_3_1_0_RELEASE:1.6
	RELENG_3:1.6.0.2
	RELENG_3_BP:1.6
	RELENG_2_2_8_RELEASE:1.5.2.1
	RELENG_3_0_0_RELEASE:1.6
	RELENG_2_2_7_RELEASE:1.5.2.1
	RELENG_2_2_6_RELEASE:1.5.2.1
	RELENG_2_2_5_RELEASE:1.5.2.1
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.5
	RELENG_2_2_1_RELEASE:1.5
	RELENG_2_2_0_RELEASE:1.5
	RELENG_2_1_7_RELEASE:1.2
	RELENG_2_1_6_1_RELEASE:1.2
	RELENG_2_1_6_RELEASE:1.2
	RELENG_2_2:1.5.0.2
	RELENG_2_2_BP:1.5
	RELENG_2_1_5_RELEASE:1.2
	RELENG_2_1_0_RELEASE:1.2
	RELENG_2_1_0:1.2.0.6
	RELENG_2_1_0_BP:1.2
	RELENG_2_0_5_RELEASE:1.2
	RELENG_2_0_5:1.2.0.4
	RELENG_2_0_5_BP:1.2
	RELENG_2_0_5_ALPHA:1.2
	RELEASE_2_0:1.2
	BETA_2_0:1.2
	ALPHA_2_0:1.2.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.11
date	2004.03.25.14.53.53;	author cperciva;	state dead;
branches;
next	1.10;

1.10
date	2004.02.22.10.03.24;	author cperciva;	state Exp;
branches;
next	1.9;

1.9
date	2003.11.17.06.39.38;	author das;	state Exp;
branches;
next	1.8;

1.8
date	2001.04.07.11.21.20;	author ru;	state Exp;
branches;
next	1.7;

1.7
date	2001.03.26.14.33.19;	author ru;	state Exp;
branches;
next	1.6;

1.6
date	97.02.06.01.24.43;	author wosch;	state Exp;
branches
	1.6.6.1;
next	1.5;

1.5
date	96.07.10.18.36.41;	author nate;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	96.01.28.23.49.04;	author wosch;	state Exp;
branches;
next	1.3;

1.3
date	95.07.25.00.34.09;	author bde;	state Exp;
branches;
next	1.2;

1.2
date	94.08.05.02.42.25;	author wollman;	state Exp;
branches;
next	1.1;

1.1
date	94.05.26.06.34.47;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.6.6.1
date	2001.04.25.10.58.44;	author ru;	state Exp;
branches;
next	1.6.6.2;

1.6.6.2
date	2001.04.25.14.04.15;	author ru;	state Exp;
branches;
next	1.6.6.3;

1.6.6.3
date	2012.11.17.07.24.34;	author svnexp;	state Exp;
branches;
next	;

1.5.2.1
date	97.09.14.15.46.33;	author jkh;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.26.06.34.48;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Final step of the sbin -> usr.sbin move: cvs rm src/sbin/nologin/*

I meant to do this a week ago, but I forgot.
@
text
@#	@@(#)Makefile	8.2 (Berkeley) 4/22/94
# $FreeBSD: src/sbin/nologin/Makefile,v 1.10 2004/02/22 10:03:24 cperciva Exp $

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>
@


1.10
log
@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)
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.9
log
@Reimplement nologin(8) as a C program.  This allows us to statically
link it at low cost and avoid environment poisoning attacks associated
with LD_LIBRARY_PATH.

Suggested by:	rwatson
@
text
@d14 7
@


1.8
log
@beforeinstall -> SCRIPTS.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/nologin/Makefile,v 1.7 2001/03/26 14:33:19 ru Exp $
d4 1
a4 1
SCRIPTS=nologin.sh
d6 7
@


1.7
log
@- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD$
d4 1
a5 6

nologin depend lint tags:

beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
	    ${.CURDIR}/nologin.sh ${DESTDIR}${BINDIR}/nologin
@


1.6
log
@/sbin -> ${BINDIR}
@
text
@d2 1
d4 1
a4 2
MAN8=	nologin.8
MAN5=	nologin.5
@


1.6.6.1
log
@MFC: MAN[1-9] -> MAN.
@
text
@a1 1
# $FreeBSD$
d3 2
a4 1
MAN=	nologin.5 nologin.8
@


1.6.6.2
log
@MFC: Introduce and use SCRIPTS knob.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/nologin/Makefile,v 1.6.6.1 2001/04/25 10:58:44 ru Exp $
a3 1
SCRIPTS=nologin.sh
d5 6
@


1.6.6.3
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/sbin/nologin/Makefile 75972 2001-04-25 14:05:26Z ru $
@


1.5
log
@Now that we have a manpage, don't have the 'clean' target be a NO-OP.
@
text
@d10 1
a10 1
	    ${.CURDIR}/nologin.sh ${DESTDIR}/sbin/nologin
@


1.5.2.1
log
@MFC: respect ${BINDIR}
@
text
@d10 1
a10 1
	    ${.CURDIR}/nologin.sh ${DESTDIR}${BINDIR}/nologin
@


1.4
log
@A manpage. May be the file nologin.5 should located in
src/share/man/man5.
@
text
@d6 1
a6 1
nologin clean depend lint tags:
@


1.3
log
@Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
@
text
@d4 1
@


1.2
log
@Convert to our man installation style.  Also fixed long-standing bug
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
@
text
@d8 1
a8 1
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
MAN8=	nologin.0
a9 3

cleandir:
	rm -f nologin.0
@


1.1.1.1
log
@BSD 4.4 Lite sbin Sources

Note:  XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
@
text
@@
