]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoChange brk's prototype from char *brk(const char *) to int brk(const void *)
dwmalone [Thu, 24 Jan 2002 12:11:31 +0000 (12:11 +0000)]
Change brk's prototype from char *brk(const char *) to int brk(const void *)
and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t).

This makes us more consistant with NetBSD and standards which include
these functions. Bruce pointed out that ptrdiff_t would probably
have been better than intptr_t, but this doesn't match other
implimentations.

Also remove local declarations of sbrk and unnecessary casting.

PR: 32296
Tested by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 1 month

22 years agoProviding long filename support on the Macintosh requires over 30
murray [Thu, 24 Jan 2002 10:44:16 +0000 (10:44 +0000)]
Providing long filename support on the Macintosh requires over 30
megabytes of additional space on the install CD.  Given our premium
for space, I don't think this is a wise use of 30MB.  HFS support was
not provided on the FreeBSD 4.4 CDs and I received a grand total of 0
complaints.

22 years agoAdd a PAM module that records sessions in utmp/wtmp/lastlog.
des [Thu, 24 Jan 2002 09:45:17 +0000 (09:45 +0000)]
Add a PAM module that records sessions in utmp/wtmp/lastlog.

Sponsored by: DARPA, NAI Labs

22 years agoFix some pastos. Rather shoddy of me...
des [Thu, 24 Jan 2002 09:44:22 +0000 (09:44 +0000)]
Fix some pastos.  Rather shoddy of me...

Sponsored by: DARPA, NAI Labs

22 years agoAdd libfetch.so.2 from a 10-Dec-2001 releng4 build.
obrien [Thu, 24 Jan 2002 00:54:44 +0000 (00:54 +0000)]
Add libfetch.so.2 from a 10-Dec-2001 releng4 build.

22 years agoMFen (1.265 --> 1.266).
kuriyama [Thu, 24 Jan 2002 00:27:53 +0000 (00:27 +0000)]
MFen (1.265 --> 1.266).

22 years agoDetect if a udp socket on STDIN_FILENO is connected by calling
brian [Wed, 23 Jan 2002 23:36:35 +0000 (23:36 +0000)]
Detect if a udp socket on STDIN_FILENO is connected by calling
getpeername() and don't set PASSIVE mode if it's is.

22 years agoRegenerated file from previous commit to syscalls.master
gallatin [Wed, 23 Jan 2002 22:47:47 +0000 (22:47 +0000)]
Regenerated file from previous commit to syscalls.master

22 years agoLinux/alpha uses the same BSDish return mechanism we do for
gallatin [Wed, 23 Jan 2002 22:46:14 +0000 (22:46 +0000)]
Linux/alpha uses the same BSDish return mechanism we do for
getpid, getuid, getgid and pipe, since they bootstrapped from
OSF/1 and never cleaned up.  Switch to the native syscalls
on alpha so that the above functions work

MFC after: 7 days

22 years agoCross reference the NETWORK ADDRESS TRANSLATION section when describing
brian [Wed, 23 Jan 2002 21:11:33 +0000 (21:11 +0000)]
Cross reference the NETWORK ADDRESS TRANSLATION section when describing
the -nat flag.

Requested by: eivind

22 years agoNew release note: smmsp/mailnull users.
bmah [Wed, 23 Jan 2002 18:49:43 +0000 (18:49 +0000)]
New release note:  smmsp/mailnull users.

Reviewed by: gshapiro

22 years agoAdd a PAM module that provides an account management component for checking
des [Wed, 23 Jan 2002 17:42:16 +0000 (17:42 +0000)]
Add a PAM module that provides an account management component for checking
either PAM_RHOST or PAM_TTY against /etc/login.access.o

This uncovers a problem with PAM_RHOST, in that if we always set it, there
is no way to distinguish between a user logging in locally and a user
logging in using 'ssh localhost'.  This will be fixed by first making sure
that all PAM modules can handle PAM_RHOST being unset (which is currently
not the case), and then modifying su(1) and login(1) to not set it for
local logins.

Sponsored by: DARPA, NAI Labs

22 years agoAdd an AUTHORS section crediting ThinkSec, DARPA and NAI Labs.
des [Wed, 23 Jan 2002 17:16:00 +0000 (17:16 +0000)]
Add an AUTHORS section crediting ThinkSec, DARPA and NAI Labs.

Sponsored by: DARPA, NAI Labs

22 years agoAdd pam_ssh support to the static PAM library, libpam.a:
ru [Wed, 23 Jan 2002 15:54:17 +0000 (15:54 +0000)]
Add pam_ssh support to the static PAM library, libpam.a:

- Spam /usr/lib some more by making libssh a standard library.
- Tweak ${LIBPAM} and ${MINUSLPAM}.
- Garbage collect unused libssh_pic.a.
- Add fake -lz dependency to secure/ makefiles needed for
  dynamic linkage with -lssh.

Reviewed by: des, markm
Approved by: markm

22 years agoBase the comparison on UIDs, not on user names.
des [Wed, 23 Jan 2002 15:16:01 +0000 (15:16 +0000)]
Base the comparison on UIDs, not on user names.

Sponsored by: DARPA, NAI Labs

22 years agoMake libssh.so useable (undefined reference to IPv4or6).
ru [Wed, 23 Jan 2002 15:06:47 +0000 (15:06 +0000)]
Make libssh.so useable (undefined reference to IPv4or6).

Reviewed by: des, markm
Approved by: markm

22 years agodhclient-script.conf lives in /etc and not /sbin.
keramida [Wed, 23 Jan 2002 13:56:41 +0000 (13:56 +0000)]
dhclient-script.conf lives in /etc and not /sbin.

PR: docs/32008
Submitted by: John E Hein <jhein@timing.com>
Approved by: obrien

22 years agoAdd local/share/java/classes, local/share/sgml, local/share/xml
des [Wed, 23 Jan 2002 13:02:16 +0000 (13:02 +0000)]
Add local/share/java/classes, local/share/sgml, local/share/xml

Approved by: ru, silence on -ports
MFC after: 1 week

22 years agoThe sixth argument to the NET_RT_IFLIST sysctl is actually 0 for
ru [Wed, 23 Jan 2002 12:48:08 +0000 (12:48 +0000)]
The sixth argument to the NET_RT_IFLIST sysctl is actually 0 for
all interfaces, and ifnet.if_index value for a single interface.

22 years agoCG hard sentence breaks.
sobomax [Wed, 23 Jan 2002 09:35:55 +0000 (09:35 +0000)]
CG hard sentence breaks.

Submitted by: ru

22 years agoin fget() return EINVAL when the descriptor requested is negative.
alfred [Wed, 23 Jan 2002 08:40:35 +0000 (08:40 +0000)]
in fget() return EINVAL when the descriptor requested is negative.

22 years agoRemove holdfp() prototype now that the function no longer exists
alfred [Wed, 23 Jan 2002 08:28:55 +0000 (08:28 +0000)]
Remove holdfp() prototype now that the function no longer exists

22 years agoforced commit, Previous revision also removed the holdfp() function
alfred [Wed, 23 Jan 2002 08:28:15 +0000 (08:28 +0000)]
forced commit, Previous revision also removed the holdfp() function
from the kernel.

22 years agomake pread use fget_read instead of holdfp.
alfred [Wed, 23 Jan 2002 08:22:59 +0000 (08:22 +0000)]
make pread use fget_read instead of holdfp.

22 years agoRoll to latest production level firmware.
mjacob [Wed, 23 Jan 2002 06:42:54 +0000 (06:42 +0000)]
Roll to latest production level firmware.

MFC after: 1 day

22 years agoimprove sndstat output of feederchains so it can be understood without
cg [Wed, 23 Jan 2002 06:02:15 +0000 (06:02 +0000)]
improve sndstat output of feederchains so it can be understood without
reading the feeder sourcecode

22 years agoprint warnings if a pcm*.buffersize hint is out of range or a non-power-of-2
cg [Wed, 23 Jan 2002 05:49:41 +0000 (05:49 +0000)]
print warnings if a pcm*.buffersize hint is out of range or a non-power-of-2

22 years agofix some comments accidentally hit by search/replace several revisions ago
cg [Wed, 23 Jan 2002 05:41:35 +0000 (05:41 +0000)]
fix some comments accidentally hit by search/replace several revisions ago

22 years agoset the speeds the right way round for recording using the rate feeder
cg [Wed, 23 Jan 2002 05:35:12 +0000 (05:35 +0000)]
set the speeds the right way round for recording using the rate feeder

22 years agoadd more error checking in chn_init() and chn_reset()
cg [Wed, 23 Jan 2002 05:21:27 +0000 (05:21 +0000)]
add more error checking in chn_init() and chn_reset()

22 years agomake the feederchain builder work for recording. this has not been tested
cg [Wed, 23 Jan 2002 05:10:56 +0000 (05:10 +0000)]
make the feederchain builder work for recording.  this has not been tested
extensively as none of my testboxes have speakers or an audio source at
present, but the chains built look correct and reading /dev/audio (ulaw,
translated from signed 16 bit little-endian) gives values within the
expected range for silence.

22 years agodon't bother checking if an unsigned parameter is less than 0 in a KASSERT
cg [Wed, 23 Jan 2002 04:50:51 +0000 (04:50 +0000)]
don't bother checking if an unsigned parameter is less than 0 in a KASSERT

22 years agoadd more error checking to open of /dev/dsp* and /dev/audio* - if the
cg [Wed, 23 Jan 2002 04:44:03 +0000 (04:44 +0000)]
add more error checking to open of /dev/dsp* and /dev/audio* - if the
default format for the chosen subdevice cannot be obtained return an error
instead of returning success with an indeteterminate format selected.

note that this should never happen once the feederchain builder works for
recording.

22 years agodon't allow mmap beyond the end of the buffer
cg [Wed, 23 Jan 2002 04:32:18 +0000 (04:32 +0000)]
don't allow mmap beyond the end of the buffer

Submitted by: Philippe Anel <philippe.anel@noos.fr> (partially)

22 years agoremove modules no longer built
cg [Wed, 23 Jan 2002 03:43:16 +0000 (03:43 +0000)]
remove modules no longer built

22 years agoconsolidate bits that don't need to be seperate modules into the modules
cg [Wed, 23 Jan 2002 03:32:36 +0000 (03:32 +0000)]
consolidate bits that don't need to be seperate modules into the modules
that want them

22 years agoAdd a stub for softdep_request_cleanup() so that compilation without
mckusick [Wed, 23 Jan 2002 02:18:56 +0000 (02:18 +0000)]
Add a stub for softdep_request_cleanup() so that compilation without
SOFTUPDATES option works properly.

Submitted by: Benno Rice <benno@jeamland.net>

22 years agoAdd missing destroy_dev().
wes [Wed, 23 Jan 2002 01:11:52 +0000 (01:11 +0000)]
Add missing destroy_dev().

Submitted by: Maxime Henrion <mux@sneakerz.org>
Reviewed by: msmith@
MFC after: 3 weeks

22 years agoMFen (1.264 --> 1.265).
kuriyama [Wed, 23 Jan 2002 00:46:49 +0000 (00:46 +0000)]
MFen (1.264 --> 1.265).
Refine translation (by y-koga@jp).

22 years agoUndo the work-around for the sendfile bug where nbytes needed the hdr/trl
dg [Tue, 22 Jan 2002 23:35:09 +0000 (23:35 +0000)]
Undo the work-around for the sendfile bug where nbytes needed the hdr/trl
size added to it in order for it to work properly when nbytes != 0.

Reviewed by: alfred
MFC after: 3 days

22 years agoThe mode of files created by ctm_rmail was always 0600, even if the
iedowse [Tue, 22 Jan 2002 22:54:52 +0000 (22:54 +0000)]
The mode of files created by ctm_rmail was always 0600, even if the
umask was less restrictive. This was caused by the use of mkstemp()
which internally passes a mode of 0600 to open(). Fix this by
explicitly chmod'ing the files to (0666 & ~umask).

PR: bin/16119
Submitted by: Sascha Blank <blank@uni-trier.de>

22 years agoAdd ngctl "write" command.
archie [Tue, 22 Jan 2002 22:01:25 +0000 (22:01 +0000)]
Add ngctl "write" command.

MFC after: 1 week

22 years agoRemove bogus _POSIX_ACL_PATH_MAX definition.
green [Tue, 22 Jan 2002 21:33:12 +0000 (21:33 +0000)]
Remove bogus _POSIX_ACL_PATH_MAX definition.

22 years agoFix a typo and fix indenting for struct sockaddr to match other structs.
schweikh [Tue, 22 Jan 2002 21:26:15 +0000 (21:26 +0000)]
Fix a typo and fix indenting for struct sockaddr to match other structs.
No content changes.
MFC after: 3 weeks

22 years agoDon't use `you'.
sobomax [Tue, 22 Jan 2002 21:11:18 +0000 (21:11 +0000)]
Don't use `you'.

Submitted by: ru

22 years agoRestore C99 standard conformance information, isblank() _is_ in final
ache [Tue, 22 Jan 2002 20:14:35 +0000 (20:14 +0000)]
Restore C99 standard conformance information, isblank() _is_ in final
standard document

Pointed by: "Jacques A. Vidrine" <n@nectar.cc>

22 years agoShow arguments of command line options
charnier [Tue, 22 Jan 2002 19:49:48 +0000 (19:49 +0000)]
Show arguments of command line options
Reviewed by: ru

22 years agoThe ENDPTS_EQ macro was comparing the one of the fports to itself. Fix.
jlemon [Tue, 22 Jan 2002 17:54:28 +0000 (17:54 +0000)]
The ENDPTS_EQ macro was comparing the one of the fports to itself.  Fix.

Submitted by: emy@boostworks.com

22 years agoInitialize the sysctl_ctx list early, which avoids a panic in case other
jlemon [Tue, 22 Jan 2002 17:51:44 +0000 (17:51 +0000)]
Initialize the sysctl_ctx list early, which avoids a panic in case other
allocatiosn fail and fxp_release() is called.

22 years agoNull commit - the previous log message should have read:
dg [Tue, 22 Jan 2002 17:38:58 +0000 (17:38 +0000)]
Null commit -  the previous log message should have read:

  Fixed bug in calculation of amount of file sent when nbytes !=0 and
  headers or trailers are supplied. Reported by Vladislav Shabanov
  <vs@rambler-co.ru>.

22 years agoUse the proper type (gid_t) for (group)->gr_gid to be orthogonal
markm [Tue, 22 Jan 2002 17:32:53 +0000 (17:32 +0000)]
Use the proper type (gid_t) for (group)->gr_gid to be orthogonal
with uid_t usage and (user)->pw_uid.

PR: 3242

22 years agoFixed bug in calculation of amount of file to send when nbytes !=0 and
dg [Tue, 22 Jan 2002 17:32:10 +0000 (17:32 +0000)]
Fixed bug in calculation of amount of file to send when nbytes !=0 and
headers or trailers are supplied. Reported by Vladislav Shabanov
<vs@rambler-co.ru>.

PR: 33771
Submitted by: Maxim Konovalov <maxim@macomnet.ru>
MFC after: 3 days

22 years agoDo not taint ::/124 for localhost reverse table.
ume [Tue, 22 Jan 2002 17:22:41 +0000 (17:22 +0000)]
Do not taint ::/124 for localhost reverse table.

22 years agoReincarnate SETUID code in man(1), not compiled in by default.
ru [Tue, 22 Jan 2002 15:15:38 +0000 (15:15 +0000)]
Reincarnate SETUID code in man(1), not compiled in by default.

The code will be fixed for all known security vulnerabilities,
and a make.conf(5) knob (ENABLE_SUID_MAN) will be provided for
those who still want it installed setuid for whatever reasons.

22 years agoRevert revision 1.57 -- ache@ axed /var/spool/uucp in BSD.var.dist,v 1.55.
ru [Tue, 22 Jan 2002 14:55:25 +0000 (14:55 +0000)]
Revert revision 1.57 -- ache@ axed /var/spool/uucp in BSD.var.dist,v 1.55.

22 years agoFix the description of the O_NONBLOCK flag to match reality.
ru [Tue, 22 Jan 2002 14:18:55 +0000 (14:18 +0000)]
Fix the description of the O_NONBLOCK flag to match reality.

Prodded by: Maxim Konovalov <maxim@macomnet.ru>
Obtained from: BSD/OS

22 years agoFix a typo I made in revision 1.5.
ru [Tue, 22 Jan 2002 12:38:43 +0000 (12:38 +0000)]
Fix a typo I made in revision 1.5.

Submitted by: trevor

22 years agoIn certain cases sbuf_printf() and sbuf_vprintf() could mistakely
phk [Tue, 22 Jan 2002 11:22:55 +0000 (11:22 +0000)]
In certain cases sbuf_printf() and sbuf_vprintf() could mistakely
make extendable sbufs as overflowed.

Approved by: des

22 years agoMention that a minimal version of camcontrol(8) is now available in the
joerg [Tue, 22 Jan 2002 11:13:43 +0000 (11:13 +0000)]
Mention that a minimal version of camcontrol(8) is now available in the
installation environment (currently only for i386 releases).

22 years agoTiny style change. Whitespace only change.
keramida [Tue, 22 Jan 2002 10:44:40 +0000 (10:44 +0000)]
Tiny style change.  Whitespace only change.
Use tab after #define ENOTSUP.

Reviewed by: mike

22 years agoFinish cleanup in chroot.c CSRG revision 5.6 by Keith Bostic
ru [Tue, 22 Jan 2002 10:44:02 +0000 (10:44 +0000)]
Finish cleanup in chroot.c CSRG revision 5.6 by Keith Bostic
(never installed setuid, so don't need to reset the uid).

PR: bin/34159

22 years agoFinish cleanup in kvm.c revisions 1.10 and 1.11 -- mark sf (swapfile)
ru [Tue, 22 Jan 2002 10:07:03 +0000 (10:07 +0000)]
Finish cleanup in kvm.c revisions 1.10 and 1.11 -- mark sf (swapfile)
argument to kvm_open() and kvm_openfiles() as unused.

BSD didn't read swap since kvm.c CSRG revision 5.21 (u-area is pageable
under new VM.  no need to read from swap.)

The old !NEWVM code was removed in CSRG revision 5.23 (~ten years ago).

22 years agoThis patch fixes a long standing complaint with soft updates in
mckusick [Tue, 22 Jan 2002 06:17:22 +0000 (06:17 +0000)]
This patch fixes a long standing complaint with soft updates in
which small and/or nearly full filesystems would fail with `file
system full' messages when trying to replace a number of existing
files (for example during a system installation). When the allocation
routines are about to fail with a file system full condition, they
make a call to softdep_request_cleanup() which attempts to accelerate
the flushing of pending deletion requests in an effort to free up
space. In the face of filesystem I/O requests that exceed the
available disk transfer capacity, the cleanup request could take
an unbounded amount of time. Thus, the softdep_request_cleanup()
routine will only try for tickdelay seconds (default 2 seconds)
before giving up and returning a filesystem full error. Under typical
conditions, the softdep_request_cleanup() routine is able to free
up space in under fifty milliseconds.

22 years agoMFen (1.263 --> 1.264).
kuriyama [Tue, 22 Jan 2002 06:04:46 +0000 (06:04 +0000)]
MFen (1.263 --> 1.264).
Fix typo.

22 years agohw.physmem is more properly a loader tunable, not an environment
bmah [Tue, 22 Jan 2002 05:21:21 +0000 (05:21 +0000)]
hw.physmem is more properly a loader tunable, not an environment
variable (which is ambiguous).

Submitted by: dwhite

22 years agoo Remove the -V [version number] option, since our version of at(1) no
mike [Tue, 22 Jan 2002 03:04:15 +0000 (03:04 +0000)]
o Remove the -V [version number] option, since our version of at(1) no
  longer resembles the original.
o Remove references to `you' in the manual.

Submitted by: Joe Halpin <joe.halpin@attbi.com>

22 years agoDon't read the sigcontext pointer directly from userspace. If the process
gallatin [Tue, 22 Jan 2002 02:40:39 +0000 (02:40 +0000)]
Don't read the sigcontext pointer directly from userspace.  If the process
is swapped out, this can cause a system panic.  Copy it in, instead

tested by: Bernd Walter <ticso@cicely8.cicely.de>

22 years agoList bit 18 (reserved, apparently present on thunderbird cpus)
peter [Tue, 22 Jan 2002 01:28:32 +0000 (01:28 +0000)]
List bit 18 (reserved, apparently present on thunderbird cpus)
and bit 19 (athlon XP/MP rev 0x662 and later) for amd_features.

Submitted by:  dwcjr

22 years agoThe idea of mapping non-existen characters to space (0x20) was nice alone,
ache [Mon, 21 Jan 2002 21:52:02 +0000 (21:52 +0000)]
The idea of mapping non-existen characters to space (0x20) was nice alone,
but those maps also used as backward maps for Paste, so space becomes mapped
to last non-existen character on Paste as result.

Fix it by mapping non-existen characters to another non-existen one, i.e. to
0x00, so unused 0x00 can be backward-mapped to some junk without real harm.

Pointed by: Alexander Kabaev <ak03@gte.com>

22 years agoGah! last commit botched indentation, fix indentation and some other
phk [Mon, 21 Jan 2002 20:57:03 +0000 (20:57 +0000)]
Gah! last commit botched indentation, fix indentation and some other
white-space nits while at it.

22 years agoRestructure slightly, eliminating some repetitive source lines and
phk [Mon, 21 Jan 2002 20:50:06 +0000 (20:50 +0000)]
Restructure slightly, eliminating some repetitive source lines and
making GEOM patches simpler and more readable at the same time.

22 years agoLink pam_opieaccess, pam_self and pam_ssh into the static library.
des [Mon, 21 Jan 2002 20:43:01 +0000 (20:43 +0000)]
Link pam_opieaccess, pam_self and pam_ssh into the static library.

Sponsored by: DARPA, NAI Labs

22 years agoAdd the necessary dependencies and linker flags for linking with a
des [Mon, 21 Jan 2002 20:42:25 +0000 (20:42 +0000)]
Add the necessary dependencies and linker flags for linking with a
static PAM library that includes pam_ssh.

Sponsored by: DARPA, NAI Labs

22 years agoCorrect typos and macro usage.
roberto [Mon, 21 Jan 2002 20:12:02 +0000 (20:12 +0000)]
Correct typos and macro usage.

PR: 33179, 33181, 33295
Submitted by: Norihiro Kumagai <kumagai@attbi.com>
Reviewed by: sheldonh (MAINTAINER)
MFC after: 2 days

22 years ago- Check the address family of the destination cached in a PCB.
ume [Mon, 21 Jan 2002 20:04:22 +0000 (20:04 +0000)]
- Check the address family of the destination cached in a PCB.
- Clear the cached destination before getting another cached route.
  Otherwise, garbage in the padding space (which might be filled in if it was
  used for IPv4) could annoy rtalloc.

Obtained from: KAME

22 years ago- Check the address family of a cached destination, in case of
ume [Mon, 21 Jan 2002 20:02:36 +0000 (20:02 +0000)]
- Check the address family of a cached destination, in case of
  sharing the cache with IPv4.
- Check if the cached route is up in in6_selectsrc().

Obtained from: KAME

22 years agoRemove my workaround fallback since PAM now do it properly.
ache [Mon, 21 Jan 2002 19:07:15 +0000 (19:07 +0000)]
Remove my workaround fallback since PAM now do it properly.

22 years agoOn second thought, getpwnam() failure should be treated just as if the user
des [Mon, 21 Jan 2002 19:05:45 +0000 (19:05 +0000)]
On second thought, getpwnam() failure should be treated just as if the user
existed, but had no OPIE key, i.e. PAM_IGNORE.

Pointed out by: ache
Sponsored by: DARPA, NAI Labs

22 years agoReturn PAM_SERVICE_ERR rather than PAM_USER_UNKNOWN if getpwnam() fails, as
des [Mon, 21 Jan 2002 18:53:03 +0000 (18:53 +0000)]
Return PAM_SERVICE_ERR rather than PAM_USER_UNKNOWN if getpwnam() fails, as
PAM_USER_UNKNOWN will break the chain, revealing to an attacker that the
user does not exist.

Sponsored by: DARPA, NAI Labs

22 years agoEnable OPIE by default, using the no_fake_prompts option to hide it from
des [Mon, 21 Jan 2002 18:51:24 +0000 (18:51 +0000)]
Enable OPIE by default, using the no_fake_prompts option to hide it from
users who don't wish to use it.  If the admin is worried about leaking
information about which users exist and which have OPIE enabled, the
no_fake_prompts option can simply be removed.

Also insert the appropriate pam_opieaccess lines after pam_opie to break
the chain in case the user is logging in from an untrusted host, or has a
.opiealways file.  The entire opieaccess / opiealways concept is slightly
unpammish, but admins familiar with OPIE will expect it to work.

Reviewed by: ache, markm
Sponsored by: DARPA, NAI Labs

22 years agoFurther changes to allow enabling pam_opie(8) by default:
des [Mon, 21 Jan 2002 18:46:25 +0000 (18:46 +0000)]
Further changes to allow enabling pam_opie(8) by default:

 - Ignore the {try,use}_first_pass options by clearing PAM_AUTHTOK before
   challenging the user.  These options are meaningless for pam_opie(8)
   since the user can't possibly know the right response before she sees
   the challenge.

 - Introduce the no_fake_prompts option.  If this option is set, pam_opie(8)
   will fail - rather than present a bogus challenge - if the target user
   does not have an OPIE key.  With this option, users who haven't set up
   OPIE won't have to wonder what that "weird otp-md5 s**t" means :)

Reviewed by: ache, markm
Sponsored by: DARPA, NAI Labs

22 years agoWhen running on a local terminal, set PAM_RHOST to the local hostname.
des [Mon, 21 Jan 2002 16:19:38 +0000 (16:19 +0000)]
When running on a local terminal, set PAM_RHOST to the local hostname.

Sponsored by: DARPA, NAI Labs

22 years agoRFC1122 requires that addresses of the form { 127, <any> } MUST NOT
ru [Mon, 21 Jan 2002 13:59:42 +0000 (13:59 +0000)]
RFC1122 requires that addresses of the form { 127, <any> } MUST NOT
appear outside a host.

PR: 30792, 33996
Obtained from: ip_input.c
MFC after: 1 week

22 years agoAdd a new module, pam_opieaccess(8), which is responsible for checking
des [Mon, 21 Jan 2002 13:43:53 +0000 (13:43 +0000)]
Add a new module, pam_opieaccess(8), which is responsible for checking
/etc/opieaccess and ~/.opiealways so we can decide what to do after
pam_opie(8) fails.

Sponsored by: DARPA, NAI Labs
Reviewed by: ache, markm

22 years agoIspell sweep of share/man/man4/man4.i386.
mpp [Mon, 21 Jan 2002 12:36:12 +0000 (12:36 +0000)]
Ispell sweep of share/man/man4/man4.i386.

22 years agoIspell sweep of share/man/man4.
mpp [Mon, 21 Jan 2002 12:09:13 +0000 (12:09 +0000)]
Ispell sweep of share/man/man4.

22 years agoFix a typo in a comment field.
mpp [Mon, 21 Jan 2002 11:10:32 +0000 (11:10 +0000)]
Fix a typo in a comment field.

22 years agoFix spelling errors.
mpp [Mon, 21 Jan 2002 10:28:18 +0000 (10:28 +0000)]
Fix spelling errors.

22 years agoMerge from NetBSD:
joe [Mon, 21 Jan 2002 05:02:21 +0000 (05:02 +0000)]
Merge from NetBSD:

    ohci.c: -r1.69 to 1.71
    ohcireg.h: -r1.14

Some of these deltas are based upon patches that we submitted back to
NetBSD.  They got manifested slightly differently though, so I've brought
back those differences to bring our code bases closer together.

The logs from the NetBSD version of ohci.c:

revision 1.71
date: 2000/02/01 05:42:52;  author: augustss;  state: Exp;  lines: +13 -2
Put some #ifdefs around power and shutdown hooks.
----------------------------
revision 1.70
date: 2000/01/31 22:35:13;  author: augustss;  state: Exp;  lines: +7 -7
Rename TAILMASK to HEADMASK, since it really masks the head pointer.
From FreeBSD.
----------------------------
revision 1.69
date: 2000/01/31 22:09:13;  author: augustss;  state: Exp;  lines: +18 -14
Change where the has table for physical-to-virtual address translation
is handled.  Partly from FreeBSD.

22 years agoMerge from NetBSD:
joe [Mon, 21 Jan 2002 04:24:33 +0000 (04:24 +0000)]
Merge from NetBSD:

    ohci.c: -r1.68
    ohcireg.h: -r1.13

date: 2000/01/31 20:17:25;  author: augustss;  state: Exp;
Fiddle with over-current protect when turning on port power to make
things work for some OHCI controllers.

22 years agoMerge from NetBSD:
joe [Mon, 21 Jan 2002 04:15:39 +0000 (04:15 +0000)]
Merge from NetBSD:

revision 1.65
date: 2000/01/25 12:06:21;  author: augustss;  state: Exp;  lines: +10 -2
Add done method for root control transfers.

22 years agoMerge from NetBSD:
joe [Mon, 21 Jan 2002 03:44:00 +0000 (03:44 +0000)]
Merge from NetBSD:

revision 1.84
date: 2000/01/28 00:44:27;  author: augustss;  state: Exp;  lines: +9 -2
Add uhci_root_ctrl_done() method.

22 years agoMerge from NetBSD:
joe [Mon, 21 Jan 2002 03:35:55 +0000 (03:35 +0000)]
Merge from NetBSD:

    uhci.c: -r1.82
    uhcivar.h: -r1.22

date: 2000/01/26 10:04:39;  author: augustss;  state: Exp;
Try to avoid accessing the HC if it is dead.  Suggested by mycroft.

22 years agoAllow dump device be configured as early as possible using loader(8) tunable.
sobomax [Mon, 21 Jan 2002 01:16:11 +0000 (01:16 +0000)]
Allow dump device be configured as early as possible using loader(8) tunable.
This allows obtaining crash dumps from the panics occured during late stages
of kernel initialisation before system enters into single-user mode.

MFC after: 2 weeks

22 years agoAdd support for Linksys WDT11 PCI adaptors.
brooks [Mon, 21 Jan 2002 00:59:59 +0000 (00:59 +0000)]
Add support for Linksys WDT11 PCI adaptors.

Submitted by: Eric Liedtke <eliedtke@apogeetelecom.com>

22 years agoRemove some unused code, in line with NetBSD's version.
joe [Sun, 20 Jan 2002 23:56:46 +0000 (23:56 +0000)]
Remove some unused code, in line with NetBSD's version.

22 years agoMerge from NetBSD:
joe [Sun, 20 Jan 2002 23:48:43 +0000 (23:48 +0000)]
Merge from NetBSD:

revision 1.125
date: 2000/09/23 21:00:10;  author: augustss;  state: Exp;  lines: +19 -3
Avoid "bandwidth reclamation" for control transfers.  The kue device chokes
on it.

22 years agoMerge from NetBSD:
joe [Sun, 20 Jan 2002 23:38:33 +0000 (23:38 +0000)]
Merge from NetBSD:

    uhci.c: -r1.124
    uhcireg.h: -r1.13

date: 2000/08/13 18:20:14;  author: augustss;  state: Exp;
Fix race condition when unlinking xfers.  Thanks to IWAMOTO Toshihiro
<iwamoto@sat.t.u-tokyo.ac.jp> for analyzing the problem and suggesting a fix.
Fixes PR 10662.

22 years agoMFS 1.536.2.52 (partial) and 1.536.2.70: kgzip loader if i386 (only).
matusita [Sun, 20 Jan 2002 23:17:52 +0000 (23:17 +0000)]
MFS 1.536.2.52 (partial) and 1.536.2.70: kgzip loader if i386 (only).

5.0-CURRENT-20020121-JPSNAP was failed to build since kern.flp has no
space.  There is already a hack to kgzip loader, and it makes:

-r-xr-xr-x  1 root  wheel  163840 Jan 21 07:40 loader*
-r-xr-xr-x  1 root  wheel   90121 Jan 21 08:06 loader.kgz*

73719 bytes of free spaces to us.

22 years agouse mutex pools for "struct file" locking.
alfred [Sun, 20 Jan 2002 22:58:08 +0000 (22:58 +0000)]
use mutex pools for "struct file" locking.
fix indentation of FILE_LOCK/UNLOCK macros while I'm here.