libssl regress: unbreak the interop test
Previously ca.crt would be considered a V1_ROOT and accepted as a CA cert
despite lacking extensions. After openssl req.c forcibly made all certs v3
certs, this would no longer be the case and X509_check_ca() would fail.
Add a cA bit in the basic constraints as well as keyCertSign and cRLSign
bits in key usage.
Thanks beck for careful testing.
httpd: allow using captures of server match in block return and rewrite
So one server block can redirect many hosts:
server match "^(%d%d%d%d)%.eurobsdcon%.org$" {
listen on egress tls port 443
block return 302 "https://eurobsdcon.org/%1$REQUEST_URI"
}
A location match still wins over the server match. Without a group %1 is
the whole match, as for location match.
An invalid capture index such as "%20" is now kept as is instead of
failing the request, for location match too.
Requested and tested by Mischa, help from kirill@ and armani@, ok armani@
mark the rust-openssl test as an expected failure
It was broken twice in the last month. First beck didn't run regress
properly while making big changes to libcrypto, in particular rejecting
v1 certs. That's probably my fault for not double checking. I should've
known better...
Then semarie and robert added rust-dev which makes this fail to build.
Sadly nobody reacted to my mails.
Resolve TOCTOU in vmd(8) virtio by copying descriptor chains.
Adds logic for extracting copies of the descriptor chain to prevent
TOCTOU issues as a device processes the descriptors. Validation is
performed on a copy of the chain and the validated copy is used for
device virtqueue processing.
This commit changes the entropy (viornd) and block (vioblk) devices
to use the new logic. Network and SCSI devices will be migrated
next.
Issue originally found and reported by Acts1631 for the virtio
entropy device. A guest can change the buffer length on a descriptor
after vmd has validated the value but before allocating a host-side
buffer on the heap resulting in leaking host memory to the guest.
ok hshoexer@