Commit Graph

1279 Commits

Author SHA1 Message Date
gwr 1ed260c698 Move some externs to where they are needed. 1996-11-11 23:40:09 +00:00
gwr 3b2cf54383 Be honest about the fact that this program builds only with flex. 1996-11-11 23:36:40 +00:00
mycroft 72d4e71f08 Remove remaining vector cruft. 1996-11-11 14:18:49 +00:00
gwr 26793c36d4 Minor changes to support building on other systems (i.e. SunOS). 1996-11-07 22:59:39 +00:00
christos e0d22b9baf Add support for printing RIP-V2 packets. 1996-11-04 21:33:02 +00:00
cgd 42b8d1922d correct a comment: profiled kernels go in FOO.PROF, not FOO.prof 1996-11-02 01:02:56 +00:00
cgd b031fda3b1 update comments to correctly indicate what files are being parsed when 1996-11-02 01:00:14 +00:00
explorer 37449d45b0 Fix the get-a-shell hole, even if we are not currently open to that attack.
(1.2 release is, however, and this should be pulled up and released ASAP)

The previous version (1.11) checked into current limits the duration of
setuid-root periods much more than the 1.2 released version does, so the
attacker DID get a shell, but it was not a root shell.
1996-10-25 22:07:53 +00:00
scottr c847b03d13 `Kb' means kilobits, `Mb' means megabits. Since we're talking about bytes,
not bits, use the uppercase `B' when reporting statistics, and be explicit
about it where appropriate.  Noticed by J.T.
1996-10-25 18:21:57 +00:00
cgd 26902ec586 recognize MNT_NOCOREDUMP and print the 'nocoredump' flag for file
systems which have MNT_NOCOREDUMP set.
1996-10-23 22:50:05 +00:00
cgd 8b3e8678eb add support for recognizing a bunch of flags which are in <sys/mount.h>
but which were never added to pstat -v: UNION, ASYNC, DEFEXPORTED,
EXPORTANON, EXKERB.  Also, sort according to the apparent local style
(order in mount.h, rather than alphabetical).
1996-10-23 22:19:23 +00:00
phil 3aa6054ce8 Fix the type in the description. -a => -m 1996-10-23 04:58:50 +00:00
explorer 3dc8e5446d | -> } in manual page; closes pr bin/2858; mailed patch to author 1996-10-18 17:10:52 +00:00
thorpej 2dbc89cee0 Always clean apm/apmd. Fixes PR #2854, from Dave Huang <khym@bga.com>. 1996-10-18 07:08:56 +00:00
thorpej c5306806ca Use ${INSTALL}. 1996-10-18 06:32:14 +00:00
thorpej 876693e4b5 Don't need to define our own INSTALL variable. 1996-10-18 06:31:29 +00:00
thorpej 150c33e60b Use ${INSTALL}. 1996-10-18 05:55:26 +00:00
jtk 2822e47b0e fix PR #2623: read the idle time from the kernel to determine whether
to wake up.  This is needed because the active filter applied in user
space may fail to match VJ compressed packets.  (The kernel applies its
copy of the filter before it runs VJ compression.)
1996-10-16 00:15:51 +00:00
cgd b7dcf10e80 If gethostbyaddr() fails, use inet_ntoa() to turn the IP address into
a dotted-quad string.  Make this compile with -Wunused and -Wnested-externs.
Kill unnecessary and trivial-to-remove global variables.
1996-10-14 19:28:09 +00:00
christos 1b15732725 <machine/endian.h> -> <sys/types.h> 1996-10-13 01:15:03 +00:00
cgd 3b6f768ed2 Create only /var/db/kvm.db, and only create it if it doesn't
already match the running kernel.  Fixes an inconsistency
where /var/db/kvm_filename.db would be created, but only
if /var/db/kvm_netbsd.db didn't match the running kernel.
1996-10-12 00:51:44 +00:00
cgd 5dd208e6fc u_long -> u_int32_t when dealing with address lists returned by the resolver. 1996-10-07 22:33:15 +00:00
cgd 5d2117b218 don't include bsd.subdir.mk, especially _before_ bsd.prog.mk:
(1) bsd.prog.mk already includes bsd.subdir.mk, and
(2) including bsd.subdir.mk first screws up the clean/cleandir targets
    in such a way that the program's objects don't get blown away
    when you make clean.
1996-10-06 18:08:15 +00:00
cgd 010a229c99 compare client names case-insensitively, since hostnames are case-insensitive. 1996-10-04 19:00:31 +00:00
christos 4871cd13ce RCSid police and a small bug fix in util.c... 1996-10-04 05:15:27 +00:00
cgd 45d20c6b1b add rdsetimage, sort 1996-10-04 00:22:07 +00:00
cgd 257aa69013 rdsetimage, a program to set kernel RAM disk images.
Written from scratch by me, today.
1996-10-04 00:18:55 +00:00
cgd 892f00d3e6 fix slight thinko in that last change 1996-10-03 23:14:23 +00:00
cgd 3e1fe814f0 since get_kerntext() is only used by the a.out code, move it there and
make it private.
1996-10-03 23:06:42 +00:00
cgd ca2617f88a use ECOFF header, not get_kerntext() to help calculate version's file offset 1996-10-03 23:05:27 +00:00
thorpej 06da3294e8 This file is no longer used. 1996-10-03 17:25:07 +00:00
mrg da3136f56a add dhcpd. 1996-10-03 06:58:10 +00:00
mrg 615a3ac588 update some minor things for netbsd. add dhcp2netbsd script. 1996-10-03 06:57:18 +00:00
mrg f6be9247c0 ISC dhcpd beta 5.13. 1996-10-03 06:33:24 +00:00
cgd 61dc0e200c fix pasto: Elf_{Off,Word} rather than Elf32_{Off,Word} 1996-10-03 04:55:31 +00:00
ws 199624cb52 Use an integer instead of a char to store the getopt() return value in
order to match prototypes.
1996-10-02 18:21:03 +00:00
thorpej 54ab7c44c8 Change name of ypservers file to /var/yp/binding/domain.ypservers.
This is a compromise between the Solaris 2.5 naming of this file
(/var/yp/binding/domain/ypservers and /var/yp/binding/domain/vers)
and traditional NetBSD naming (/var/yp/binding/domain.vers).
Changing to the Solaris naming makes the C library incompatible
with ypbind.  While it's easy to change the C library, I don't feel
right about introducing a gratuitous incompatibility.

The current name (/var/yp/domain/ypservers) conflicts with the name
of the YP map listing slave servers for a domain.

Per discussion w/ Chris Demetriou and Luke Mewburn.
1996-10-02 05:55:05 +00:00
thorpej 2b63ba3bc9 .ypservers -> ypservers, to match Solaris 2.5 1996-10-01 01:37:58 +00:00
thorpej 2b1e73085e Add Luke Mewburn's support for a .ypservers file, which contains a list
of YP servers a client should bind to, mostly verbatim, but slightly
modified for better semantics when nagging servers if a ypset has been
issued.  Default to broadcast mode if no .ypservers file is present.

Documentation changes to match, slightly tweaked by Scott Reynolds and
myself.

Closes PR #1759.
1996-10-01 00:22:27 +00:00
cgd a022251922 clean up Lite2 merge. Only real difference is this now includes <unistd.h>
and new Berkeley SCCS ID.
1996-09-30 19:48:44 +00:00
thorpej 63488d7365 RCS id police. 1996-09-30 18:26:58 +00:00
christos 4a55cd8d26 Use a better fix for vsnprintf on svr4. Apparently, svr4 stdio does not
have _IOSTRG, but it uses _IOREAD to indicate that _doprnt() should print
to the buffer and not to the file stream.
1996-09-30 04:19:55 +00:00
cgd c347bc09f1 Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
1996-09-29 02:19:55 +00:00
christos 4df3bfced1 Update for newer preen interface. 1996-09-28 19:20:44 +00:00
christos 07461ac8c7 Misc cleanups. 1996-09-28 19:06:07 +00:00
thorpej 8e6bc9ed5f Correct spelling of `successful'.
From Peter Seebach <seebs@solon.com>, PR #2783.
1996-09-28 15:30:08 +00:00
christos c1a92bcb82 This broke when preen.c moved from fsck_ffs to fsck. Update and cleanup. 1996-09-27 23:25:34 +00:00
thorpej f4fab42521 Discard setgid privileges if we don't need them.
From Mike Grupenhoff <kashmir@vanquish.umiacs.umd.edu>, PR #2646.
1996-09-27 02:39:46 +00:00
thorpej 34a7e2eb3d Correct pathname of bootpd and bootpgw.
From Erik Bertelsen <erik@sockdev.uni-c.dk>, PR #2744.
1996-09-27 01:38:55 +00:00
thorpej af1f12dc6e Add a -l flag, which displays the ttl of the returned packet.
From D'Arcy J.M. Cain <darcy@druid.com>, PR #2773.
1996-09-27 01:34:51 +00:00
christos a63ddeefe6 - kill the -c hack. It does not work properly with virtual consoles anyway.
Implement a better scheme where we `find' the login ttys by looking in
  /etc/ttys. Of course this scheme breaks when /etc/ttys changes, but such
  is life.
- some cleanups...
1996-09-26 19:06:37 +00:00
thorpej cb5947b47e - Fix the gecos botch ... sizeof() was incorrectly being applied
to a pointer; use the provided length of buffer instead.

- Patch from Eric - fix a one-byte buffer overflow...

Both changes obtained from FreeBSD.
1996-09-25 22:40:26 +00:00
jtc e1cfddbd32 Copyright has been assigned to The NetBSD Foundation 1996-09-25 00:53:45 +00:00
ghudson e312e1563e Don't canonicalize relative paths to the source tree any more; libkern
and libcompat can handle them as long as they begin with '.'.  If a
relative path doesn't begin with '.', add a "./" before it.
1996-09-23 05:04:23 +00:00
perry d8e1329af8 close out pr 2771, which added a -s ("secure") flag to lpd -- makes
lpd run in a mode where the it listens only to the local unix domain
socket and not to the network. Changes are similar but not identical
to the supplied patches.
1996-09-21 15:57:21 +00:00
explorer 30adb79d7d reduce differences between 8.7.6 and netbsd's version 1996-09-20 14:39:36 +00:00
explorer 3c01a04f97 fix botched conf.c update 1996-09-20 02:03:19 +00:00
explorer 1391818caf resolve conflicts 1996-09-20 02:00:51 +00:00
explorer f5d93398cb import sendmail 8.7.6, which fixes some security holes 1996-09-20 01:21:24 +00:00
cgd cec83b8146 declare the variable "bad", used to hold errors, as a long, so it can
safely be xdr_long()ed.
1996-09-19 04:25:08 +00:00
explorer c00fecf703 Update to 8.7.6 -- this is a well known attack, and in CERT Advisory CA-96.20
This should be in 1.2...
1996-09-19 02:52:09 +00:00
explorer d77cb628d8 fix where tcpdump lives 1996-09-18 02:48:58 +00:00
mycroft 9312574c1f Remove bogus setreuid() hack. 1996-09-17 15:03:01 +00:00
jtk 179716e7b0 bug fix: set fromlen to sizeof(from) 1996-09-17 00:46:31 +00:00
mycroft 6dbfdb34f7 Clear the sin_zero fields explicitly. 1996-09-16 17:22:04 +00:00
jtk 9869120050 add -o and -m options for owner/group and mode of the socket 1996-09-13 01:10:14 +00:00
explorer 4f6bc4307e fix two security holes; recently posted to freebsd-bugs 1996-09-11 23:53:38 +00:00
explorer d3a4eeb1fe Fix some potential buffer overflow problems.
From David Holland <dholland@hcs.harvard.edu>
1996-09-07 21:05:37 +00:00
thorpej cf8907875b Add a missing "break;", pointed out by Chris Demetriou. 1996-09-05 23:29:22 +00:00
christos b33b1aed5c - for portability make sure that we never use "" as a pathname, always convert
it to "."
- include sockio.h if needed to define SIOCGIFCONF (for svr4)
- use POSIX signals and wait macros
- add -S silent flag, so that the client does not print messages unless there
  is something wrong
- use flock or lockf as appropriate
- use fstatfs or fstatvfs to find out if a filesystem is mounted over nfs,
  don't depend on the major() = 255 hack; it only works on legacy systems.
- use gzip -cf to make sure that gzip compresses the file even when the file
  would expand.
- punt on defining vsnprintf if _IOSTRG is not defined; use sprintf...

To compile sup on systems other than NetBSD, you'll need a copy of daemon.c,
vis.c, vis.h and sys/cdefs.h. Maybe we should keep those in the distribution?
1996-09-05 16:50:01 +00:00
mycroft 6a6476be8b Add a `-t' option to update time stamps. 1996-09-05 09:56:48 +00:00
mycroft e73875ce0a Only record sizes for regular files. 1996-09-05 09:24:19 +00:00
mycroft 8441b8f88d Remove interrupt vector handling. This is done dynamically by all ports now. 1996-08-31 21:15:05 +00:00
mycroft ab6ebadde6 Add `source' and `build' directives, and corresponding options, per discussion
on tech-kern.  (See man page.)  Implementation by Greg Hudson.
Also, remove special case for i386 in vector handling, although this code isn't
actually used any more.
1996-08-31 20:58:16 +00:00
thorpej 52110e02f0 RCS id police. 1996-08-30 20:03:54 +00:00
jtk 16cc3ce6e6 fix for consistent comment names 1996-08-30 02:37:32 +00:00
jtk b86b695240 add Advanced Power Management driver
Includes bootstrap support from FreeBSD (Tatsumi HOSOKAWA and <ukai>)
1996-08-25 23:38:57 +00:00
explorer 1e7535e577 Do the timeout in bin/2701 a bit differently. 1996-08-16 21:36:18 +00:00
explorer 4022c55a29 Fix traceroute timeout problems and a printing problem. Closes pr bin/2701 1996-08-16 20:47:31 +00:00
chuck 3745979128 fix broken case statement for "-C", also check to make sure we've got
the proper number of args for -C and give up if not.   fixes yp slave servers.
1996-08-15 22:17:57 +00:00
chuck 6ad546e352 fix printf format (%s -> %d) in yplog debug statement 1996-08-15 21:47:53 +00:00
explorer 0072cebdef Add mailstats man page. From John M. Vinopal. Closes pr bin/2697.
I also mailed this to sendmail-bugs@sendmail.org, in hopes this won't
remain a local mod for long
1996-08-14 07:07:06 +00:00
mycroft b9ae4a5e3f Remove `config-dependent' and `device-driver' flags. 1996-08-12 00:55:54 +00:00
explorer 2ff0386692 allow comments in chat scripts. pr misc/2450 1996-08-10 23:57:22 +00:00
explorer 22018a843b Reference the new sl(4) page 1996-08-10 21:26:42 +00:00
explorer 75f3d0f63c Reference the new ppp(4) page 1996-08-10 21:25:45 +00:00
explorer aa3ab1608c demand.c: fixed a very minor problem where the top of the file claimed
to be auth.c.  pr bin/2539
main.c:  don't try to delete pid file "", since that will end up being
	a directory.  pr bin/2388 and bin/2551
1996-08-10 20:39:35 +00:00
explorer 66917416dd Fix printing over non-root-exported NFS at least.
The problem here is setuid(euid) is used far too much.  Since I removed
many of these calls, and added no new ones, I do not think this weakens
security.  In fact, it quite likely improves it quite a bit, since
access() is called as the real userid, and the file is opened for printing
as the real userid rather than the (setuid-root) effective one.
1996-08-10 20:09:19 +00:00
thorpej 7026126974 Alter the ypservers rule a bit to always make sure that this map
exists.
1996-08-09 21:04:32 +00:00
thorpej e20d4be867 Add a rule for the `ypservers' map (the map containing a list of
slaves for the YP domain).  This map is not built by default, but the
rule exists to make adding slave servers a bit easier.
1996-08-09 20:58:36 +00:00
thorpej 5bf41ee467 Error out if we can't determine the YP domain name to be used for
the RPC.
1996-08-09 20:24:34 +00:00
thorpej 34ca0ef5c8 Use the key, not the val from the datum when reading the `ypservers'
map.  SunOS ypservers maps place the host name in the key and the val,
but HP-UX and NetBSD ypservers maps place the hostname only in the
key, leaving the val empty.  Since there is no clear standard for this map,
best to play it safe.
1996-08-09 20:18:50 +00:00
thorpej 5c49628ed7 Remove hard-coded a /var/yp. 1996-08-09 15:16:30 +00:00
thorpej 012dde15fd Install the Makefiles with mode 0644, not ${BINMODE} 1996-08-09 15:11:47 +00:00
thorpej 236743c464 Make this script a little more sane. 1996-08-09 15:09:04 +00:00
thorpej eabc5cbaf3 Build rpc.yppasswdd and the ypserv suite. 1996-08-09 10:24:00 +00:00
thorpej d3e1a3664e An rpc.yppasswdd implmentation by Mats O Jansson, with some minor
cleanup and a race condition fix by me.
1996-08-09 10:19:48 +00:00
thorpej 60aa689c94 A ypserv implementation, originally written by Mats O Jansson, with
some changes by me, including misc. cleanup, minor bug fixes, and
brand-new access control list code.
1996-08-09 10:14:49 +00:00
ws 35a18894f5 xdr_bool wants a bool_t (which happens to be an int32_t on our port)
and not a char
1996-07-25 18:53:43 +00:00
explorer 86cec79d01 Document the new autonice sysctls 1996-07-17 21:38:46 +00:00