Commit Graph

8986 Commits

Author SHA1 Message Date
tnozaki
3acfcd1374 add iconv GB18030 <-> Unicode BMP conversion table. 2006-09-09 15:43:04 +00:00
elad
5f7169ccb1 First take at security model abstraction.
- Add a few scopes to the kernel: system, network, and machdep.

- Add a few more actions/sub-actions (requests), and start using them as
  opposed to the KAUTH_GENERIC_ISSUSER place-holders.

- Introduce a basic set of listeners that implement our "traditional"
  security model, called "bsd44". This is the default (and only) model we
  have at the moment.

- Update all relevant documentation.

- Add some code and docs to help folks who want to actually use this stuff:

  * There's a sample overlay model, sitting on-top of "bsd44", for
    fast experimenting with tweaking just a subset of an existing model.

    This is pretty cool because it's *really* straightforward to do stuff
    you had to use ugly hacks for until now...

  * And of course, documentation describing how to do the above for quick
    reference, including code samples.

All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:

	http://kauth.linbsd.org/kauthwiki

NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:

  - Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
  - Checks 'securelevel' directly,
  - Checks a uid/gid directly.

(or if you feel you have to, contact me first)

This is still work in progress; It's far from being done, but now it'll
be a lot easier.

Relevant mailing list threads:

http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html

Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).

Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.

Happy birthday Randi! :)
2006-09-08 20:58:56 +00:00
tron
8e86c1ab96 Make sure that all "move-if-change" scripts in "src/gnu/dist" are
executable in the source ".tgz" files. This is necessary while
bootstrapping the toolchain which isn't done using NetBSD makefiles.

This should fix PR toolchain/34489 by Kirk Russell.
2006-09-07 22:03:58 +00:00
itohy
cb2fb285ec Workbit NinjaATA-32 busmastering PIO IDE controller driver (njata)
This driver supports NinjaATA-32Bi and NPATA-32 chips,
which are used for CardBus ATA interface cards and
CardBus CompactFlash adapters.
2006-09-07 14:22:07 +00:00
garbled
3ac9a5180a Note support for the F40 in the distrib notes. 2006-09-07 07:49:12 +00:00
ad
297f461929 Add the lockstat command: displays a summary of kernel locking events
recorded over the lifetime of a called program.
2006-09-07 00:50:45 +00:00
ad
beafae096b Add the 'lockstat' driver, which collects basic information about lock events. 2006-09-07 00:20:28 +00:00
wiz
18bbdd85f7 Update set lists for todr*9 and time*9 changes. 2006-09-06 18:18:49 +00:00
hubertf
b7be24d378 Fix two oversights from last update 2006-09-04 22:03:50 +00:00
hubertf
dd0080d52a Update with changes by Gilbert Fernandes <gilboooo@gmail.com>,
review and some updates from bouyer@
2006-09-04 22:00:52 +00:00
hubertf
46f83bb806 Update, submitted by Marco <marcotrillo@gmail.com>
OK'd by xtraeme@
2006-09-04 21:46:32 +00:00
hubertf
042bbb2bb1 * Add Minimal (core) installation, consisting of a kernel, base + etc
* Fixup all of the German translations.
2006-09-04 02:20:40 +00:00
hubertf
136960985f Fix previous - no need to prepend target-root in chroot 2006-09-04 00:46:13 +00:00
hubertf
5bc64783d6 Make md_cleanup_install() more uniform across platforms. 2006-09-04 00:11:00 +00:00
hubertf
c66460047c be consistent in md_cleanup_install():
use the sed(1) from the newly installed system here too
(is getting rid of sed from the install ramdisk/... worthwhile?)
2006-09-04 00:07:27 +00:00
hubertf
8346ac144d Use sed(1) from the newly installed system instead of from the
miniroot/ramdisk -- which is not present on some platforms (hp300, mvme68k,
x68k), according to comments in their md_cleanup_install() functions.
2006-09-03 23:54:02 +00:00
rumble
e973f81726 Bring this up to date by mentioning the Personal Iris machines, Phobos
Fast Ethernet boards, and the IP22/24 parallel port. The Set Engineering
board is also noted but commented out until the bugs are shaken out.
2006-09-03 19:19:14 +00:00
hubertf
454b2c7a71 Enable rc_configured=yes, to be consistent with our other ports.
Also do the same cleanup.
2006-09-03 10:54:41 +00:00
wiz
aff5709ee3 Remove some ns(4)-related man pages. 2006-09-02 23:39:56 +00:00
uwe
2a28676497 xserver set for landisk. 2006-09-02 02:59:12 +00:00
uwe
4802ac293b MD sets for NetBSD/landisk. 2006-09-01 21:51:34 +00:00
hubertf
3a3624455e Sync behaviour of sh and ksh dotfiles for new users with those of root.
Addresses PR 32215 by Wouter Schoot
2006-08-31 22:49:55 +00:00
bjh21
bc3d7ff3c7 My version of scsidm (1.03) seems to section a disk by making a FileCore
file system that covers the whole disk but marking most of it in use somehow.
Make this easier to deal with by detecting an existing RISC iX partition and
displaying its starting cylinder.

This program should really go away and its job be done by sysinst and/or
disklabel, but not today.
2006-08-31 20:59:24 +00:00
dyoung
8cd106d3d2 Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.
2006-08-31 19:24:37 +00:00
obache
f2599bc9e9 Add myself to the list of developers. 2006-08-30 14:19:24 +00:00
rpaulo
11a48dc44a fix comment 2006-08-29 21:34:45 +00:00
sekiya
221525774f XNS is no more; nuke reference to af_ns.c 2006-08-27 06:40:43 +00:00
christos
c635841ee9 add man pages for wcsdup, wcscasecmp, wcsncasecmp 2006-08-26 22:51:41 +00:00
christos
7dc9d522c9 add efun.3 2006-08-26 22:38:42 +00:00
matt
eb3f97a8e0 Add back /usr/include/netccitt and netns and mark as obsolete.
Move netbt from comp to base.
Remove trsp man page entries.
2006-08-26 19:31:53 +00:00
christos
01cda7f789 efun man pages. 2006-08-26 18:25:36 +00:00
christos
6ad9fd095c add efun. 2006-08-26 18:20:18 +00:00
matt
1567f6c620 Obsolete XNS man pages. 2006-08-26 16:17:18 +00:00
matt
462ab6f23d Mark netccitt and netns include files as obsolete 2006-08-25 17:41:09 +00:00
riz
6a3b33002c First crack at configs for 4.0 .iso images. 2006-08-24 18:15:08 +00:00
bouyer
356edfcf8e Don't strip (and don't generate the symbols.gz files) for Xen INSTALL kernels.
There's no space contraint here, and this makes debugging easier.
2006-08-23 19:02:37 +00:00
bouyer
24e23a5a9c Properly set ${_FILENAME} if the _F item of MDSETTARGETS is '-'.
From Jachym Holecek on tech-toolchain.
2006-08-23 19:01:26 +00:00
christos
22b67e3c33 libc 147 for wcsdup and wcs{n,}casecmp 2006-08-22 20:52:20 +00:00
ghen
42821065a9 Add configuration files for the 3.1 release ISO's. 2006-08-21 21:14:24 +00:00
thorpej
d21620b264 Several changes to proplib:
- Arrays can now be externalized and internalized in the same way
  dictionaries can.
- Add new "externalize to file" and "internalize from file" functions
  to make reading a property list from a file and writing a property
  list to a file more convenient.
- Many assertions in the object implementations are gone.  Instead,
  calling an accessor for one object type with a different object type
  as an argument will return a suitable "invalid" value.
- prop_object_type() now returns a new PROP_TYPE_UNKNOWN value if called
  with a NULL object.
- Externalized property lists now contain a reference to the Apple XML
  plist DTD.
- Add a new prop_ingest(3) facility, which provides a convenient way to
  translate a dictionary into an arbitrary binary representation.
2006-08-21 04:13:28 +00:00
bjh21
f2d8dc9311 Add vidcvideo(4). 2006-08-20 12:48:47 +00:00
martin
e5b60f45a3 Do not install bootblocks twice. Suggested by Hubert Feyrer. 2006-08-19 22:41:27 +00:00
martin
914384b438 The "request" arg of ioctl(2) is unsigned long, not int!
Sign extended requests do not work on archs with sizeof(long) > sizeof(int).
2006-08-19 21:18:40 +00:00
dsl
db1e1cd15f Add a missing file, I think it something to do with simplified chinese. 2006-08-19 19:13:59 +00:00
plunky
95d2b886d7 The ubtbcmfw(4) driver fails to compile, as noted by PR kern/34219.
While it can be made to compile, the paradigm is not quite right because
it attempts to contact the filesystem during autoconfig which sometimes
causes a panic. Even if that was fixed, there is another potential problem
in that the driver tries/sleeps/tries/sleeps and the sleep could
theoretically sleep past the rc.d/btconfig stage and the controller
would remain unconfigured.

So, I have prepared a different method for loading the firmware to
Broadcom BCM2033 chip based devices. A package 'sysutils/bcmfw' will load
the firmware files via a ugen(4) device interface.

This update removes the ubtbcmfw(4) driver and adds a table to the ubt(4)
driver so that it will not attach to Broadcom BCM2033 based devices before
the firmware was loaded.

This fixes kern/34219
2006-08-19 16:35:02 +00:00
tnozaki
2ad099c737 1. added iconv support of Chinese Simplefied encoding, GBK.
2. added Unicode mapping of 2byte GB18030 User Defined Area.
2006-08-19 10:58:40 +00:00
martin
5cefff4513 It is "MAKEDEV bpf" nowadays 2006-08-18 21:44:53 +00:00
bjh21
f67b7f40a0 Obsolete <arm/iomd/vidc.h> and its directory. 2006-08-17 22:43:43 +00:00
ghen
8ef6dfdf8c Add mount_tmpfs(8) to /rescue. Ok with christos. 2006-08-16 16:50:59 +00:00
macallan
ad53a0a585 Add OpenFirmware support to eeprom(8) and build it on macppc.
Tested on macppc and sparc
2006-08-16 03:24:57 +00:00
ghen
787f1c4af1 Add ex(1) to /rescue. This won't add more than a few bytes to the crunchgen
binary since "ex" is just "vi -e" and vi(1) is already there.

Ok with hubertf and salo.
2006-08-15 14:14:35 +00:00
bjh21
3588325ecf Obsolete manual pages for deleted acorn32 keyboard drivers. 2006-08-14 22:26:59 +00:00
bjh21
cd46a5a9c8 Remove mention of wscons-specific kernels on acorn32 -- all acorn32 kernels
now use wscons.
2006-08-14 22:14:13 +00:00
bjh21
844bc4f1f6 Obsolete two header files related to the (removed) old console code. 2006-08-14 22:07:11 +00:00
rpaulo
2e90509055 Install postfix-manuals.html. 2006-08-14 21:35:38 +00:00
wiz
a007d06dc9 Add dk(4) manpage written by Jonathan A. Kollasch, provided in PR 34193. 2006-08-13 09:28:23 +00:00
plunky
885b13c515 rename btcontrol(8) as btdevctl(8) to make it fit with the NetBSD naming
scheme for control programs. This fixes pr 34051.
2006-08-13 09:03:21 +00:00
simonb
af29995e74 Add a port of the OpenBSD Intel 3945ABG wpi(4) wireless driver, by
Jean-Baptiste Campesato.

From PR kern/33778.
2006-08-13 02:21:45 +00:00
christos
1aabccbafc man pages for stresep and strndup. 2006-08-12 23:54:12 +00:00
christos
fc3d8b7c5f libc 146 2006-08-12 23:52:29 +00:00
plunky
a1c876ddfc Add my name to list of Developers 2006-08-11 18:39:02 +00:00
hubertf
a441eeeff1 Add whitespace to make more readable. No functional change. 2006-08-11 13:39:44 +00:00
hubertf
f4ff510f74 Offer to install GENERIC.MP, too, as we build & ship it. 2006-08-11 13:35:54 +00:00
wiz
78c9a76781 Add NetBSD.el containing some settings for emacs' c-mode to better
match NetBSD's KNF (kernel normal form).
2006-08-08 18:41:11 +00:00
mhitch
4b2f6edec3 gcc4 fixes: a lot of char * signed/unsigned mismatches. 2006-08-04 05:30:13 +00:00
oster
066dca4e5e We need to .WAIT until 'prepare' is done, and then .WAIT until
'copy-releasedir' is done before doing 'image'.  Failure to do so
leads to a race condition that may result in build errors on
parallel builds with '-j 4' and '-j 16'.
2006-08-02 21:37:41 +00:00
bjh21
edbe853398 Add the !Help file I forgot previously. 2006-08-02 11:31:27 +00:00
tsutsui
d8e998dec9 Use crunched binary in miniroot so that we can get smaller image
and no longer have to sync shlib majors in the list file.

Ok'ed by nathanw and christos on port-sun3, and tested on tme by me.
2006-08-02 09:30:46 +00:00
lukem
4adcd9d67f add psim for gdb6 2006-08-02 01:35:50 +00:00
he
cfaad7eb68 Bump the miniroot size by 1MB to 18MB so that it fits again. 2006-07-31 22:56:09 +00:00
martin
cb10eb2bc2 Bump libc to 145 (fhandle_t is gone) 2006-07-31 16:39:23 +00:00
bjh21
5b69310abf Merge in changes from acorn32 version, which should fix some build failures
with GCC 4.
2006-07-30 16:46:49 +00:00
ad
d8360081f7 Remove RASTERCONSOLE support from the pmax port. 2006-07-29 19:10:56 +00:00
tsutsui
1a7f69d4dc After extracting sets, copy miniroot kernel only if there is
no extracted kernel in the target disk.
2006-07-29 10:40:51 +00:00
wiz
ef2b4b6a60 Install twa(4) and add it to set list. 2006-07-29 08:54:51 +00:00
bjh21
fab9ece38c obsolete db_machdep.h 2006-07-28 22:30:21 +00:00
lukem
7569b63e4d Remove a mirror that was decommissioned almost five years ago
and was removed from the mirrors database at the time.
Somehow this file slipped through the cracks...
2006-07-27 23:01:27 +00:00
christos
d58b0e2d4c add services_mkdb 2006-07-27 22:18:46 +00:00
christos
4e15f37a26 bump for libc. 2006-07-27 15:50:04 +00:00
tron
7220cf0cb7 Correct suffixes and sort. 2006-07-27 12:55:45 +00:00
gdt
9f0410a08f add new man pages.
(Thanks to Juergen Hannken-Illjes for pointing out my error.)
2006-07-27 11:59:54 +00:00
drochner
76372bef22 obsolete db_machdep.h 2006-07-26 20:09:17 +00:00
tron
fdeefd9c3e Bluetooth fixes by Iain Hibbert:
Create "/etc/rc.d/btcontrol" to attach bluetooth devices at boot.
2006-07-26 11:14:55 +00:00
tron
ebe62ad714 Bluetooth fixes by Iain Hibbert:
Remove bluetooth.conf(5) and config parsing from libbluetooth(3)
as this is no longer required.
2006-07-26 11:11:04 +00:00
tron
30d6332135 Bluetooth fixes by Iain Hibbert:
Remove bthset(4) device and add btsco(4) in its place. This is an
improved version which is not just for headsets, as it can receive
incoming connections (eg for Hands Free Profile). Update bthset(1)
control utlitiy to relate to new device.
2006-07-26 10:43:01 +00:00
tron
4241fec1bf Bluetooth fixes by Iain Hibbert:
Change the way in which bluetooth devices attach to system. The
new way is for devices to attach directly to a btdevN device via
its own control file /dev/btdevN.
- bthub(4) is replaced by btdev(4).
- /dev/bthubctl is replaced by /dev/btdevN.
- configuration now uses proplib(3) property lists.
- btcontrol(8) updated to use new API, and now uses private
- XML config file /var/db/btdev.xml.
2006-07-26 10:30:59 +00:00
elad
4357c6cde3 missed in previous commit, we now have veriexec(9) 2006-07-25 21:21:25 +00:00
lukem
a7661355df Add amrctl.debug 2006-07-24 05:09:19 +00:00
bjh21
b1e602b971 Update to match new documentation layout. 2006-07-23 13:37:43 +00:00
bjh21
66e6b99a2b Move varous documents into a subdirectory of !BtNetBSD and add a !Help file
(accessible from the Filer menu) to open it.  The documents are:
  BtNetBSD/FBInstall
  BtNetBSD/!BtNetBSD/Files
  BtNetBSD/!BtNetBSD/Legal
2006-07-23 13:33:53 +00:00
bouyer
d252c65e9c Add a /dev/amr* control file for amr(4) devices, which allows sending raw
commands to the controller.
Add a amrctl(8) control tool, which for now only allows to get status
from the adapter (status of adapter, logical volumes and and individual
drives).
From FreeBSD, with some adjustements by Andrew Doran and me.
2006-07-23 12:01:25 +00:00
lukem
cacf5bfacc Implement MKDEBUG:
If "no", don't build and install separate debugging symbols
	into /usr/libdata/debug.
	Default: no
2006-07-23 11:41:24 +00:00
bjh21
eaf8878f34 We build releases under NetBSD now, so there's no need for the MkRelease
and MkRelScr scripts to do (some of) it under RISC OS.  Remove them.
2006-07-22 22:38:54 +00:00
tsutsui
4f08243995 Use MI installboot(8), not obsolete disklabel(8) with -B. 2006-07-21 19:02:27 +00:00
martin
9d93195858 Fix truncated message and one inconsistency, fixes parts of
PR bin/34048.
2006-07-21 14:04:26 +00:00
bjh21
3ec3640611 No acorn32 system that I know of has PCMCIA, so skip PCMCIA references there. 2006-07-20 19:38:17 +00:00
bjh21
03570c9170 Add line numbers to BASIC files we distribute. This avoids the annoying
"Program renumbered" message when they start up.
2006-07-19 22:54:57 +00:00
rpaulo
f483709ebd add new postfix docs 2006-07-19 22:20:59 +00:00
bjh21
683e3863d0 Add NetBSD RCSID. 2006-07-19 21:52:54 +00:00
rpaulo
d8a0a3ce50 add bounce(5) man page 2006-07-19 02:06:15 +00:00