]>
git.lizzy.rs Git - plan9front.git/log
stanley lieber [Wed, 4 May 2016 23:26:26 +0000 (19:26 -0400)]
9fs: add sites to 9front case.
cinap_lenrek [Wed, 4 May 2016 17:23:57 +0000 (19:23 +0200)]
hg: set $HOME when not already set to avoid silly uid lookups which can fail if theres no /adm/users
cinap_lenrek [Wed, 4 May 2016 16:53:31 +0000 (18:53 +0200)]
webfs: fix "fd out of range" error message
cinap_lenrek [Wed, 4 May 2016 15:49:11 +0000 (17:49 +0200)]
rootstub: remove alpha
cinap_lenrek [Wed, 4 May 2016 15:10:26 +0000 (17:10 +0200)]
libmach: more alpha
cinap_lenrek [Wed, 4 May 2016 15:00:45 +0000 (17:00 +0200)]
libmach: remove alpha stuff
cinap_lenrek [Wed, 4 May 2016 14:35:25 +0000 (16:35 +0200)]
remove support for import command in namespace files
cinap_lenrek [Wed, 4 May 2016 14:32:05 +0000 (16:32 +0200)]
cdproto: remove alpha
cinap_lenrek [Wed, 4 May 2016 14:24:13 +0000 (16:24 +0200)]
2c(1): -O=7
cinap_lenrek [Wed, 4 May 2016 14:21:53 +0000 (16:21 +0200)]
remove references to dec alpha from the manual
cinap_lenrek [Wed, 4 May 2016 14:11:48 +0000 (16:11 +0200)]
retire the dec alpha port
cinap_lenrek [Tue, 3 May 2016 22:25:03 +0000 (00:25 +0200)]
merge
cinap_lenrek [Tue, 3 May 2016 22:23:48 +0000 (00:23 +0200)]
ape: return plan9 error strings from strerror()
when _syserrno() fails to map a plan9 error string to
a unix error number, we copy the plan9 error string
to the per process error buffer "plan9err" and set
errno = EPLAN9.
when strerror() is called with EPLAN9, it returns
a pointer to the plan9err buffer.
spew [Tue, 3 May 2016 17:37:46 +0000 (12:37 -0500)]
correct reference to srv(3) in shr(3)
spew [Tue, 3 May 2016 17:35:19 +0000 (12:35 -0500)]
document example for shr(3)
spew [Tue, 3 May 2016 14:29:39 +0000 (09:29 -0500)]
add "snake" tracing effect to mole
spew [Mon, 2 May 2016 20:11:48 +0000 (15:11 -0500)]
fix e2 production to match regexp(6) and do it right this time
cinap_lenrek [Mon, 2 May 2016 19:16:04 +0000 (21:16 +0200)]
libregexp: reverting this shit. this is clearly broken.
stanley lieber [Mon, 2 May 2016 18:48:11 +0000 (14:48 -0400)]
libregexp/regcomp.c: fix parser for e2 production (thanks, spew)
spew [Mon, 2 May 2016 01:54:46 +0000 (20:54 -0500)]
just use wait in "system" call for awk, get rid of unix dependent status code divisor
spew [Mon, 2 May 2016 01:34:07 +0000 (20:34 -0500)]
null terminate await buffer for proper tokenize call
ben [Mon, 2 May 2016 01:22:35 +0000 (20:22 -0500)]
use rc in awk, remove awk from APEDIRS in cmd mkfile
cinap_lenrek [Sun, 1 May 2016 23:46:19 +0000 (01:46 +0200)]
/lib/ndb/common: update ip addresses for [BCHL].ROOT-SERVERS.NET
cinap_lenrek [Sun, 1 May 2016 22:35:52 +0000 (00:35 +0200)]
awk: dont require sed to build awk
cinap_lenrek [Sun, 1 May 2016 22:34:23 +0000 (00:34 +0200)]
awk: bring back ENVIRON[] support
cinap_lenrek [Sun, 1 May 2016 19:52:34 +0000 (21:52 +0200)]
acid: don't get fooled by spaces in convflt()
cinap_lenrek [Sun, 1 May 2016 19:51:15 +0000 (21:51 +0200)]
pc: use fpsave() instead of fpenv() to capture fp exception context
cinap_lenrek [Sun, 1 May 2016 01:03:12 +0000 (03:03 +0200)]
libregex: fix sed regression (thans spew)
I introduced a regression in sed that currently has screwed up
/sys/lib/man/secindex.
The issue is that sed 's/$/ foo/g' will actually replace the newline
character with foo instead of just appending at the end of the line.
This only makes a difference when sed is operating on a multiple line
record. The effect is a record like:
foo
bar
baz
becomes:
foo foobar foo baz foo
instead of
foo foo
bar foo
baz foo
stanley lieber [Sat, 30 Apr 2016 22:39:05 +0000 (18:39 -0400)]
upas/bayes/dump.c: regcomp.h is now located in this directory.
cinap_lenrek [Sat, 30 Apr 2016 03:12:20 +0000 (05:12 +0200)]
awk: temporarily fix for NaN() exceptions on 386
problem is NaN() produces a SNaN, not a QNaN... and on the 387,
storing 80 bit SNaN in register to a 64-bit memory destination
traps.
SNaN/QNaN encoding is machine specific. mips has the qiet/signaling
bit inverted.
disabling fp exception in main() now, but that sucks.
i think the best solution would be to not even call strtod() in
is_number() but just write a regex or a little state machine that
will only accept numbers without nan and ±inf.
that might even make it faster and is more robust than relying on
the os's strtod() details.
cinap_lenrek [Fri, 29 Apr 2016 18:18:28 +0000 (20:18 +0200)]
ape/libsec: fix nuke target to remove /$objtype/lib/ape/libsec.a instead of /$objtype/lib/libsec.a
aiju [Fri, 29 Apr 2016 16:11:29 +0000 (18:11 +0200)]
handle NaN in awk (thanks spew)
stanley lieber [Fri, 29 Apr 2016 03:59:59 +0000 (23:59 -0400)]
awk: fix mkfile for cross-compiles (thanks, spew)
cinap_lenrek [Thu, 28 Apr 2016 19:22:26 +0000 (21:22 +0200)]
remove ape/regexp.h, remove leftover #pragma lib oldlibregexp.$O from upas/bayes/regexp.h
cinap_lenrek [Thu, 28 Apr 2016 18:53:53 +0000 (20:53 +0200)]
merge
cinap_lenrek [Thu, 28 Apr 2016 18:52:36 +0000 (20:52 +0200)]
closed spew branch
ben [Thu, 28 Apr 2016 17:07:24 +0000 (12:07 -0500)]
fix printing a char from an empty string
ben [Thu, 28 Apr 2016 16:20:38 +0000 (11:20 -0500)]
fix printing a char from a string that starts with a rune
ben [Thu, 28 Apr 2016 16:07:43 +0000 (11:07 -0500)]
fix unsigned printing for awk
ben [Thu, 28 Apr 2016 13:26:57 +0000 (08:26 -0500)]
merge default
ben [Thu, 28 Apr 2016 13:05:42 +0000 (08:05 -0500)]
get rid of size printing
ben [Thu, 28 Apr 2016 00:56:39 +0000 (19:56 -0500)]
check program size
cinap_lenrek [Wed, 27 Apr 2016 23:53:09 +0000 (01:53 +0200)]
rune(2): add Runeerror reencoding considerations in BUGS section (thanks aiju)
ben [Wed, 27 Apr 2016 22:36:43 +0000 (17:36 -0500)]
better memory management of threads (thanks knuth)
ben [Wed, 27 Apr 2016 13:20:54 +0000 (08:20 -0500)]
merge in master
ben [Wed, 27 Apr 2016 13:09:16 +0000 (08:09 -0500)]
use Beof for awk port
ben [Wed, 27 Apr 2016 12:52:41 +0000 (07:52 -0500)]
remove ape regexp library, add utility for awk native port
cinap_lenrek [Wed, 27 Apr 2016 10:59:06 +0000 (12:59 +0200)]
libjson: add slack space to literal string buffer to handle bad runes (thanks mischief)
if the input string contains invalid utf-8, runetochar() produces
unicode replacement characters that can overflow the literal buffer.
as the overflow check is done after runetochar(), add UTFmax bytes
of slack space avoiding the issue.
ben [Wed, 27 Apr 2016 03:26:03 +0000 (22:26 -0500)]
remove old libregexp files; add headers for upas/bayes
ben [Wed, 27 Apr 2016 03:23:44 +0000 (22:23 -0500)]
New libregexp and APE ported to native
cinap_lenrek [Mon, 25 Apr 2016 22:10:47 +0000 (00:10 +0200)]
abaco(1): remove readweb
Matthew Veety [Mon, 25 Apr 2016 21:49:31 +0000 (17:49 -0400)]
made abaco's gui respect $font and made readweb respect most installations
cinap_lenrek [Fri, 22 Apr 2016 01:41:06 +0000 (03:41 +0200)]
rsa: rename getkey() to getrsakey(), document rsa2csr in rsa(8)
cinap_lenrek [Fri, 22 Apr 2016 00:33:29 +0000 (02:33 +0200)]
libsec: implement server side SCSV preventing silly client fallbacks
silly clients (web*) reconnect when the handshake failed with a lower
protocol version, which allows downgrade attacks (POODLE). but instead
of stopping this madness, they invented a new magic TLSID to indicate
to the server that this connection attempt is a retry, and rely on the
server to notice and stop them from sabotaging themselfs.
cinap_lenrek [Thu, 21 Apr 2016 21:29:59 +0000 (23:29 +0200)]
libsec: order tlshand cipher suits by: keyexchange>=cipher>=hash, ignore client preference
client preference is usualy crazy, so just ignore it.
we always want the diffie hellman suits before static
rsa and prefer chacha over aes-gcm.
cinap_lenrek [Thu, 21 Apr 2016 19:25:33 +0000 (21:25 +0200)]
rsagen: increase default key size to 2048 bits
cinap_lenrek [Thu, 21 Apr 2016 18:41:19 +0000 (20:41 +0200)]
libsec: remove affine coordinate point operations from ecc
we now just do point addtion in jacobian coordinate system, and
convert the result to affine when s->z == nil.
cinap_lenrek [Wed, 20 Apr 2016 18:09:59 +0000 (20:09 +0200)]
libsec: implement elliptic curve group operations in jacobian coordinate system
cinap_lenrek [Tue, 19 Apr 2016 22:41:03 +0000 (00:41 +0200)]
rcpu: make sure not to leak /env/fn#server and /env/fn#aanserver for drawterm (thanks mischief)
cinap_lenrek [Mon, 18 Apr 2016 17:24:57 +0000 (19:24 +0200)]
libsec: implement server side ECDHE key exchange with secp256r1, move DH state in TlsSec structure, simplify
implement ECDHE key exchange with secp256r1 on the server side, providing
perfect forward secrecy (tho slowly).
it is easier to just keep the ECDH/DH state in the TlsSec structure,
which fits better with the grouping of the functions. we do the cleanup
in tlsConnectionFree() now, so a lot of error handling logic could go
away.
reinvestigated some error paths and removed the ones that cannot error.
move functions to fit the logical grouping.
combine the code for signing handshake hashes (for client certs) and
DH parameters. provide digestDHparams() function to be shared between
server and client code.
cinap_lenrek [Mon, 18 Apr 2016 17:07:02 +0000 (19:07 +0200)]
webfs: fix memory leak of serverName in tlswrap()
cinap_lenrek [Sun, 17 Apr 2016 05:33:35 +0000 (07:33 +0200)]
rsa(8): provide example for converting OpenSSL generated PEM file to factotum
cinap_lenrek [Sun, 17 Apr 2016 05:20:54 +0000 (07:20 +0200)]
libsec: massive cleanup of tlshand.c
don't pass or generate sessionID's. this was never used nor
actually implemented and leaks the process pid.
get rid of version and random field duplications, move TlsSec
structure into TlsConnection.
make msgRecv() clear the message first, get rid of unneccesary
msgClear() calls.
cinap_lenrek [Sat, 16 Apr 2016 21:36:55 +0000 (23:36 +0200)]
libsec: fix memory leak of RSApub, avoid parsing certificate twice to extract rsa public key
instead of letting factotum_rsa_open() parse the certificate,
we pass in the rsa public key which is then matched against the
factotum keyring. this avoids parsing the x509 certificate
twice.
the sec->rsapub was not freed, so free it in tlsSecClose()
cinap_lenrek [Sat, 16 Apr 2016 02:16:10 +0000 (04:16 +0200)]
libsec: recognize and decode PKCS#8 wrapped RSA private keys for auth/asn12rsa
example usage:
auth/pemdecode 'PRIVATE KEY' test.pem | auth/asn12rsa
cinap_lenrek [Fri, 15 Apr 2016 21:54:00 +0000 (23:54 +0200)]
webfs: change %H (hostname) format to %N to not collide with encodefmt's %H (hex)
cinap_lenrek [Fri, 15 Apr 2016 21:51:52 +0000 (23:51 +0200)]
libsec: x509: convert to UTF8 from BMPString and UNIString, reject \0 bytes
cinap_lenrek [Wed, 13 Apr 2016 20:19:37 +0000 (22:19 +0200)]
libc: fix out of bounds access in dirpackage(), simplify
- dirpackage() was not checking if the stat entry lies within
the buffer. fixed.
- simplify dirpackage(), as we process all the bytes from
the buffer, we do not need to track "ss" here as its the same
as "ts".
- zero Dir* array pointer early in dirread() and dirreadall()
and avoid calling dirpackage on <= buffer length.
cinap_lenrek [Wed, 13 Apr 2016 15:00:20 +0000 (17:00 +0200)]
kbdfs: add shift+altgr table 7 for polish keymaps
cinap_lenrek [Wed, 13 Apr 2016 13:54:31 +0000 (15:54 +0200)]
Subject: typo: ee corrected (thanks Eric Lindblad)
sorry there were entries as
3 27 '§
3 27 '½
should have been
3 27 '§
3 43 '½
attached is a corrected version
cinap_lenrek [Wed, 13 Apr 2016 13:31:04 +0000 (15:31 +0200)]
fix estonian keymap (thanks Eric Lindblad)
The /sys/lib/kbmap/ee file seemed to have CRs in it. If a first column in the table
(for modifier key) as 4 is for Alt Gr + Shift then the attached (UTF-8 without BOM)
should work as a replacement ee file.
Best Regards,
Eric Lindblad
cinap_lenrek [Wed, 13 Apr 2016 00:21:03 +0000 (02:21 +0200)]
python: make hashlib.py fallback to openssl in case of old python binary
cinap_lenrek [Tue, 12 Apr 2016 23:09:45 +0000 (01:09 +0200)]
remove unused liboventi
cinap_lenrek [Tue, 12 Apr 2016 23:08:13 +0000 (01:08 +0200)]
ktrace: sign extend stack dump pc for amd64
cinap_lenrek [Tue, 12 Apr 2016 23:06:34 +0000 (01:06 +0200)]
libc: remove unneeded #include <auth.h> for crypt() and netcrypt()
cinap_lenrek [Tue, 12 Apr 2016 22:34:48 +0000 (00:34 +0200)]
libdraw: avoid BPSHORT()/BPLONG() expansion, cleanup loadchar(),cachechars()
assigning the expression value to a temporary variable in
BPSHORT() and BPLONG() saves arround 2K of text in rio on
arm and arround 1K on amd64.
loadchar(): use the passed in "h" as the char index instead
of recomputing it from c-f->cache. dont recompute wid.
cachechars(): do cache lookup and find oldest entry in a
single loop pass.
cinap_lenrek [Tue, 12 Apr 2016 11:37:21 +0000 (13:37 +0200)]
add danish keymap (thanks Eric Lindblad)
cinap_lenrek [Mon, 11 Apr 2016 18:43:48 +0000 (20:43 +0200)]
ape: explicitely list the ape libs to build in mkfile
cinap_lenrek [Mon, 11 Apr 2016 18:39:12 +0000 (20:39 +0200)]
ape: removing openssl
cinap_lenrek [Mon, 11 Apr 2016 18:31:14 +0000 (20:31 +0200)]
python: remove openssl support, use ape/libsec for cryptographics hash functions
cinap_lenrek [Mon, 11 Apr 2016 18:27:50 +0000 (20:27 +0200)]
gs: replace openssl aes implementation with ape/libsec
cinap_lenrek [Mon, 11 Apr 2016 18:23:34 +0000 (20:23 +0200)]
ape: add libauth, libbio, libmp and libsec as replacements for openssl
cinap_lenrek [Sun, 10 Apr 2016 18:39:10 +0000 (20:39 +0200)]
hg: create system wide /sys/lib/hgrc to enabled hgwebfs extension
the openssl we currently use is outdated and will be removed
soon. webfs will handle the https for us with native tls code.
keys have to be stored in factotum for everyone who also wants
to commit directly.
cinap_lenrek [Sun, 10 Apr 2016 18:24:20 +0000 (20:24 +0200)]
libauth: remove unneeded includes for authsrv.h, avoid pulling in dependency for rerrstr()
cinap_lenrek [Sun, 10 Apr 2016 18:23:18 +0000 (20:23 +0200)]
libsec: make #include headers consistent
cinap_lenrek [Sun, 10 Apr 2016 18:22:00 +0000 (20:22 +0200)]
libsec: dont use mips assembly routines for spim, wrong endianess
cinap_lenrek [Sun, 10 Apr 2016 18:20:53 +0000 (20:20 +0200)]
libmp: fix build for spim, reduce by the mips assembly files
cinap_lenrek [Sun, 10 Apr 2016 18:18:21 +0000 (20:18 +0200)]
hg: set mercurial.url.has_https when hgwebfs extension is in use
this allows the use of SSL/HTTPS even when python is not build
with openssl support.
cinap_lenrek [Sun, 10 Apr 2016 01:01:37 +0000 (03:01 +0200)]
ape: move compatibility libc.h to lib9 directory and incooperate needed functions for ape/mp (wip)
cinap_lenrek [Sun, 10 Apr 2016 00:54:29 +0000 (02:54 +0200)]
ape: remove broken 9errstr.c
cinap_lenrek [Sun, 10 Apr 2016 00:52:31 +0000 (02:52 +0200)]
ape: add internal _NSEC() function and make gettimeofday() use it
cinap_lenrek [Sun, 10 Apr 2016 00:35:01 +0000 (02:35 +0200)]
libmp: make includes consistent, make test program compile under ape (work in progress)
cinap_lenrek [Sat, 9 Apr 2016 22:00:37 +0000 (00:00 +0200)]
libdraw: dont postnote to pid==0 in ekill()
cinap_lenrek [Sat, 9 Apr 2016 19:29:11 +0000 (21:29 +0200)]
merge
cinap_lenrek [Sat, 9 Apr 2016 19:27:25 +0000 (21:27 +0200)]
add missing target for antiword in /sys/src/cmd/aux/mkfile (thanks _sl)
aiju [Sat, 9 Apr 2016 18:51:24 +0000 (20:51 +0200)]
aes(2): mention aesCBC bug
cinap_lenrek [Fri, 8 Apr 2016 20:00:16 +0000 (22:00 +0200)]
listen(8): fix html rendering
cinap_lenrek [Fri, 8 Apr 2016 19:53:48 +0000 (21:53 +0200)]
listen(8): document tcp17019 rcpu service
cinap_lenrek [Fri, 8 Apr 2016 19:20:15 +0000 (21:20 +0200)]
tls(3): document support for TLSv1.1 and TLSv1.2
cinap_lenrek [Thu, 7 Apr 2016 19:51:56 +0000 (21:51 +0200)]
qball(2): fix bad manpage reference