Commit Graph

11974 Commits

Author SHA1 Message Date
elad
52734536eb Bump date to today's date (rather than when the changes were made). 2009-10-02 19:50:37 +00:00
elad
53ca19a3b3 First part of secmodel cleanup and other misc. changes:
- Separate the suser part of the bsd44 secmodel into its own secmodel
    and directory, pending even more cleanups. For revision history
    purposes, the original location of the files was

        src/sys/secmodel/bsd44/secmodel_bsd44_suser.c
        src/sys/secmodel/bsd44/suser.h

  - Add a man-page for secmodel_suser(9) and update the one for
    secmodel_bsd44(9).

  - Add a "secmodel" module class and use it. Userland program and
    documentation updated.

  - Manage secmodel count (nsecmodels) through the module framework.
    This eliminates the need for secmodel_{,de}register() calls in
    secmodel code.

  - Prepare for secmodel modularization by adding relevant module bits.
    The secmodels don't allow auto unload. The bsd44 secmodel depends
    on the suser and securelevel secmodels. The overlay secmodel depends
    on the bsd44 secmodel. As the module class is only cosmetic, and to
    prevent ambiguity, the bsd44 and overlay secmodels are prefixed with
    "secmodel_".

  - Adapt the overlay secmodel to recent changes (mainly vnode scope).

  - Stop using link-sets for the sysctl node(s) creation.

  - Keep sysctl variables under nodes of their relevant secmodels. In
    other words, don't create duplicates for the suser/securelevel
    secmodels under the bsd44 secmodel, as the latter is merely used
    for "grouping".

  - For the suser and securelevel secmodels, "advertise presence" in
    relevant sysctl nodes (sysctl.security.models.{suser,securelevel}).

  - Get rid of the LKM preprocessor stuff.

  - As secmodels are now modules, there's no need for an explicit call
    to secmodel_start(); it's handled by the module framework. That
    said, the module framework was adjusted to properly load secmodels
    early during system startup.

  - Adapt rump to changes: Instead of using empty stubs for securelevel,
    simply use the suser secmodel. Also replace secmodel_start() with a
    call to secmodel_suser_start().

  - 5.99.20.

Testing was done on i386 ("release" build). Spearated module_init()
changes were tested on sparc and sparc64 as well by martin@ (thanks!).

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/09/25/msg006135.html
2009-10-02 18:50:12 +00:00
wiz
feb0e0a3b5 Fix Dd argument. 2009-10-02 17:48:39 +00:00
nakayama
d61a38f649 Port lom(4) driver for LOMlite lights out management hardware monitor
and watchdog timer from OpenBSD.

It supports the LOMlite found on Sun Netra t1 and the LOMlite2 found
on Sun Netra T1/X1 and Sun Fire V100/V120.
2009-10-02 15:09:16 +00:00
cegger
c108d28f64 fix grammar: a -> an 2009-10-02 09:38:29 +00:00
skrll
d7567abc6b Switch amd64 to binutils 2.19.1. 2009-10-01 09:12:44 +00:00
wiz
074d401449 Add Xref and config line for wb(4). 2009-10-01 05:42:22 +00:00
wiz
fea6ba46fc Sort SEE ALSO. 2009-10-01 05:42:09 +00:00
jmcneill
521589e2d5 add wb(4) man page. 2009-09-30 22:32:04 +00:00
apb
db5a8e6176 Document the fact that wpa_supplicant won't start properly unless
/usr is mounted by mountcritlocal.
2009-09-30 18:17:22 +00:00
tsarna
a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00
sborrill
21e3c4b6e7 Add support for playback- or capture-only devices by adding
AUDIO_PROP_PLAYBACK and AUDIO_PROP_CAPTURE properties.

From jmcneill@.

Fixes PR#42050
2009-09-29 15:58:54 +00:00
apb
8e181d0741 .Xs -> .Dq.
There's no such thing as ".Xs"; it was a typo for ".Sx".  However,
.Sx is intended for references to another section of the same man page,
not for references to sections of a different man page.
2009-09-28 18:28:59 +00:00
joerg
e3d4da1b77 Do not use a list in the synopsis, groff doesn't like that. 2009-09-28 14:11:56 +00:00
wiz
91b16df666 Bump date for today's changes. 2009-09-27 21:05:55 +00:00
jakllsch
bd5cb77445 gpio(4) support for Intel ICH southbridges.
Tested on Intel SS4200-E (ICH7), and Acorp 6A815EPD (ICH2) motherboards,
on amd64 and i386 ports respectively.

It should be noted that the majority of boards with ICH chips do not
expose the GPIO pins for off-board use.  For instance, aside from the
three exposed-on-a-header pins on the 6A815EPD, another pin is also
used to control write protect on the FWH.  The SS4200 exposes the GPIO
on a header that connects to the 10 LEDs on the front panel, as well
as a tact switch on the back panel.
2009-09-27 17:55:31 +00:00
dholland
8d36057243 Move a big wodge of symlink-following code from nfsd to inside
lookup_for_nfsd(). This code is, or at least should be, the same as
the regular symlink-following code plus an extra flag nfsd needs.

The two lots of code can/will be merged in the future.
2009-09-27 17:23:53 +00:00
dholland
fb458255a3 Rename lookup() to lookup_for_nfsd(), to make it clear just whose
private backdoor entry point this is.

Also, clone the lookup_for_nfsd() entry point as
lookup_for_nfsd_index(), for use by a different call site in nfsd that
does different unclean things with nameidata.
2009-09-27 17:19:07 +00:00
jmcneill
137f29ee98 HP sensing is supported now. 2009-09-26 11:52:16 +00:00
skrll
61d74f6e74 Switch arm and armeb to binutils 2.19.
Tested on my cats and all other platforms build tested.
2009-09-26 07:28:38 +00:00
wiz
ac3d1204b9 New sentence, new line. 2009-09-26 06:47:55 +00:00
elad
86d8eb1d76 PR/35795: Greg A. Woods: bge(4) doesn't describe the sysctl it uses
Use a slightly adjusted version of the diff in the PR. For proper credits,
the information in the added bit comes from a posting by Jonathan Stone.
2009-09-26 04:51:21 +00:00
plunky
c0e76aa63e mention dynamic PSM usage 2009-09-25 19:47:09 +00:00
mbalmer
e5d5fe6e06 Jonatha Kollasch has a GPIO device that can pulse the output lines.
Support it wuth the GPIO_PIN_PULSE attribute and the 'pulse' paramater
to gpioctl.  Discussed with Jonathan.
2009-09-25 19:37:03 +00:00
skrll
bceded4e69 Switch m68k to binutils 2.19.
Tested on mac68k by martin@. All other m68k platforms build tested.
2009-09-22 09:57:28 +00:00
uwe
d85ac884c9 Switch sh3eb to binutils 2.19.
Compile-tested for mmeye.
2009-09-22 01:28:50 +00:00
uwe
d04b778cf5 Switch sh3el to binutils 2.19.
Boot-tested on landisk.
2009-09-21 17:20:16 +00:00
skrll
905441e356 Switch vax to binutils 2.19. 2009-09-19 14:53:12 +00:00
skrll
d50428f757 Switch sparc and sparc64 to binutils 2.19.
Thanks to martin@ for testing.
2009-09-19 09:00:58 +00:00
snj
b53bfce489 Sync with reality. 2009-09-19 07:06:55 +00:00
skrll
25242842fd Move alpha to binutils 2.19. 2009-09-17 18:21:38 +00:00
dyoung
a823c63033 Don't install config_activate links such as config_activate.9 ->
autoconf.9.  In the set list, mark the config_activate links
obsolete.
2009-09-16 22:52:40 +00:00
dyoung
55270c28ac Delete documentation for config_activate(9), it does not exist any
more.
2009-09-16 22:47:29 +00:00
mrg
cdca6f8c29 switch port-sparc over to Xorg by default. 2009-09-16 06:10:52 +00:00
jnemeth
5fe591a2c9 bump date for previous 2009-09-15 01:20:42 +00:00
jnemeth
b313b03dff mention the new modules.tgz set 2009-09-15 01:12:38 +00:00
wiz
f08a1819c1 Punctuation nits. 2009-09-14 12:37:08 +00:00
apb
70472a4826 Add the ability for file systems mounted via mount_critical_filesystems()
in rc.subr to be marked as optional.  This means that it's not an
error if the file system is not mentioned in /etc/fstab.  It is
still an error if something else goes wrong.

Change the defaults for these two variables in /etc/defaults/rc.conf:
critical_filesystems_local="OPTIONAL:/var"
critical_filesystems_remote="OPTIONAL:/usr"
2009-09-14 12:05:12 +00:00
snj
e29431f37a Use \*[Lt] and \*[Gt] instead of < and >. 2009-09-13 18:57:36 +00:00
jmcneill
42b8a9234e PR# port-i386/39463: boot.cfg(8) does not mention about relative path for
the 'load' option

Document the search behaviour of the 'load' directive when an absolute
path is not specified.
2009-09-13 18:39:20 +00:00
skrll
08d80ad4aa Switch hppa to binutils 2.19.
There is a lot of rump breakage for hppa. Hopefully it will be fixed soon.
2009-09-12 07:21:09 +00:00
wiz
0b645b22fc Bump date for previous. Whitespace nit. Use Nm instead of Xr to itself. 2009-09-11 19:48:52 +00:00
wiz
31bddcb483 Bump date for previous. 2009-09-11 19:47:27 +00:00
wiz
c384d22d4b Bump date for previous; add comma in enumeration. 2009-09-11 19:44:03 +00:00
wiz
10f3ba9af1 Bump date for previous. 2009-09-11 19:43:26 +00:00
apb
89fd535731 Add a postprocessor to /etc/rc, which logs messages to /var/run/rc.log,
and which can suppress output in silent mode.  Silent mode is enabled
via the new rc_silent variable, which defaults to a value that depends
on the kern.boothowto sysctl.

Part of the /etc/rc silent changes requested in PR 41946
and proposed in tech-userlevel.
2009-09-11 18:17:04 +00:00
apb
7ab65de0a9 Expose the kernel's boothowto(9) variable through the sysctl
kern.boothowto variable.

Part of the /etc/rc silent changes requested in PR 41946
and proposed in tech-userlevel.
2009-09-11 18:14:58 +00:00
skrll
3c21953b90 Switch i386 to binutils 2.19. 2009-09-09 10:38:35 +00:00
pooka
d6331b9a6e * fix error print
* adjust resulting image minsize
2009-09-08 21:51:33 +00:00
pooka
676351e4c4 Add a simple proof-of-concept program which shows how to use the
kernel cgd driver in an application which encrypts and decrypts
files.  The cgd driver is running completely in userspace and
requires no special access privileges.

For example:

golem> dmesg > dmesg.txt

# write encrypted dmesg.txt to encrypted.img
golem> ./img2cgd write encrypted.img dmesg.txt
/cryptfile's passphrase:

# read encrypted.img and output decrypted contents to decrypted.txt
golem> ./img2cgd read encrypted.img decypted.txt
/cryptfile's passphrase:
golem> diff dmesg.txt decypted.txt

# but when entering a different password:
golem> ./img2cgd read encrypted.img decypted.txt
/cryptfile's passphrase:
golem> diff dmesg.txt decypted.txt
Binary files dmesg.txt and decypted.txt differ

Currently the utility writes the data length in a proprietary
format, but I'll convert it to use a real disklabel RSN.  Then it
can be used to create cgd-encrypted disk images.

This program can later be used as a base for a utility to create
cgd-encrypted images of a standard NetBSD build.  Idea for such a
tool and hence the inspiration for this simple example program from
Roland Dowdeswell.
2009-09-08 21:48:25 +00:00