cjc [Mon, 18 Mar 2002 12:55:28 +0000 (12:55 +0000)]
Fix world breakage introduced by my recent modifications to
chpass(8). The relations between libc, libpam, chpass, passwd, and
vipw are a mess and probably should be cleaned up.
alc [Mon, 18 Mar 2002 07:59:57 +0000 (07:59 +0000)]
Eliminate grow_stack() from (o)sendsig(). If the stack needs to grow,
copyout() will page fault and perform grow_stack() from trap_pfault().
These calls to grow_stack() accomplish nothing.
arr [Mon, 18 Mar 2002 07:45:30 +0000 (07:45 +0000)]
- Lock down the ``module'' structure by adding an SX lock that is used by
all the global bits of ``module'' data. This commit adds a few generic
macros, MOD_SLOCK, MOD_XLOCK, etc., that are meant to be used as ways
of accessing the SX lock. It is also the first step in helping to lock
down the kernel linker and module systems.
imp [Mon, 18 Mar 2002 07:39:27 +0000 (07:39 +0000)]
__MAKE_CONF?=/etc/make.conf
Use this where we are now using /etc/make.conf.
This allows people to override the current default of always including
/etc/make.conf. Setting __MAKE_CONF to /dev/null disables it
completely, while setting it to something else allows one to override
what is on the system. This can be desirable in situations where a
machine has many users and some of them want different defaults, or
defaults appropriate to cross building to be different than those for
normal building.
imp [Mon, 18 Mar 2002 07:23:41 +0000 (07:23 +0000)]
o remove __P
o Use ansi function definitions
o MAXPATHLEN already has the NUL at the end, so no need to add 1 (note that
MAXNAMLEN doesn't, so the + 1 there is correct).
o remove register.
imp [Mon, 18 Mar 2002 07:14:59 +0000 (07:14 +0000)]
o MAXPATHLEN is the correct constant to use for path names, it includes
the NULL.
o use snprintf in preference to unchecked strcat in a couple of places that
likely can't overflow. Makes it easier to grep for strcpy :-)
mckusick [Mon, 18 Mar 2002 05:39:04 +0000 (05:39 +0000)]
Cannot release vnode underlying the nullfs vnode in null_inactive
as it leaves the nullfs vnode allocated, but with no identity. The
effect is that a null mount can slowly accumulate all the vnodes
in the system, reclaiming them only when it is unmounted. Thus
the null_inactive state instead accelerates the release of the
null vnode by calling vrecycle which will in turn call the
null_reclaim operator. The null_reclaim routine then does the
freeing actions previosuly (incorrectly) done in null_inactive.
bde [Mon, 18 Mar 2002 02:43:14 +0000 (02:43 +0000)]
Fixed some style bugs (mainly ones not fixed or made worse by rev.1.41).
Old code obfuscates long (but single-line) messages by printing them in
pieces using %s. Rev.1.41 obfuscated some new long messages using ISO
string concatenation. This commit only fixes the new obfuscations.
dd [Mon, 18 Mar 2002 02:36:43 +0000 (02:36 +0000)]
mdoc(7) police: bump document date to the date of the last interface
change (revision 1.2 of devname.c on 1999/07/18), don't put quotes
around a path, and use .Dv where appropriate.
dd [Mon, 18 Mar 2002 02:32:53 +0000 (02:32 +0000)]
Update to reflect reality; devname(3) hasn't returned NULL on failure
since revision 1.2 of devname.c (1999/07/18). While I'm here, note,
in the BUGS section, that the returned pointer is to a static buffer.
cjc [Mon, 18 Mar 2002 02:22:53 +0000 (02:22 +0000)]
It was possible for an unprivileged user to tie up the password
information (no one else can vipw(8), chpass(1), or even passwd(1)),
either on purpose or by accident, until an administrator manually
intervened. Instead, do not lock the master.passwd file while a user
is editing his information. But once we go to write the new
information, check that the modified user's information has not
changed in the password database since we started. Abort the changes
if it has.
cjc [Mon, 18 Mar 2002 00:55:23 +0000 (00:55 +0000)]
Add hooks for very basic IPFilter support in bridging. Set,
# sysctl net.link.ether.bdg_ipf=1
To enable. Just like ipfw(8) bridging, only input packets are filtered
in the bridge. Filtering works just like in the IP layer, ipf(8)
first, then ipfw(8). And just like in the IP layer, both are
independent, one need not be run to use the other. (Note: This will
not work in, but doesn't break, the bridge.ko module. The ipl.ko
module would need to be fixed before that is worth worrying about.)
benno [Sun, 17 Mar 2002 23:58:12 +0000 (23:58 +0000)]
Changes and fixes in preparation for UMA:
- Bootstrap pvo entries are now allocated by stealing pages.
- Just return if we're pmap_enter'ing a mapping that's already there. Don't
remove it and re-enter it.
phk [Sun, 17 Mar 2002 18:53:58 +0000 (18:53 +0000)]
Add the GEOM regression test framework.
This is a set of userland shims in which GEOM can be run through simple
tests.
The simulation of kernel synchronization primitives is very primitive
and consequently some times tests will fail because of races.
Data/ contains a number of files in XML format which describe the
key sectors for a number of disk images
This is a very handy tool for people developing GEOM methods. The
"simdisk" method can be told to read from a "real disk" and afterwards
dump the accessed sectors in XML format for further use.
I hope future method writes will see the benefit of this test
collection and add to it when they write methods for GEOM.
You will need ports/textproc/expat for the XML parser.
dwmalone [Sun, 17 Mar 2002 14:03:17 +0000 (14:03 +0000)]
Describe the format of the allow and deny files. This is more-or-less
the patch Matthew submitted, but I broke the lines in a more FreeBSD
way and made one small wording change.
PR: 31265
Submitted by: Matthew D. Fuller <fullermd@over-yonder.net>
MFC after: 3 weeks
- try to open the file
- prompt "Insert the disk labelled <whatever> and press any key..."
- try to open the file
- return error if file could not be located
RE team is free to use this feature in the upcoming 5.0-DP1.
markm [Sun, 17 Mar 2002 10:05:57 +0000 (10:05 +0000)]
Allow "make lint" to mostly work. Our sources are very unclean WRT
lint, so this is turned off by default. Setting WANT_LINT will turn
on generation of lint libraries for /usr/libdata/lint/*.ln.
hm [Sun, 17 Mar 2002 09:33:15 +0000 (09:33 +0000)]
Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD,
OpenBSD and BSD/OS and respective code, remove pre $FreeBSD CVS id's,
remove #if(def)s and respective code for FreeBSD versions < 5 .
murray [Sun, 17 Mar 2002 08:48:08 +0000 (08:48 +0000)]
Add a new entity for the previous stable release. For the most part,
the release notes compare 5.0-CURRENT to 4.0-RELEASE, but in at least
one place it is beneficial to mention the last stable release of
FreeBSD (4.5-RELEASE).
murray [Sun, 17 Mar 2002 08:04:02 +0000 (08:04 +0000)]
Add wireless devices to device_names array. Now that ifconfig can set
session IDs, and sysinstall can load modules from the MFSROOT, it
should be possible to install FreeBSD over a wireless link.
dougb [Sun, 17 Mar 2002 07:35:51 +0000 (07:35 +0000)]
Answer the question posed in 1.126. amd won't start without either a
conf file, or command line options. I brought this up in PR 12432,
which (ironically) obrien assigned to me after I became a committer. :)
murray [Sun, 17 Mar 2002 07:22:51 +0000 (07:22 +0000)]
* Document the 'floppies' target.
* Document the LOCAL_SCRIPT option.
* Document the NOPORTREADMES option.
* Be more specific in a comment.
* Be more specific about the ftp.1 and cdrom.1 targets.
* Clarify the usage of the CVSROOT variable.
* Clarify the usage of the NODOC variable.
alc [Sun, 17 Mar 2002 07:01:42 +0000 (07:01 +0000)]
Undo part of revision 1.57: Now that (o)sendsig() doesn't call useracc(),
the motivation for saving and restoring the map->hint in useracc() is gone.
(The same tests that motivated this change in revision 1.57 now show that
there is no performance loss from removing it.) This was really a hack and
some day we would have had to add new synchronization here on map->hint
to maintain it.
imp [Sun, 17 Mar 2002 05:05:42 +0000 (05:05 +0000)]
Add support for the home Wireless Network airway wireless pcmcia card.
I cannot find where I got these patches, but I think it was from the
bsd-nomads mailing list. Please contact me if you posted them there.
alc [Sun, 17 Mar 2002 04:21:19 +0000 (04:21 +0000)]
o Stop calling useracc() in (o)sendsig() now that we use copyout()
to copy the sigframe to the user's stack. Useracc() takes a non-trivial
amount of time. Eliminating it speeds up signal delivery by 15% or more.
o Update some comments.