122027 Commits

Author SHA1 Message Date
jhb
31ca82f7fe MFC: Close race conditions between fork() and [sg]etpriority()'s
PRIO_USER case, and possibly also other places that deference p_ucred.
2007-07-19 18:46:32 +00:00
emax
68ab033024 MFC:
Fix kbdmux(4) issue with backslash/underscore key not working on
Japanese 106/109 keyboard.

PR:		kern/112214, kern/99090
Submitted by:	TAKAHASHI Yoshihiro, TOMITA Yoshinori
Approved by:	re (hrs)
2007-07-19 17:12:02 +00:00
kientzle
d9bd584da3 MFC better error handling from archive_string_ensure()
failures.  Several key users of this function now simply
return ENOMEM to the caller instead of aborting the
program.
2007-07-19 14:31:52 +00:00
pav
10c6ecf97b MFC 1.59:
Update portaudit location
2007-07-19 07:22:00 +00:00
kientzle
98be2a65e0 MFC: archive_entry_copy_gname() and archive_entry_copy_uname() functions. 2007-07-18 04:57:32 +00:00
kientzle
33c4f41b55 MFC 1.59: Add back a mistakenly-removed 'break'. 2007-07-18 04:47:59 +00:00
jhb
5207be8308 MFC 1.164: Fix up NFS client write error handling.
Submitted by:	mohans
2007-07-17 21:02:08 +00:00
jhb
33b25f53be MFC 1.37: Fix alignment of context switch traces. 2007-07-17 14:43:11 +00:00
peter
940f27178b Remove archive_entry_set_devmajor.3 and archive_entry_set_devminor.3
man pages from the OLD_FILES list.  libarchive currently installs them
on RELENG_6.
2007-07-17 09:37:51 +00:00
brueffer
56768022c1 MFC: rev. 1.28
Take a sentence into the present by removing a reference to FreeBSD 3.0.
2007-07-17 08:34:34 +00:00
delphij
e2862c2456 MFC: Update for bzip2 1.0.4 import: bzip2.info.gz gone. 2007-07-17 06:22:37 +00:00
delphij
efce9625a0 Note diffutils 2.7 -> 2.8.7 MFC 2007-07-15 01:28:18 +00:00
delphij
b6dce5eba4 MFC: diffutils 2.8.7. 2007-07-15 01:24:46 +00:00
csjp
5b61f61af0 Doh.. This is a forced commit to note the actual commit for the previous
commits:

MFC  1.29      +1 -1      src/sys/dev/bce/if_bce.c
MFC  1.22      +1 -1      src/sys/dev/ixgb/if_ixgb.c
MFC  1.91      +1 -1      src/sys/dev/nge/if_nge.c
MFC  1.87      +1 -1      src/sys/dev/re/if_re.c
MFC  1.6       +1 -1      src/sys/dev/stge/if_stge.c
MFC  1.44      +1 -1      src/sys/dev/txp/if_txp.c
MFC  1.31      +1 -1      src/sys/dev/vge/if_vge.c

Un-break processing of 802.1Q VLAN tags in the presence of hardware
offload of VLAN tags.
2007-07-14 20:25:20 +00:00
csjp
322e873bf8 commit.log 2007-07-14 20:22:17 +00:00
csjp
cf4ea132d0 MFC rtld.c revision 1.124
Unset potentially harmful environment variables.

Discussed on:	seacteam
PR:		kern/109836
2007-07-14 19:04:00 +00:00
bmah
4489277475 MFC: SA-07:05.libarchive. 2007-07-13 17:43:49 +00:00
yongari
873484fe3a MFC if_txp.c rev 1.45, 1.46 to RELENG_6.
Add checks for contigmalloc(9) failure.
 Nuke duplicated __FBSDID.
2007-07-13 04:55:52 +00:00
yongari
639c534bc4 MFC if_re.c rev. 1.91, if_rlreg.h rev. 1.66 to RELENG_6.
re(4) devices requires an external EEPROM. Depending on models it
  would be 93C46(1Kbit) or 93C56(2Kbit). One of differences between them
  is number of address lines required to access the EEPROM. For example,
  93C56 EEPROM needs 8 address lines to read/write data. If 93C56
  recevied premature end of required number of serial clock(CLK) to set
  OP code/address of EEPROM, the result would be unexpected behavior.
  Previously it tried to detect 93C46, which requires 6 address lines,
  and then assumed it would be 93C56 if read data was not expected
  value. However, this approach didn't work in some models/situations
  as 93C56 requries 8 address lines to access its data. In order to fix
  it, change EEPROM probing order such that 93C56 is detected reliably.

  While I'm here change hard-coded address line numbers with defined
  constant to enhance readability.

PR:	112710
2007-07-13 04:46:34 +00:00
thompsa
a44651dc34 MFC r1.99
The mac address must be written a word length at a time, it was having no
 effect before.
2007-07-13 01:27:45 +00:00
thompsa
8738b1d5e1 Move the IFT_IEEE8023ADLAG case above the copy to IFP2ENADDR(ifp). This chunk
of code has a slightly different layout to HEAD had was mismerged. This fixes
lagg(4) on RELENG_6.
2007-07-13 01:26:44 +00:00
yar
ea9934286a MFC revs. 1.15, 1.16:
Add a sysctl for the purge run interval so that it can
  be tuned along with the rest of hostcache parameters.
  The new sysctl name is `net.inet.tcp.hostcache.prune'.

  Replace a constant with an already defined symbolic name for it.
2007-07-12 20:50:06 +00:00
thompsa
5df0ac3d5e Sync lagg to HEAD
- Implement the Marker Protocol for lacp
 - Export the actor and partner peer info and show in ifconfig verbose
 - Compare the partner system priority when choosing the aggregator.
 - Cleanup whitespace, variable names and gc unused defines
2007-07-12 20:40:25 +00:00
cperciva
e459c538fb Correct multiple security issues in how libarchive handles corrupt
tar archives, including a potentially exploitable buffer overflow.

Reviewed by:	kientzle
Security:	FreeBSD-SA-07:05.libarchive
2007-07-12 15:00:44 +00:00
yar
c7f05fc163 MFC rev. 1.15:
Update nologin(5) to match the modern reality of login.conf(5) and PAM.
2007-07-12 14:16:01 +00:00
yar
fa260264c0 MFC:
Use the current user's login class for the decisions about where
  the nologin(5) file is located and whether the user may bypass its
  restriction.

  Add some error checks.

  Revision  Changes    Path
  1.7       +16 -15    src/lib/libpam/modules/pam_nologin/pam_nologin.8
  1.13      +42 -29    src/lib/libpam/modules/pam_nologin/pam_nologin.c

Note: To avoid POLA violation, the merged module still lets root
in irrespective of login.conf settings.  In HEAD, root has to have
an explicit "ignorenologin" capability to bypass nologin(5).

PR:	bin/107612
2007-07-12 14:11:57 +00:00
yar
f510b9f527 MFC login_cap.3 1.35-1.37, login_cap.c 1.34:
- Finally document the LOGIN_MECLASS hack in the manpage and comments.
- Fix login_getcaplist() prototype in the manpage.
- Improve the manpage markup.
2007-07-12 13:25:55 +00:00
yar
b29966b1bd MFC revs. 1.19-1.22: Assorted small fixes. 2007-07-12 13:11:00 +00:00
yar
015f3eedb5 MFC rev. 1.76: Thoroughly handle error conditions when processing
an interpreted script as $command.
2007-07-12 12:56:54 +00:00
brian
45f2a023a7 MFC: Speaker durations are specified in 1/100ths of a second according to
spkr(4).

PR:		70610, 67995
2007-07-12 07:05:43 +00:00
ariff
e989d0705f MFC (revision: 1.78):
- malloc M_NOWAIT -> M_WAITOK.

- Protect against divide by zero while calculating bus speed due to
  possible broken kernel timecounter.

  Reported/Tested by:     silby
2007-07-12 06:39:38 +00:00
ariff
7254263f8c MFC:
Revisions:
  1.44      src/sys/dev/sound/pci/hda/hdac.c
  1.8       src/sys/dev/sound/pci/hda/hdac_private.h

- Add codec id for Realtek ALC268.

- Add controller id for Intel 82801I (ICH9).
  PR:			kern/114399
  Submitted by:		Michael Fuckner <michael@fuckner.net>

- MSI support. Disable by default due to various issues with too many
  broken hardwares. MSI can be enabled through device.hints(5) or
  kenv(8) by setting "hint.pcm.%d.msi=1" (for RELENG_6, you need to
  set/enable hw.pci.enable_msi=1).
  Partially submitted by:	kevlo
                         	YAMAMOTO Taku <taku@tackymt.homeip.net>
  Tested by:			joel, kevlo, YAMAMOTO Taku
2007-07-12 06:39:08 +00:00
dougb
c7b5f801f9 Comment out the BIND 9.4.x-only disable-emtpy-zone options.
Pointed out by: A cast of thousands
Pointy hat to:  Just me
2007-07-11 23:59:41 +00:00
novel
574800c221 MFC command.c 1.307, radius.h 1.22, radius.c 1.54, ppp.8.m4 1.326:
Add a new option for ppp.conf: rad_port_id. It allows to
change the way of what ppp submits to the RADIUS server
as NAS-Port-Id. Possible options are: the PID of the process
owning the corresponding interface, tun(4) interface number,
interface index (as it would get returned by if_nametoindex(3)),
or it's possible to keep the default behavior. Check the ppp(8)
manual page for details.

MFC ppp.8.m4 1.327:
Cleanup after previous commit.

PR:		bin/112764
Submitted by:	novel (myself)
Approved by:	flz
2007-07-11 10:49:06 +00:00
dougb
cddec5774d Record the removal of the PROTO.localhost* stuff from etc/namedb 2007-07-11 07:23:39 +00:00
delphij
5db65c0475 Reflect bzip2 MFC. 2007-07-11 07:16:56 +00:00
dougb
2e29ef4131 MFC of the work committed on 2007-06-18 to improve the default
named.conf. This brings us in line with BCP, and makes our
installed configuration usable as a local resolver right out
of the box.

This includes:
1.359 of etc/Makefile
1.5 of etc/namedb/Makefile
1.1 of etc/namedb/master/Makefile
all for the new files in etc/namedb/master,

1.23 and 1.24 of etc/namedb/named.conf to bring in the new
configuration options,

The new files in etc/namedb/master to support those options,

And deletion of the old *localhost*.rev files.

See the commit message to HEAD and the comments in the new
named.conf file for more details about the changes and the
reasons for them.
2007-07-11 07:08:23 +00:00
delphij
8e18321b82 MFC: bzip2 1.0.4. 2007-07-11 07:04:07 +00:00
simokawa
45590024c7 MFC rev. 1.98: Fix a bug of retrieving configuration ROM. 2007-07-11 02:13:50 +00:00
brueffer
4d6bed74df MFC: rev. 1.4
The driver will also first appear in 6.3.  While here, fix some
grammar issues and capitalize Jumbo Frames.
2007-07-10 17:13:31 +00:00
mlaier
936200194c MFC, rev 1.18:
Fix hardware checksum verification on fragments.

	Reported/tested by:	Hugo Koji Kobayashi, Vadym Chepkov
	Reviewed/help by:	yongari
2007-07-10 10:27:12 +00:00
cperciva
1a5d6ec606 MFC revision 1.11: Add support for the HTTP_TIMEOUT environment variable.
MFC revision 1.12: Add support for HTTP/1.0 Persistent Connections.
2007-07-09 22:50:51 +00:00
rodrigc
2f7815c541 MFC: Convert MSDOSFS_LARGE compile time option to a "-o large" mount option.
PR:	105964
2007-07-08 15:30:28 +00:00
ariff
47c22847e2 MFC:
New sysctl: "hw.snd.compat_linux_mmap" to allow PROT_EXEC page
mapping, due to recent changes in linux compatibility layer which
require it. All linux applications that using sound + mmap() (mostly games)
require this to be enabled. Disabled by default.
2007-07-08 14:01:11 +00:00
netchild
70891f8aea regen after syscalls.master change 2007-07-08 12:23:37 +00:00
netchild
45f314826d MFC (5a of X):
- linuxulator mmap handling

Compile tested by:	scf (i386, as part of a mega-MFC-patch)
Tested by:		Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)
2007-07-08 12:22:15 +00:00
netchild
ae2249d960 MFC (5 of X):
- linuxulator mmap handling
 - memleak fixes
 - extend linux errno mapping
 - handle address space limits for linux processes
 - sync linprocfs (/proc/sys/... part)

Compile tested by:	scf (i386, as part of a mega-MFC-patch)
Tested by:		Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)
2007-07-08 12:20:36 +00:00
netchild
962e1e6836 MFC (4 of X):
- don't limit number of syscalls to 255
 - handle more socket options
 - bug-/compatibility-fixes to linux
   * file related (includes fixes which prevent creation of strange files
     which can only be removed with a fsck)
   * make ping work
   * ...
 - add devfs to the file system type handling/translation

Compile tested by:	scf (i386, as part of a mega-MFC-patch)
Tested by:		Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)
2007-07-08 09:04:44 +00:00
netchild
47a37c3274 MFC (3 of X):
- In preparation of further linuxulator fixes MFC kern_descrip.c rev 1.296 and
   syscallsubr.h rev 1.41 by jhb:
   Add a kern_close() so that the ABIs can close a file descriptor w/o having
   to populate a close_args struct and change some of the places that do.

Tested by:	scf (i386, as part of a mega-MFC-patch),
		Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)
2007-07-08 08:44:48 +00:00
netchild
b6ba7285b9 MFC (2 of X):
- some linuxulator style(9) fixes
 - add datatypes and definitions in preparation of further commits
 - use one (l_sigval) of the new datatypes on amd64 and get rid of a now unused
   include (this may or may not fix some signal handling issues on amd64) [1]
 - convert some unconditional debug handling into the common linuxulator way
 - use some more appropriate format string types in some debug printf's
 - convert signal validation into a macro

Except for [1] on amd64 there is no visible change to a normal user.

Tested by:	scf (i386), Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)
2007-07-08 08:41:09 +00:00