summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-13Provide mips64 with kernel-facing TCB_{GET,SET} macros that store itPhilip Guenther
in struct mdproc. With that, all archs have those and the __HAVE_MD_TCB macro can be unifdef'ed as always defined. ok kettenis@ visa@ jsing@
2017-04-12Inspired by recent dhcrelay changes, bring in stricter CFLAGS!Kenneth R Westerback
2017-04-12One 'foo' per function is enough. Rename one to eliminate shadowing.Kenneth R Westerback
2017-04-12Add missing function prototypes. Mark kw_cmp() as static like allKenneth R Westerback
its friends.
2017-04-12The kernel has to slightly different version of SipHash_Final but withFlorian Obser
the same bug as just fixed in userland: ---------- SipHash_Final() was assuming the digest was 64-bit aligned, resulting in misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping ok florian millert ---------- OK deraadt@
2017-04-12Use calloc(3) and recallocarray(3) instead of *alloc* + memset(0).Theo Buehler
ok deraadt
2017-04-12SipHash_Final() was assuming the digest was 64-bit aligned, resulting inTheo de Raadt
misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping ok florian millert
2017-04-12New strstr() implementation from musl libc by Rich Felker. ThisTodd C. Miller
version uses the two-way string matching algorithm and is faster than the old implementation. With this change, ports that check for strstr having linear complexity time strstr will no longer replace the libc strstr with a private version. OK deraadt@ espie@
2017-04-12Prevent inosused from wrapping when soft updates is enabled whileTodd C. Miller
scanning the used inode map. The code as written assumes inosused is signed but this is no longer the case. OK deraadt@
2017-04-12isblank() is ANSI C since C99, no need to provide a replacement.Todd C. Miller
OK deraadt@
2017-04-12bluhm discovered "script < /dev/null" attempts tty operations in violationTheo de Raadt
of pledge. We can wrap isatty() around those codepaths. ok bluhm beck
2017-04-12Add comment what the test does.Alexander Bluhm
2017-04-12RTM_PROTO3 messages should not trigger a resolv.conf check.Kenneth R Westerback
2017-04-12The pledge sigkill test is an outdated copy of sigabrt. Remove theAlexander Bluhm
former and activate the latter. OK semarie@
2017-04-12Shuffle another function.Kenneth R Westerback
2017-04-12Add comment how the test works.Alexander Bluhm
2017-04-12explicitly set the ownership on installed include files as wellJonathan Gray
2017-04-12Invoke install -d for each directory in the /usr/lib/clang hierarchyJonathan Gray
as they aren't in mtree. Problem with wrong ownership and permission of directories reported by sthen@. ok deraadt@ sthen@ tb@
2017-04-12Correct a format stringPhilip Guenther
Problem noted by Michael W. Bombardieri (mb(at)ii.net) ok mlarkin@ deraadt@
2017-04-11- Mention LIBCXX, prompted by espie@.Stuart Henderson
2017-04-11- Mention LIBCXX, prompted by espie@.Stuart Henderson
- Make it clear that CLANG_ARCHS, GCC3_ARCHS, GCC4_ARCHS refer to the base compiler. Change "Clang 3.9.1" to just "Clang".
2017-04-11Ensure that the version part of $_url_base is correctly removed byRobert Peichaer
using $VNAME (x.y) instead of $VERSION (xy). This fixes the problem that the version part ended up in installurl which is wrong anyway and also confuses pkg_add. Thanks to florian@ and trondd at kagu-tsuchi dot com for reporting this. OK tb@
2017-04-11syncTheo de Raadt
2017-04-11shorten introductory sentence and make deprecation clearer;Ingo Schwarze
disgussed with deraadt@
2017-04-11Add SIOCATMARK to allow pledge("inet") programs to call sockatmark(3).Alexander Bluhm
from Matthias Pitzl; OK deraadt@
2017-04-11Recognize break conditions and enter ddb if ddb.console is set.Mark Kettenis
ok visa@, deraadt@
2017-04-11Partially revert previous mallocarray conversions that containDavid Hill
constants. The consensus is that if both operands are constant, we don't need mallocarray. Reminded by tedu@ ok deraadt@
2017-04-11Shuffle route/interface changing functions together into kroute.c. Try toKenneth R Westerback
group related functions in kroute.c together and comment them a bit. No intentional functional change.
2017-04-11Revert ssl_asn1.c r1.50 - CBB and freezero(3) do not play nicely together.Joel Sing
Back this out while we investigate and implement a solution. Found the hard way by sthen@
2017-04-11document more thoroughly the special status of modules gnu, imake, perl5Marc Espie
(for historical reasons) okay aja@
2017-04-11Fold priv_write_file() into its only remaining userKenneth R Westerback
priv_write_resolv_conf() and move the latter into kroute.c with all its priv_ friends. No intentional functional change.
2017-04-11Use freezero(3) for the imsg framework in imsg_free(3) and ibuf_free(3).Reyk Floeter
In our privsep model, imsg is often used to transport sensitive information between processes. But a process might free an imsg, and reuse the memory for a different thing. iked uses some explicit_bzero() to clean imsg-buffer but doing it in the library with the freezero() is less error-prone and also benefits other daemons. OK deraadt@ jsing@ claudio@
2017-04-11Revise 'struct fpreg' and dump floating-point register in core dumps. AlsoMark Kettenis
reset the floating-point register state upon exec. ok guenther@
2017-04-10Rework -L logic to use the idiom used in handling the leases file.Kenneth R Westerback
i.e. open FILE during program set up and use the FILE created for the rest of the program lifetime after dropping privilege and pledge()'ing. No need for passing messages to the priv process. Tweak lease file handling a bit in passing. Monitoring the -L file with external programs like sysutils/entr still works. Looks good to sthen@.
2017-04-10new X25519(3) manual page;Ingo Schwarze
from Dr. Stephen Henson <steve@openssl.org>, OpenSSL commit d218f3c3
2017-04-10Use freezero() for the internal opaque structures, instead of the currentJoel Sing
explicit_bzero()/free(). Less code and potentially less overhead.
2017-04-10Use freezero() for X25519 keys - same result with more readable code.Joel Sing
2017-04-10document three additional functions;Ingo Schwarze
from Emilia Kasper <emilia at openssl dot org>, OpenSSL commit 4ac139b4
2017-04-10Rework and significantly extend TLS name verification tests to matchJoel Sing
changes in libtls.
2017-04-10Rework name verification code so that a match is indicated via an argument,Joel Sing
rather than return codes. More strictly follow RFC 6125, in particular only check the CN if there are no SAN identifiers present in the certificate (per section 6.4.4). Previous behaviour questioned by Daniel Stenberg <daniel at haxx dot se>. ok beck@ jca@
2017-04-10syncTheo de Raadt
2017-04-10freezero() the key block; simpler code and less of it.Joel Sing
2017-04-10Use freezero() for i2d_SSL_SESSION() - one line of code instead of three.Joel Sing
In this case the memory allocated can also be significant, in which case freezero() will have less overhead than explicit_bzero() (munmap instead of touching all of the memory to write zeros).
2017-04-10Fix tabs in example code.Jeremie Courreges-Anglas
2017-04-10fix some .Xr errors that jmc@ found with mdoclint(1)Ingo Schwarze
2017-04-10new manual page SSL_get_server_tmp_key(3)Ingo Schwarze
from Matt Caswell <matt@openssl.org>, OpenSSL commit 508fafd8
2017-04-10Additional SSL_SESSION documentationIngo Schwarze
from Matt Caswell <matt at openssl dot org>, OpenSSL commit b31db505. Improve crosslinking while here.
2017-04-10slaacdctl -> slaacctl;Jason McIntyre
2017-04-10Use __ASSEMBLER__ instead of __LANGUAGE_ASSEMBLY.Visa Hankala
The latter is not defined by clang. OK guenther@, kettenis@
2017-04-10Found another len += snprintf...Theo de Raadt
ok mikeb