Commit Graph

183058 Commits

Author SHA1 Message Date
yamt
6f5397de19 assertions 2009-08-16 11:06:37 +00:00
yamt
5fa695e8c1 reduce differences between x86 ports. 2009-08-16 11:04:48 +00:00
yamt
83723a32c5 fix a comment typo. 2009-08-16 11:02:24 +00:00
yamt
273f17a18a kauth_cred_free: add an assertion. 2009-08-16 11:01:12 +00:00
yamt
77d977dcbc assertion 2009-08-16 11:00:20 +00:00
yamt
d59302b0e4 struct lwp -> lwp_t for consistency 2009-08-16 10:59:25 +00:00
yamt
c55eff3413 g/c bio_ops. 2009-08-16 10:57:17 +00:00
yamt
894e4c4207 comments. 2009-08-16 10:57:01 +00:00
yamt
a052624ac4 remove a stale comment. 2009-08-16 10:51:21 +00:00
matt
3308ff5cbf Only include <sys/exec_aout.h> if NLIST_AOUT is defined.
Don't define NLIST_AOUT for mips anymore.
2009-08-16 03:56:26 +00:00
christos
3ac3892a2a use strrchr to find the last @ because we might want the username to contain
user@domain.
2009-08-16 02:49:23 +00:00
macallan
f2c548ef3a add the missing wscons bits so this kernel builds again
needs testing on actual hardware which I don't have.
2009-08-16 00:24:59 +00:00
matt
c980adf2e1 Don't include <sys/exec_aout.h>. Let those who want it explicitly include it. 2009-08-15 23:46:02 +00:00
matt
209a0b42e3 Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to
do it for us.
2009-08-15 23:44:57 +00:00
matt
7bb407d6e3 Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to
do it for you.
2009-08-15 23:39:35 +00:00
dsl
59ede5ae24 Always add an REC_D char (usually \n) as the last sort key char - we
almost always need one.
But do ADD it, instead of overwriting the last byte of the last key since
that may be requesting the other end of the sort order.
There is no need to check for space for the line after adding the key,
but we might as well check before - just to optimise that case.
This might fix some of the sort bugs - but not the one I'm looking at!
2009-08-15 21:26:32 +00:00
wiz
e671c9cf08 Fix typo. 2009-08-15 20:44:56 +00:00
christos
bcbc23bd8f add -p <tmpdir> option to override $TMPDIR from the command line like linux
has.
2009-08-15 20:02:28 +00:00
snj
0215f7165d Fix a 13 year old buffer overrun. From Henning Petersen in
PR port-mvme68k/41857.
2009-08-15 19:16:45 +00:00
dsl
9987745061 Remove reference to db.h by using separate ptr+len fields for the only
structure that used it.
Pass end of keybuf area, not size to enterkey() - largely to remove a
variable who'se use isn't obvious from the name!
The structute of this code sucks.
2009-08-15 18:40:01 +00:00
dsl
477a33f936 linebuf and linebuf_size are only used inside seq() - which also not
only has its own static variable, but will also extend the buffer.
Remove linebuf/size and change seq() to use a private, locally managed
buffer.
2009-08-15 16:50:29 +00:00
joerg
24b34460e5 Add nbperf(1) 2009-08-15 16:35:41 +00:00
joerg
03c8ba1c27 Add nbperf(1), a minimal perfect hash function generator.
Implemented are the 3-graph BDZ algorithm as well as the
2-graph and 3-graph CHM algorithms. All algorithms have expected
linear run time and the smallest functions need around 2.85 bit/key.
2009-08-15 16:21:04 +00:00
dsl
5e8c7b5dbd Remove the unused 'DBT *key' parameter from seq(). 2009-08-15 16:10:40 +00:00
dsl
a3b5c4400f In makeline() change 'pos' from 'char *' to 'u_char *' and remove all
the casts associated with its use.
None of the uses can possibly care about the signedness of the pointer.
2009-08-15 14:31:48 +00:00
uwe
1bf34cd773 Add keylock.h to INCS so that it's actually installed (hi, marc!) 2009-08-15 14:22:54 +00:00
joerg
7b3e0c602c Fix markup. 2009-08-15 14:18:05 +00:00
pgoyette
345b8f1066 1. Move the mode_select functionality into common code (in st.c) and
invoke the common routine for both scsi and atapi tapes.

2. Replace a numeric constant with some sizeof's when calculating the
   size of the mode_select command buffer, clear the entire buffer, and
   KASSERT to ensure the page_0_size loaded from quirk table is valid.

3. Add a quirk for my Seagate Travan-40 tape drive.

As discussed on tech-kern@

Addresses my PR kern/34832
2009-08-15 12:44:55 +00:00
macallan
89669ce394 add FBTYPE_SUNTCX - forgot to commit that along with the tcx(8) update
found by he@
2009-08-15 11:33:49 +00:00
kiyohara
60a987241b Use __UNCONST(). 2009-08-15 10:18:17 +00:00
cegger
e5bc6032d2 grammar fix: a in-kernel -> an in-kernel 2009-08-15 09:59:12 +00:00
mbalmer
5f41e6ce40 Move keylock.h where it belongs. 2009-08-15 09:52:57 +00:00
dsl
2a0ab276a2 Ansify.
I'm looking at fixing the 'sort -n' fubars, but this code is an
inpeneterable mess - which needs some fixing first!
2009-08-15 09:48:46 +00:00
mbalmer
385b2e3631 Move the keylock.h header from sys/sys to sys/dev where it really belongs.
Add keylock options to the ALL kernel configuration.
2009-08-15 09:43:58 +00:00
mbalmer
d5042376f6 Add commented entries for keylock support. 2009-08-15 08:44:35 +00:00
mbalmer
366b1b6bb6 I take responsability for keylocks. 2009-08-15 08:35:22 +00:00
mbalmer
ca5052ae8c Mention keylock support. 2009-08-15 08:32:52 +00:00
mrg
b2b4f72c89 add sys/keylock.h to the sets list.
HI MARC.

(why is this in sys/keylock.h and not dev/keylock.h?)
2009-08-15 05:50:49 +00:00
christos
13492ada53 This code is really broken. It allocates struct sockaddr on the stack
and expects to work with IPV6. Tell the hints that we only want IPV4
for now, so that we don't try to bind to an IPV6 address as returned
by getaddrinfo, and then we bash in V4 in the family!
jeez
2009-08-15 01:25:54 +00:00
christos
e70d1f0896 don't try to free a buffer that came from the arguments, make a copy instead.
This can happen if we specify --port
2009-08-15 01:03:03 +00:00
snj
90fa142bc7 Kill an unnecessary comma. 2009-08-15 00:40:53 +00:00
mishka
9bb0c47608 Fix a typo. Found by joerg@. Thanks! 2009-08-15 00:26:52 +00:00
mbalmer
3ab4ce4739 Add support for multi-position electro-mechanical keylocks. An example
driver, gpiolock(4), is provided as an example how to interface real hardware.
A new securemodel, securemodel_keylock, is provided to show how this can
be used to tie keylocks to overall system security.  This is experimental
code.  The diff has been on tech-kern for several weeks.

Reviewed by many, kauth(9) integration reviewed by Elad Efrat; approved by
tonnerre@ and tron@.  Thanks to everyone who provided feedback.
2009-08-14 21:17:21 +00:00
dsl
eaf64f1b6c Move that majority of the 'SRCS+= foo.c' into the main Makefile.libkern.
Any .S files added by the arch/*/Makefile.inc cause the .c file to
be excluded.
Specific exclusions added using NO_SRCS to match previous files.
At least sparc, sparc64, i386, amd64 and vax GENERIC still build.
(There is a fubar with the naming of the byte-swap files ...)
2009-08-14 19:23:53 +00:00
drochner
c2819fbfcf avoid NULL dereference in log output if the command line parser
failed to extract a port number from the URL
2009-08-13 17:55:18 +00:00
drochner
d2c5cda8f9 give up root's supplementary group memberships when switching
to _sdpd._sdpd privileges, approved by plunky
2009-08-13 17:50:41 +00:00
cegger
46e5d74b06 recognize virtual cpu feature indicating guest state. 2009-08-13 11:27:34 +00:00
vanhu
0667dd70bd fixed a potential DoS in oakley_do_decrypt(), reported by Orange Labs 2009-08-13 09:18:28 +00:00
cegger
549d6a10af buildfix: if_indexlim is of type size_t 2009-08-13 09:04:03 +00:00
haad
5f6671a94a Allow undescribed, direct ioctls as used by Unix. This capability was removed in BSD, presumably because nothing used it any more.
Third party system software written for Unix (like ZFS) requires this to work without significant modifications.

Ok supremeleader@
2009-08-13 08:57:43 +00:00