Commit Graph

197732 Commits

Author SHA1 Message Date
pooka
e43200f113 Add test case from PR lib/44552 by Alexander Nasonov. I also lobbed
in a test for select(0, NULL, NULL, NULL, &tv) in there.
2011-02-12 10:28:08 +00:00
pooka
b981a177b2 Fix select() if no fds are set.
patch from Alexander Nasonov, PR lib/44552
2011-02-12 10:25:46 +00:00
tsutsui
638059b337 Pull basic SGC bus attachment from OpenBSD to test devices.
Disabled by default since there is no SGC drivers yet.
2011-02-12 05:15:39 +00:00
tsutsui
64fee8d971 Bump version for 362 and 382 framebuffer support. 2011-02-12 05:09:15 +00:00
tsutsui
94f17fd857 Add dumb framebuffer (no acceleration, no colormap) support
for HP362 and HP382.

Tested on A1473-69510 (HP362 VGA-res) and A1474-69511 (HP382 mid-res).
2011-02-12 05:08:40 +00:00
tsutsui
8cf6d1b4d0 Umm, fix typo. 2011-02-12 04:52:28 +00:00
jmcneill
8433f79cf6 add /usr/pkg/lib/X11/fonts to font directory list 2011-02-12 04:49:19 +00:00
tsutsui
5b1afbb01e Use __func__ to print (correct) function names. 2011-02-12 03:43:50 +00:00
nisimura
4ac8cbf6c5 add Thecus N1200 NAS information. It looks a fairly close sibling
of Freescale MPC8349mITX eval featuring I2C controlled satellite MCU.
2011-02-12 03:25:37 +00:00
matt
ccd44165c1 Add support for the IBM750GX (from Bob Lee). 2011-02-12 01:02:12 +00:00
jym
96293e60de BOOTMODEL disappeared when CD ISOs switched from ramdisk to CD-ROM as
root file system 2 years ago.

CMD sed + MTREE is turned into COPY (as does amd64).
2011-02-11 23:56:17 +00:00
christos
13b2862bfd Tell the groff and friends about libsaslc(3).
Sort and fix whitespace on mdoc.local.
Add libisns to doc2html.
2011-02-11 23:47:49 +00:00
christos
19c14409b9 Changes from Anon Ymous:
Make this library work.
- several API changes (see the manpage)
- take care to match the spec (hopefully)
- deal with comma delimited lists more systematically
- addition of the DIGEST-MD5 security layer
- syslog messages including debugging messages
- many coding simplifications, changes, rewrites, and additions (i.e.,
  stuff I can't recall at the moment)
- rewrite the manpage

The API changes have been heavily influenced by hooking this up to
postfix(1).

The ANONYMOUS, LOGIN, PLAIN, CRAM-MD5, DIGEST-MD5, and GSSAPI
authentication mechanisms have been tested and shown to work for
authentication with a postfix(1) server using the cyrus-sasl library.
(A postfix(1) libsaslc(3) client wrapper was used for the testing and
will be committed separately.)

The EXTERNAL authentication mechanism should work (it is pretty
simple), but it has not been tested with any servers.

The security layers of DIGEST-MD5 and GSSAPI have also not been tested
with any servers.  Do any SMTP servers really support these security
layers?  Postfix with cyrus-sasl does not, either as a client or
server, even though the cyrus-sasl library has support for the layers.

The new DIGEST-MD5 security layer encode/decode routines have been
tested against themselves (not terribly useful), but nothing else.  As
they use the openssl EVP_* routines (which aren't well documented) to
do the cryptography, the "auth-conf" layer may or may not actually
match the rfc2831 standard.  The "auth-int" layer is much more likely
to be in compliance.

Note: I have left support for a version of AES in the DIGEST-MD5 code
even though it is not part of rfc2831 (May 2000).  This flavor of AES
was in a later draft (June 2003) that was included in the cyrus-sasl
distribution, but changed to a different flavor of AES in subsequent
drafts (and DES disappeared).  AFAIKT, none of those drafts have been
accepted; the last I could find expired in Sept 2007.  rfc2831 is
still listed as standards track.  The AES support is very minor (some
table entries and a few lines of code to construct the IV) and I was
asked to leave it for now.

Hopefully there are not too many bugs, memory leaks, or
spelling/grammar errors.  My apologies in advance.

BTW, if you would prefer to use cyrus-sasl, install it (e.g., from
pkgsrc), and then rebuild postfix with HAVE_CYRUS_SASL defined.
2011-02-11 23:44:42 +00:00
jmcneill
26d15d7df2 add bus_space_mmap support for BUS_SPACE_MAP_PREFETCHABLE, ok matt@ 2011-02-11 23:08:38 +00:00
jmcneill
ee6551845f add optional MD pmap_mmap_flags macro for passing flags between cdev_mmap
and pmap_enter, ok matt@
2011-02-11 23:05:55 +00:00
drochner
7d0822f82d invalidate the secpolicy cache bin the PCB before destroying, so that
the refcount in the (global) policies gets decremented
(This apparently was missed when the policy cache code was copied
over from KAME IPSEC.)
From Wolfgang Stukenbrock per PR kern/44410, just fixed differently
to avoid unecessary differences to KAME.
2011-02-11 17:53:35 +00:00
pooka
902ef4c559 +tp 2011-02-11 15:38:55 +00:00
pooka
f9f796a4cf add test for fix in rev 1.36 of librumphijack/hijack.c 2011-02-11 15:38:14 +00:00
pooka
84d55c436c play the important typecast game 2011-02-11 14:02:12 +00:00
pooka
bec0b44f57 Use sshd's pidfile instead of $! and wait for the pidfile to appear.
This plugs a race condition where sshd did not have a chance to
open a sucket before we attempted to connect to it.
2011-02-11 13:19:46 +00:00
pooka
7f4c3562b7 ssh mostly ignores the return value of select(), so if the timeout
expired it would assume that all input set descriptors had activity.

In case we get rv == 0 from the poll backend, zero out the fd sets
to signal that in fact no descriptors have activity.

Before this commit ssh was "jittery" when run through a rump tcp/ip
stack (interactive sessions kept blocking on stdin and you had to
"peddle" the connection).  Now it works smoothly ... or at least
smoothly enough so that this commit could be done through a rump
tcp/ip stack:
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     ssh        125    0 tcp    localhost.65517       cvs.netbsd.org.22
2011-02-11 12:46:41 +00:00
phx
0afe193f6d Sorted out NH230 based bords. Added NH230 IRQ mapping.
LevelOne FNS-5000B seems identical to QNAP TS-201.
2011-02-11 12:26:04 +00:00
tteras
093488593b From Mats E Andersson <debian@gisladisker.se>: Fix fprintf format specifier
usage from previous patch.
2011-02-11 10:07:19 +00:00
yamt
0741257326 puffs_msg_wait: check PARKFLAG_HASERROR before PARKFLAG_CALL. PR/44240. 2011-02-11 09:15:45 +00:00
matt
2575f76fd8 Add compat entries for libdevmapper, libdm, and liblzf 2011-02-11 06:54:18 +00:00
matt
0bfa9193d1 Add compat entries for libdevmapper and liblzf 2011-02-11 06:50:13 +00:00
matt
df16334078 Add missing MKDEBUG support 2011-02-11 06:38:39 +00:00
matt
accc87635b Use LIBDPLIBS 2011-02-11 06:35:26 +00:00
jmcneill
389873dd65 attach drm hw drivers to 'drm' not 'vga' 2011-02-11 01:59:56 +00:00
jmcneill
65c6f254b0 Make DRM work with genfb again. 2011-02-11 01:13:02 +00:00
rmind
cdc76ff97e Replace uvm_aobj_cache with kmem(9). 2011-02-11 00:21:18 +00:00
tsutsui
14d39e456d Fix botch in previous revision. Sorry for a stupid change. 2011-02-10 23:25:11 +00:00
matt
94810ded7b Only define DPLIBC if LIBC_SO is not empty otherwise we an errant
dependency on DESTDIR.
2011-02-10 21:55:33 +00:00
drochner
2cef52fe83 whan compressing, set the Z_FINISH flag to zlib to tell that
the data chunk is the final one, which makes that zlib issues the
proper termination marker
(KAME IPSEC does this, but doesn't check eagerly in the receive
path, so the missing termination didn't cause problems so far)
closes my PR kern/44539
being here, replace the Z_PARTIAL_FLUSH flag which is marked
deprecated by zlib by Z_SYNC_FLUSH in the decompression path
(tested with IPv4 IPCOMP on i386)
2011-02-10 21:17:49 +00:00
skrll
b5b02ca20c Spell uvm_fault_lower_neighbor correctly in UVMHIST_FUNC by using
__func__
2011-02-10 21:05:52 +00:00
drochner
2e4e5505e2 Don't store temporary values in the opencrypto session data struct which
can be shared by multiple threads -- pass them on the stack instead.
Add some "const" to document this. (One _could_ use the session struct
for temporary stuff with proper locking, but it seems unnecessary here.)
Also remove the unused SW_crc member in the session struct.
From Wolfgang Stukenbrock per PR kern/44472.
2011-02-10 21:00:42 +00:00
matt
5f8868401d Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.
2011-02-10 20:57:22 +00:00
matt
fbf990df1a Fix liblua_g.a and libterminfo_g.a to be -unknown- debuglib instead of
proflibs.
2011-02-10 20:56:02 +00:00
drochner
67244067f4 in rev.1.192 of ip_output.c the semantics of ip_output() was changed:
Before, setting the IP_RAWOUTPUT flag did imply that the ip_id
(the fragmentation thing) was used as-is.
Now, a new ID is diced unless the new IP_NOIPNEWID flag is set.
The ip_id is part of the data which are used to calculate the hash
for AH, so set the IP_NOIPNEWID flag to make sure the IP header
is not modified behind AH's back. Otherwise, the recipient will detect
a checksum mismatch and discard the packet.
2011-02-10 20:42:30 +00:00
drochner
6c21d3ecdd -in opencrypto callbacks (which run in a kernel thread), pull softnet_lock
everywhere splsoftnet() was used before, to fix MP concurrency problems
-pull KERNEL_LOCK where ip(6)_output() is called, as this is what
 the network stack (unfortunately) expects, in particular to avoid
 races for packets in the interface send queues
From Wolfgang Stukenbrock per PR kern/44418, with the application
of KERNEL_LOCK to what I think are the essential points, tested
on a dual-core i386.
2011-02-10 20:24:27 +00:00
pooka
9285c5cc41 update /dev/null rump minor to make test pass again 2011-02-10 20:10:54 +00:00
jruoho
203353a166 FSCK. 2011-02-10 19:25:42 +00:00
matt
9767c9385f Add missing / 2011-02-10 19:17:35 +00:00
matt
ad579a7d9b Add debugdirs for o32 and 64 2011-02-10 19:12:44 +00:00
jruoho
63debd529f ACID, BFS, CIL, DBMS, DFA, FSM, GPS, LLVM, MCC, ML, NFA, NP, NTM, OOSE, OTS,
PDA, RSS, RUP, SDL, SDT, TECO, TM, TP, UCS, XOR.
2011-02-10 17:52:18 +00:00
phx
7997b707ad Fixed typo. Added AMS150. 2011-02-10 17:11:33 +00:00
jym
32dd76bd9a For i386, include MONOLITHIC for INSTALL rather than GENERIC. While here,
remove drm drivers, we don't need them for install.

i386 GENERIC has FFS and ELF support compiled as modules, so we hit
an interesting "chicken-egg" situation when the kernel attempts to mount
a ffs ramdisk, while the module might be contained inside... the ramdisk.

Interesting scenario: my netbsd-INSTALL.gz testing involved a QEMU image
which already contained an installed system, including modules. So the
bootloader was able to get the ffs.kmod, and lead to a successful mount
of the ramdisk.

Caught off-guard by gson@ automated builds... Erf. My fondest apologies.
Lesson learnt. Hopefully, this will unbreak the floppy install.
Waiting for the release build to finish...
2011-02-10 16:49:19 +00:00
njoly
96506c0e2a Do initialise allocated file system args structures for puffs and nfs
(fix some puffs tests failures with MALLOC_OPTIONS=J).
While here, detect and report args allocation failure.

ok from pooka.
2011-02-10 16:35:01 +00:00
pooka
22c822c7f3 Make vmapbuf() return success/error and make physio deal with a
failure.
2011-02-10 14:46:44 +00:00
rmind
7d1dd86a47 - Fix man pages list for MKNPF=no case. Based on a patch from Scott Ellis.
- Fix build with MKNPF=yes and MKIPFILTER=no as well; close PR/44512.
2011-02-10 14:04:29 +00:00