head	1.5;
access;
symbols
	RELENG_3_5_0_RELEASE:1.4.2.1
	RELENG_3_4_0_RELEASE:1.4.2.1
	RELENG_3_3_0_RELEASE:1.4.2.1
	RELENG_3_2_PAO:1.4.0.4
	RELENG_3_2_PAO_BP:1.4
	RELENG_3_2_0_RELEASE:1.4
	RELENG_3_1_0_RELEASE:1.4
	RELENG_3:1.4.0.2
	RELENG_3_BP:1.4
	RELENG_2_2_8_RELEASE:1.2
	RELENG_3_0_0_RELEASE:1.4
	RELENG_2_2_7_RELEASE:1.2
	RELENG_2_2_6_RELEASE:1.2
	RELENG_2_2_5_RELEASE:1.2
	RELENG_2_2_2_RELEASE:1.2
	RELENG_2_2_1_RELEASE:1.2
	RELENG_2_2_0_RELEASE:1.2
	RELENG_2_1_7_RELEASE:1.1.6.3
	RELENG_2_1_6_1_RELEASE:1.1.6.2
	RELENG_2_1_6_RELEASE:1.1.6.2
	RELENG_2_2:1.2.0.2
	RELENG_2_2_BP:1.2
	RELENG_2_1_5_RELEASE:1.1.6.2
	RELENG_2_1_0_RELEASE:1.1
	RELENG_2_1_0:1.1.0.6
	RELENG_2_1_0_BP:1.1
	RELENG_2_0_5_RELEASE:1.1
	RELENG_2_0_5:1.1.0.4
	RELENG_2_0_5_BP:1.1
	RELENG_2_0_5_ALPHA:1.1
	RELEASE_2_0:1.1
	BETA_2_0:1.1
	ALPHA_2_0:1.1.0.2;
locks; strict;
comment	@# @;


1.5
date	99.04.24.21.04.04;	author peter;	state dead;
branches;
next	1.4;

1.4
date	97.02.22.19.56.13;	author peter;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	97.01.14.07.03.14;	author jkh;	state Exp;
branches;
next	1.2;

1.2
date	96.05.30.02.19.03;	author pst;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	94.08.19.12.14.02;	author davidg;	state Exp;
branches
	1.1.6.1;
next	;

1.1.6.1
date	96.05.30.02.30.49;	author pst;	state Exp;
branches;
next	1.1.6.2;

1.1.6.2
date	96.06.05.02.57.14;	author jkh;	state Exp;
branches;
next	1.1.6.3;

1.1.6.3
date	97.02.05.22.58.44;	author jgreco;	state Exp;
branches;
next	1.1.6.4;

1.1.6.4
date	99.09.05.11.35.12;	author peter;	state Exp;
branches;
next	;

1.2.2.1
date	99.09.05.11.32.53;	author peter;	state Exp;
branches;
next	;

1.4.2.1
date	99.08.29.15.31.09;	author peter;	state Exp;
branches;
next	;


desc
@@


1.5
log
@The infrastructure to build these fellows has been replaced with kld.
@
text
@#
# Makefile for modstat
#
# 25 May 93	Terry Lambert		Original
#
# Copyright (c) 1993 Terrence R. Lambert.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#      This product includes software developed by Terrence R. Lambert.
# 4. The name Terrence R. Lambert may not be used to endorse or promote
#    products derived from this software without specific prior written
#    permission.
#
# THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#	$Id: Makefile,v 1.4 1997/02/22 19:56:13 peter Exp $
#

PROG=	modstat
MAN8=	modstat.8

.include <bsd.prog.mk>
@


1.4
log
@Revert $FreeBSD$ to $Id$
@
text
@d36 1
a36 1
#	$Id$
@


1.4.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d36 1
a36 1
# $FreeBSD$
@


1.3
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d36 1
a36 1
#	$FreeBSD$
@


1.2
log
@Setgid kmem not required.
Submitted by:	smpatel (Sujal Patel)
@
text
@d36 1
a36 1
#	$Id: Makefile,v 1.1 1994/08/19 12:14:02 davidg Exp $
@


1.2.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d36 1
a36 1
# $FreeBSD$
@


1.1
log
@Terry Lambert's loadable kernel module support - modstat utility with
improvements from the NetBSD group.
@
text
@d36 1
a36 1
#	$Id: Makefile,v 1.4 1994/02/09 15:02:19 deraadt Exp $
a40 2
BINGRP=	kmem
BINMODE=2555
@


1.1.6.1
log
@Merge security changes in from head.
Submitted by:	smpatel
@
text
@d36 1
a36 1
#	$Id: Makefile,v 1.1 1994/08/19 12:14:02 davidg Exp $
d41 2
@


1.1.6.2
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@a40 2
BINGRP=	kmem
BINMODE=2555
@


1.1.6.3
log
@Fix an exploitable buffer overflow condition.  From l0pht:

Modstat is sgid kmem which is really handy to become if you feel like
looking through /dev/mem and /dev/kmem (gee, wonder what you might
want to do that for ). Like just about everything else under the sun
it has a buffer overflow problem. The problem exists in the dostat()
routine where an arbitrary sized string is shoved into sbuf.name
through a strcpy().

<http://www.l0pht.com/advisories.html>

This change was committed to 2.2 as rev. 1.4 of modstat.c by joerg, and is
being duplicated verbatim in 2.1-STABLE -JG
@
text
@d36 1
a36 1
#	$Id: Makefile,v 1.1.6.2 1996/06/05 02:57:14 jkh Exp $
d41 2
@


1.1.6.4
log
@$Id$ -> $FreeBSD$
@
text
@d36 1
a36 1
# $FreeBSD$
@

