summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2015-12-11Libraries should not print to stderr, ok tedu beck deraadtNicholas Marriott
2015-12-11"the the" -> "the" in commentmmcc
2015-12-10tiny sanity check on file sizeTed Unangst
2015-12-10use geteuid to make it easier for root to communicate.Ted Unangst
reported by Jeunder Yu
2015-12-10use geteuid to allow root to communicate with others.Ted Unangst
report from Jeunder Yu
2015-12-09bump the major for libcrypto/ssl/tls for a CRYPTO_chacha_20 ABI changeBrent Cook
ok jsing@, deraadt@, beck@
2015-12-09Change the counter argument for CRYPTO_chacha_20 to be 64-bits on all platforms.Brent Cook
The recently-added EVP_aead_chacha20_poly1305_ietf() function, which implements informational RFC 7539, "ChaCha20 and Poly1305 for IETF Protocols", needs a 64-bit counter to avoid truncation on 32-bit platforms. The existing TLS ChaCha20-Poly1305 ciphersuite is not impacted by this, but making this change requires an ABI bump. ok jsing@, "Looks sane" beck@
2015-12-09Add a cast to silence a compiler warning by clang on FreeBSD.tb
From Craig Rodrigues. ok tedu@
2015-12-09Integrate two patches originally from Daniel Micay.Ted Unangst
1. Optionally add random "canaries" to the end of an allocation. This requires increasing the internal size of the allocation slightly, which probably results in a large effective increase with current power of two sizing. Therefore, this option is only enabled via 'C'. 2. When writing junk (0xdf) to freed chunks (current default behavior), check that the junk is still intact when finally freeing the delayed chunk to catch some potential use after free. This should be pretty cheap so there's no option to control it separately. ok deraadt tb
2015-12-08rewrite guts of getusershell() to avoid possibility of overflow.Ted Unangst
instead of trying to allocate "just enough" memory based on the size of the file (which is mostly comments, in fact), allocate memory on demand. i.e., save memory by wasting it. also be a little stricter about parsing. after discussion with tobias. (with a bug fix from patrick keshishian) descended from bug glibc bug 18660 via tobias.
2015-12-07Add root certificate for COMODO RSA Certification Authority, ok beck@Stuart Henderson
In some cases sites signed by this are covered by the old "AddTrust External CA Root" that we already had, but that depends on the site sending a fairly large chain of intermediate certificates which most aren't doing (because there's no need because this newer one is in browser stores..).
2015-12-07Remove SHA0 check, as we did in v1.21 of sha.h.Brent Cook
This enables ENGINE_get_digest to work again with SHA1. noted by NARUSE, Yui, @nurse from github
2015-12-06Simplify the relocation code for the ld.so bootstrap and static pie: trackPhilip Guenther
just the dynamic tags are needed instead of reusing the generic elf_object_t structure. testing and feedback from miod@ ok kettenis@
2015-12-06Validate input files to prevent out of boundary accesses.Tobias Stoeckmann
with input by and ok schwarze@
2015-12-05Do not loop on EAGAIN in imsg_read(). Better to return the error to theClaudio Jeker
caller and let him do another poll loop. This fixes spinning relayd processes seen on busy TLS relays. OK benno@ henning@
2015-12-04Fix for OpenSSL CVE-2015-3195Bob Beck
ok djm@ jsing@
2015-12-03Fix for OpenSSL CVE-2015-3194Bob Beck
ok krw@
2015-12-03Remove the /usr/share/nls/ exception from pledge(2). The libcAlexander Bluhm
native language support was deleted a month ago at u2k15. OK semarie@ deraadt@
2015-12-03Instead of using our own custom BDB terminfo databases, use the ncursesNicholas Marriott
files in /usr/share/terminfo/*. This removes a large difference from upstream ncurses and other systems. ok millert
2015-12-01use strlcat instead of strlcpy with modified arguments. ok deraadt@Can Erkin Acar
2015-12-01Document that "tty" provides read-write access to /dev/tty too.Todd C. Miller
OK deraadt@
2015-12-01modify getpw*(), getgr*(), and getgrouplist() functions to access theTheo de Raadt
YP lock file unconditionally. This hints to the kernel that a "getpw" operation is happening, even in the non-YP case. This looks like a gruesome hack, but helps refine the ways these functions are called and mandates the right pledge requests. Once the tree is fully annotated we will know better how to improve the backing store management. ok semarie espie beck
2015-12-01Send Aviion to same place as Nova IITheo de Raadt
discussed with jsg
2015-12-01Mention ksh along with csh when job control is discussed. ok deraadt@mmcc
2015-12-01Phrase allocation failure more clearly. ok deraadt@mmcc
2015-11-30change Xrs from now-defunct db(3) to dbopen(3); this wasn;t aJason McIntyre
straight replace: thanks both to schwarze and maja for feedback on how to rewrite parts; i've snuck in an rcs id->openbsd id change in dev_mkdb too;
2015-11-30MIO_IN needs O_RDONLY, not O_WRONLYAlexandre Ratchov
2015-11-29Add pledge "pf" which allows ioctls on pf(4). This will be used bySebastian Benoit
relayd and other programs manipulating the packet filter. ok deraadt@
2015-11-27Remove three NULL-checks before free(). ok millert@mmcc
2015-11-26Use the backchannel for all error messages instead of syslog(3).Todd C. Miller
OK deraadt@ beck@
2015-11-26remove the "YP server for domain %s not responding, still trying" code.Theo de Raadt
For years, it talked to stderr. That was wrong. Then it was converted to opening /dev/tty, which is also wrong (pledge says so). Upon reconsideration people in these more modern times have adapted to all sorts of services not being available, so axe the alert and retry silently. ok beck
2015-11-25group_from_gid: use _GR_BUF_LEN instead of _PW_BUF_LENJoshua Stein
2015-11-25-M option was removed, midi ports registered with -qAlexandre Ratchov
2015-11-25Wrap <icdb.h> so that calls go direct and the symbols are all weakPhilip Guenther
ok tedu@
2015-11-25Make using a deprecated function an error instead of just a warningPhilip Guenther
ok millert@ kettenis@
2015-11-25syslog() here is pointless; ok millertTheo de Raadt
2015-11-25Rather than using syslog(3) (which pulls in snprintf), creating the reportTheo de Raadt
string using simpler strings functions and use sendsyslog2() directly. Also, use the LOG_CONS flag so that single-user reports are more clear. Use a buffer size of 1024 (from bluhm) discussed with guenther and matthew ok millert
2015-11-25Add a syscall stub for sendsyslog2(2), and use it in syslog_r(3), passingTheo de Raadt
LOG_CONS to the kernel. As a result, the /dev/console opening code can be removed. ok kettenis millert beck
2015-11-24Use reentrant versions of getpw{nam,uid} and getgr{nam,gid} withinTodd C. Miller
libc to avoid reusing the static buffers returned by the non-reentrant versions. Since this is inside libc we can use constants for the buffer sizes instead of having to call sysconf(). OK guenther@ deraadt@
2015-11-24Correct file name, no text change (no history yet, but sorry for the churn).Ingo Schwarze
Issue noticed by jmc@, OK jmc@.
2015-11-24fix an error in NAME; ok schwarzeJason McIntyre
2015-11-24Fix confusion between SIO_xxx and MIO_xxx options (copy & paste error).Alexandre Ratchov
2015-11-24Document that these functions are now in strings.h.Daniel Dickman
ok millert@
2015-11-24Don't fake a bulleted list by prefixing items with 'o'.Anthony J. Bentley
ok jmc@
2015-11-23Remove support for "lookup yp" in /etc/resolv.conf. This historicalTheo de Raadt
wart is incompatible with pledge, because suddenly a "dns" operation needs "getpw" access to ypbind/ypserv, etc. file + dns access is enough for everyone, sorry if you were using that old SunOS 4.x style mechanism, but it is now gone. ok semarie millert florian
2015-11-23point to mount_mfs(8), not mfs(8);Jason McIntyre
2015-11-22remove unneeded prototypesAlexandre Ratchov
2015-11-22Don't remove the type component from the device string before passingAlexandre Ratchov
it to the *_open() functions. It's more flexible this way. No behaviour change.
2015-11-21Partial revert of revision 1.26:Ingo Schwarze
Do *not* install the CMS_* manuals for now given that the code is currently disabled. Cluestick applied by jsing@.
2015-11-21point to netintro(4) rather than (now removed) networking(4);Jason McIntyre