Commit Graph

180795 Commits

Author SHA1 Message Date
christos 3fde99f00c - prevent buffer overflow from Maksymilian Arciemowicz (worst case was 1041
characters and we allocated only 1024.
While here:
- use snprintf to prevent this from happening in the future.
- don't close fd twice on error.
- pass unsigned char to ctype.h functions.
2009-05-07 21:07:34 +00:00
christos e100a74164 add regression test for gdtoa large field width. 2009-05-07 20:40:25 +00:00
elad 13385da3e6 Replace KAUTH_GENERIC_ISSUSER with a better alternative. 2009-05-07 20:32:51 +00:00
elad 88003af1dc Use genfs_can_mount(). 2009-05-07 20:32:23 +00:00
christos df369aba80 Change Kmax so we allocate enough freelist entries to handle large field
numbers. Reported by Maksymilian Arciemowicz
2009-05-07 20:31:44 +00:00
elad 863a01b5c1 Extract the open-coded authorization logic for chtimes() from various
file-systems and put it in a single function, genfs_can_chtimes().

This also makes UDF follow the same policy as all other file-systems.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004951.html
2009-05-07 19:30:29 +00:00
elad 9e9887cc59 Introduce several actions/requests for authorizing file-system related
operations, specifically quota and block allocation from reserved space.

Modify ufs_quotactl() to accomodate passing "mp" earlier by vfs_busy()ing
it a little bit higher.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/04/26/msg004936.html

Note that the umapfs request mentioned in this thread was NOT added as
there is still on-going discussion regarding the proper implementation.
2009-05-07 19:26:08 +00:00
plunky 8650959ae7 ensure that sdpquery continues to build while I am in progress of
updating Service Discovery Protocol API
2009-05-07 18:12:08 +00:00
plunky 539b5ab318 Ensure that these programs continue to build while I am in the
process of updating the Service Discovery Protocol API.
2009-05-07 18:08:55 +00:00
elad b853042065 Introduce actions/requests to handle authorization for ppp(4), sl(4),
strip(4), btuart(4) and bcsp(4) network interfaces and devices.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004955.html
2009-05-07 18:01:56 +00:00
tsutsui 0b635e75c0 Pass proper timeval args to pdc_call() to save TOD with PDC_TOD_WRITE,
Per OpenBSD's hppa/dev/clock.c rev 1.14.

Tested on my 735/125 with a new lithium battery, okay'ed by skrll@.
2009-05-07 17:30:59 +00:00
pooka fd3f839e56 Make the file descriptor passing test case a little more interesting:
instead of passing a file descriptor within a single process, create
two virtual processes in rump and pass the fd between them.
2009-05-07 16:19:30 +00:00
pooka cd558b6419 Add rump_set_curlwp() for context switch to an existing lwp/proc. 2009-05-07 16:04:25 +00:00
pooka 825ba1eb35 Don't create unpgc thread if RUMP_THREADS is 0. The benefit is the
usual: possible to run programs using AF_LOCAL without threads.
2009-05-07 16:03:24 +00:00
mjacob 30611ba7e0 update firmware 2009-05-07 15:55:18 +00:00
mjacob c83986a8bd Add firmware set for 8Gb card. 2009-05-07 15:54:20 +00:00
skrll 7ab26758f5 device_t/softc split
struct device * -> device_t
struct cfdata * -> cfdata_t
Use aprint*

There are a couple of MI drivers with MD attachments left.
2009-05-07 15:34:49 +00:00
skrll 0b960e17e7 Another cannot. 2009-05-07 15:21:39 +00:00
skrll 529329f14e There are more "can't"s that "cannot"s. Be consistent and use "can't"
everywhere.
2009-05-07 15:17:22 +00:00
pooka d56d1f4273 Rename variable to reflect current use. no functional change. 2009-05-07 14:45:19 +00:00
tsutsui d03e93aff1 TAB/space cleanup. 2009-05-07 14:22:37 +00:00
tsutsui 1cd0d72fce Some earlier machines like 715/50 and 735/99 have the i82596DX Rev A chip
which doesn't support 32-bit big endian mode enabled by IEE_SYSBUS_BE bit,
so don't rely on the IEE_SYSBUS_BE mode on old HPPA_FIO_LAN models and
use IEE_REV_A quirk flag recently added into MI i82596.c.

Tested on HP9000 735/125 by me and also tested on 715/50 by skrll@
with netbsd-5 branch.  Closes MD part of PR port-hp700/35531.
2009-05-07 14:13:01 +00:00
rjs 4179d32aff Use device_private(). 2009-05-07 13:06:11 +00:00
cegger bc33dc599e struct device * -> device_t, no functional changes intended. 2009-05-07 12:15:33 +00:00
wiz 7dc37dded5 Remove .Pp before and after .Ss. 2009-05-07 11:54:41 +00:00
elad a756ea629b .Sy -> .Ss for a subsection header.
Pointed out by wiz@, thanks!
2009-05-07 11:23:01 +00:00
wiz 4844b3bbad Add VScom USB-COM Mini as supported hardware; from Jukka Ruohonen in PR 41377.
Bump date.
2009-05-07 10:41:37 +00:00
skrll babee9b443 Wrap PAGE0 access with hp700_pagezero_{,un}map 2009-05-07 09:56:50 +00:00
spz fd8187a569 adjust the ADMINPORTDIR to match that of racoon (with which it'll want to talk)
fixes PR 41376
2009-05-07 09:31:40 +00:00
cegger 2641fe2fb7 struct device * -> device_t
comment says, first argument of audiobell is a device, so make it a device.
2009-05-07 09:23:01 +00:00
cegger ed4086f2eb struct cfdata * -> cfdata_t, no functional changes intended. 2009-05-07 09:13:13 +00:00
cegger 5496566c68 struct device * -> device_t, no functional changes intended. 2009-05-07 09:11:42 +00:00
skrll 1a869e5eb8 KNF 2009-05-07 09:10:18 +00:00
skrll 05991fa689 G/C some old stuff. 2009-05-07 09:08:02 +00:00
skrll f1498b38bc G/C some unused stuff from OpenBSD. 2009-05-07 08:58:13 +00:00
skrll ac2641c0f7 Whitespace. 2009-05-07 08:55:15 +00:00
skrll fabe240540 A bit more KNF. 2009-05-07 08:54:59 +00:00
skrll f21c2fa615 KNF 2009-05-07 08:30:40 +00:00
wiz 3932d28101 New sentence, new line. 2009-05-07 08:27:14 +00:00
skrll 764d19818b Add __insn_barrier after updating cpl in splraise. PR/41369. 2009-05-07 08:16:50 +00:00
cegger 6ee74bfd56 struct device * -> device_t, no functional changes intended. 2009-05-07 08:03:23 +00:00
cegger 602c27254b use device_private() 2009-05-07 07:56:03 +00:00
cegger 930db79c5b struct device * -> device_t, no functional changes intended. 2009-05-07 07:33:05 +00:00
lukem bb51419c1e Add reminder to confirm the ffs format using dumpfs(8). 2009-05-07 07:09:49 +00:00
lukem 7c56c3165d refer to FFSv1 instead of UFSv1 2009-05-07 07:03:39 +00:00
lukem 87a1d67eda Consistently use FFSv1 or FFSv2 2009-05-07 06:56:56 +00:00
lukem 51d7a18bc6 Use "FFSv2" instead of "UFS2".
Expand the description of -c.
Xref dumpfs.
2009-05-07 06:54:23 +00:00
jdc c10e3b28bd Add extra counter definitions (pointed out by Geoff Wing). 2009-05-07 06:46:54 +00:00
skrll 51ddbaac30 Wrap some wide comments. 2009-05-07 06:41:19 +00:00
lukem 18f0896759 Display the superblock format as the second line ("FFSv1" or "FFSv2").
No need to display the magic format further down.
2009-05-07 06:40:38 +00:00