Commit Graph

70263 Commits

Author SHA1 Message Date
julian
24b4ea7e20 Duplicate the changes to i386 to keep creds over the user boundary. 2002-02-19 03:16:50 +00:00
silby
e561ca6dce A few misc forkbomb defenses:
- Leave 10 processes for root-only use, the previous
  value of 1 was insufficient to run ps ax | more.
- Remove the printing of "proc: table full".  When the table
  really is full, this would flood the screen/logs, making
  the problem tougher to deal with.
- Force any process trying to fork beyond its user's maximum
  number of processes to sleep for .5 seconds before returning
  failure.  This turns 2000 rampaging fork monsters into 2000
  harmlessly snoozing fork monsters.

Reviewed by:	dillon, peter
MFC after:	1 week
2002-02-19 03:15:28 +00:00
gallatin
53507926a4 MFi386: merge changes from i386/trap.c rev 1.212
If the credential on an incoming thread is correct, don't bother
reaquiring it. In the same vein, don't bother dropping the thread cred
when going to userland. We are guaranteed to need it when we come back,
(which we are guaranteed to do).
2002-02-19 03:13:39 +00:00
julian
ffdde8ed99 Add stub syscalls and definitions for KSE calls.
"Book'em Danno"
2002-02-19 02:40:31 +00:00
jedgar
8cdc9fd108 Remove extraneous blank line 2002-02-19 02:36:35 +00:00
jedgar
8df81cb659 Use acl_dup() to duplicate an ACL instead of rolling our own 2002-02-19 02:36:15 +00:00
julian
6ebb003bcc Add 5 KSE syscalls. Two will be implemented with the next KSE
step and the others are reservations for coming code.
All will be stubbed in this kernel in the next commit.
This will allow people to easily make KSE binaries for userland testing
(the syscalls will be in libc) but they will still need a real KSE kernel
to test it. (libc looks in /sys to decide what it should add stubs for).
2002-02-19 02:19:36 +00:00
mike
10ca98b24d Add C++ support. 2002-02-19 02:17:16 +00:00
julian
520242dafe Add the first shot at minimum KSE interface definitions.
This is to allow people to start playing with userland code.
I will also add some stub syscalls in a minute.
2002-02-19 02:12:36 +00:00
joe
2b020857cc Merge from NetBSD:
* rev 1.47: Update a URL
* rev 1.56: Keep track of device speed for USB 2.0.
2002-02-19 02:00:27 +00:00
alfred
ff615f0a6d Add play (but not record) support for the Sis 7012.
Submitted by: Mike Meyer <mwm@mired.org>
2002-02-19 00:59:23 +00:00
imp
60cc340d82 Fixed divots that I created when I moved prototypes of group_from_gid
and user_from_uid to grp.h and pwd.h.  Update the man pages.

Submitted by: David Malone
Pointy hat to: imp
2002-02-19 00:05:59 +00:00
murray
8818100b0f Add emacs21 instead of emacs20 to the first CDROM.
Reviewed by:	    nobutaka (editors/emacs21 maintainer)
2002-02-18 23:04:03 +00:00
luigi
30e0214753 When the local link address is changed, send out gratuitous ARPs
to notify other nodes about the address change. Otherwise, they
might try and keep using the old address until their arp table
entry times out and the address is refreshed.

Maybe this ought to be done for INET6 addresses as well but i have
no idea how to do it. It should be pretty straightforward though.

MFC-after: 10 days
2002-02-18 22:50:13 +00:00
bmah
81d7bf4f70 Some release notes should have [MERGED] markers on them but didn't:
kern.msgbuf sysctl and dmesg(8) not SGID, umodem driver, uscanner
driver, fpa(4) works on alpha, arp(8) -s pub/only, TCP_COMPAT_42
removal, bktr(4) update to 2.18, snd module dependencies work,
chown(8) -R does the right thing with symlinks, killall(1) works
correctly with SUID root processes, strnstr(3)/strcasestr(3),
style.perl(7).

Remove some somewhat-lacking-in content release notes:  PCI subsystem
cleanup, netgraph(4) updates.

I don't mind reinstating the latter group of release notes, if there's
something less vague that can be said about them.
2002-02-18 22:27:35 +00:00
des
364e5bfeb6 Paranoia: if the process is setugid, set all sensitive files mode 0. 2002-02-18 21:41:11 +00:00
bmah
2a55b689ed Whitespace and wordwrap fixes, no content or markup changes. 2002-02-18 21:22:08 +00:00
bmah
50b4fe9a40 New release notes: bridge(4) enhancements, dump(8) progress information
in proctitle, ldd(1) -a, rtld(1) object dependency tracing, usbdevs(8) -a.

MFCs noted:  ldd(1) can be used on shlibs, BIND 8.3.1-REL, bzip-1.0.2.
2002-02-18 21:09:27 +00:00
mike
bcee06d42c o Move NTOHL() and associated macros into <sys/param.h>. These are
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
  source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
  Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
  POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
  and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
  complexities associated with having MD (asm and inline) versions, and
  having to prevent exposure of these functions in other headers that
  happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
  third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.

Tested on:	alpha, i386
Reviewed by:	bde, jake, tmm
2002-02-18 20:35:27 +00:00
dillon
f2e166dc7a Load the current timecounter into tc. The timecounter global can change
at any time and we do not want to call one timercounter's function with
another timecounter's structural pointer.

MFC after:	3 days
2002-02-18 19:49:30 +00:00
joe
7b1c9df62b Add some more partition types.
PR:		i386/14793
MFC after:	3 days
2002-02-18 19:32:38 +00:00
murray
9de57fadce Add net/samba to the list of important packages for Disc #1.
Discussed with: steve, portmgr, re
2002-02-18 19:04:23 +00:00
dillon
7c64675013 Add kern_giant_ucred to instrument Giant around ucred related operations
such a getgid(), setgid(), etc...
2002-02-18 17:51:47 +00:00
sobomax
dc86e4f972 Fix typo.
Approved by:	phk
2002-02-18 16:22:23 +00:00
phk
68389bd8ba Make v_addpollinfo() visible and non-inline.
Have callers only call it as needed.
Add necessary call in ufs_kqfilter().

Test-case found by:	Andrew Gallatin <gallatin@cs.duke.edu>
2002-02-18 16:18:02 +00:00
rwatson
22b5668b60 Rehash of 1.43: simply remove the comment, since it's highly redundant
and only partially correct.
2002-02-18 16:02:24 +00:00
jedgar
5a3fc2f8bb Correct path to pucdata.c
Reviewed by:	jhay
2002-02-18 15:46:10 +00:00
gallatin
7a2c2b4bb1 Fix kgdb in the face of the last round of KSE commits.
The alpha world may actually build now..
2002-02-18 14:13:59 +00:00
nyan
338edfed46 Add bus_space_unmap() and bus_space_free() functions to release
a bus_space_handle allocated by bus_space_subregion().
2002-02-18 13:44:46 +00:00
nyan
7e94257d40 Add stubs for bus_space_unmap() and bus_space_free(). They are needed to
release a bus_space_handle allocated by bus_space_subregion().
2002-02-18 13:43:19 +00:00
bsd
ec225f53d2 Add NO_6_BYTE quirk entry for the LaCie Ltd. 105311 80 Gig USB2 drive.
Submitted by:	Brian Schellenberger <bts@babbleon.org>
2002-02-18 13:35:30 +00:00
iedowse
269a0d55a1 Add the braces missed by revision 1.131.
Pointy hat to:	rwatson
2002-02-18 12:46:18 +00:00
sos
67db33ea3e Add support for the Highpoint HPT372 based cards (rocketraid 133).
HW Sponsored by: Mike Tancsa
2002-02-18 11:57:56 +00:00
sos
c9b72549b1 Fix the problem that some (in my book broken) disks reports
to be able to use 48bit addressing mode, but says the 48bit
size of the disk is 0, which according to spec means it can
address zero sectors in 48bit mode, why then say it supports
48bit mode at all..
2002-02-18 11:52:51 +00:00
phk
cf75bd0d98 The DEVFS paper presented at BSDcon-euro 2001 and BSDcon-2002. 2002-02-18 09:48:59 +00:00
des
20742f460a Add some verbiage to the comments at the top of the PR template:
- point at the FDP article rather than GNU's send-pr documentation
 - warn the user that PRs are public information and will be published in
   mailing lists and on the web
 - suggest that the user contact security-officer@ directly if the report
   concerns sensitive security issues.
2002-02-18 09:13:44 +00:00
phk
e340a5652f Take the common case of gettimeofday(&tv, NULL) out from under Giant. 2002-02-18 08:40:28 +00:00
phk
68320d04d1 Remove yet a redundant VN_KNOTE() macro. 2002-02-18 08:24:48 +00:00
imp
3b0aae3f18 Add notes about sendmail update from gshapiro. 2002-02-18 06:29:17 +00:00
obrien
ef99fc0762 style(9) 2002-02-18 06:24:55 +00:00
imp
d4f0b8fef8 Remove now-obsolete __STDC__ ifdefs, remove redundant NULL definition and
include stdlib.h for NULL.
2002-02-18 06:08:23 +00:00
dillon
15dc81ca3d The ICANON flag is an lflag, not an iflag.
Submitted by:	Neelkanth Natu <neelnatu@yahoo.com>
MFC after:	3 days
2002-02-18 06:07:11 +00:00
imp
8ad412b83c Fix last second botch of adding $FreeBSD$. 2002-02-18 05:40:54 +00:00
julian
5338e9f418 Remove __P() before committing new prototypes with KSE stuff
in a couple of weeks.
2002-02-18 05:26:57 +00:00
imp
24cd0a3c91 Remove __P
Remove __STDC__ (which means we now use stdarg rather than vararg)
Remove register
Remove main prototype
2002-02-18 05:15:19 +00:00
iedowse
d533053fe6 Use a more robust scheme for determining how many blocks to skip
after an EOT-terminated volume. We keep track of the current record
number, and synchronise it with the c_tapea field each time we read
a header. Avoid the use of c_firstrec because some bugs in dump can
cause it to be set incorrectly.

Move the initialisation of some variables to avoid compiler warnings.
2002-02-18 02:29:47 +00:00
peter
cc75746718 ld-elf.so.1 assumed a few too many things about the ordering of sections
produced by ld(8) (ie: that _DYNAMIC immediately follows the _GOT).
The new binutils import changed that, and the intial GOT relocation
broke.  Use a custom linker script to provide a real end-of-GOT symbol.

Update ld.so to deal with the new (faster) PLT format that gcc-3.1 and
binutils can produce.

This is probably incomplete, but appears to be working again.

Obtained from:  NetBSD
(And a fix to a silly mistake that I made by:  gallatin)
2002-02-18 02:24:10 +00:00
gshapiro
bf46cf3a97 Fix mail.local build for non-sendmail.org code 2002-02-18 02:18:42 +00:00
luigi
787c99785b Remove a blank line. 2002-02-18 01:59:40 +00:00
luigi
646766ec9d Manpage update: comment existing functionalities and give
more detailed examples on how to use them.
Undocument deprecated functionalities which are going to be
removed soon.
2002-02-18 01:57:56 +00:00