summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-10rework gif to be more consistent.David Gwynne
while here, give us support for mpls in gif on ipv6. this moves all the gif handling into if_gif, eg, the mpls handling is no longer in ip_etherip.c. ok claudio@
2018-02-10zap trailing whitespace;Jason McIntyre
2018-02-10Supplying entropy from etext has created a regression on arm where wePatrick Wildt
get an alignment fault while copying the data. Turns out that since we have .rodata in the text segment, it's very easily possible that etext remains unaligned. Work around this by word-aligning etext. The next step is to split .rodata out of the text segment. ok deraadt@
2018-02-10clarify IgnoreUserKnownHosts; based on github PR fromDamien Miller
Christoph Anton Mitterer.
2018-02-10Put the ldscript parts into a single file instead of storing it as headPatrick Wildt
and tail and cat(1) it together. It was maybe needed when ports needed different contents, but now it's just a headache. ok deraadt@
2018-02-10Shorter, more accurate explanation of NoHostAuthenticationForLocalhostDamien Miller
without the confusing example. Prompted by Christoph Anton Mitterer via github and bz#2293.
2018-02-10syncTheo de Raadt
2018-02-10Add TLS session support to ftp(1).Joel Sing
If a session file is specified via the `-S session=...', ftp(1) will attempt to resume TLS sessions based on the session data contained within this file. Upon completion of a successful TLS handshake the session file will be updated with new session data, if available. Discussed with deraadt@ and beck@. Requested by and input from espie@.
2018-02-10Disable RemoteCommand and RequestTTY in the ssh session started byDamien Miller
scp. sftp is already doing this. From Camden Narzt via github; ok dtucker
2018-02-10Be more specific about when the session file will be updated.Joel Sing
2018-02-10mbufs and mbuf clusters are now backed by large pools. Because of thisClaudio Jeker
we can relax the oversubscribe limit of socketbuffers a fair bit. Instead of maxing out as sb_max * 1.125 or 2 * sb_hiwat the maximum is increased to 8 * sb_hiwat -- which seems to be a good compromise between memory waste and better socket buffer usage. OK deraadt@
2018-02-10installer bits for RFC 7217 supportFlorian Obser
OK rpe, tb, naddy, sthen
2018-02-10RFC 7217 support for slaacdFlorian Obser
OK naddy, sthen
2018-02-10Load RFC 7217 key material and generate if it does not already exist.Florian Obser
Add soii.key to changelist (pointed out by semarie) and mtree/special (suggest by Craig Skinner). OK naddy, sthen, rpe, tb
2018-02-10ifconfig can be used to to set interface flag to not do RFC 7217.Florian Obser
OK naddy, sthen man page bits input & OK jmc
2018-02-10Follow rfc8277 more closely and make make sure bgpd is encoding VPNv4Claudio Jeker
withdraws they way other systems are doing it. Interop problem discovered by Andrew Thrift. Tested by Andrew and job@.
2018-02-10add support for binary sysctl payloads by handling them as hexFlorian Obser
strings. this was part of a demo showing how to implement the kernel side of sysctl(3) for setting Semantically Opaque Interface Identifier key material (for RFC 7217), but it seems to be the most straightforward path toward integrating soiikey handling and rc. Originally written by dlg, who commited it some time ago on my request. I then backed it out again, now it's time to put it back in. ok florian@ sthen@ naddy@ tb@ Man page bits tweaked & OK jmc
2018-02-10Implement RFC 7217: "A Method for Generating Semantically OpaqueFlorian Obser
Interface Identifiers with IPv6 Stateless Address Autoconfiguration." "An IPv6 address configured using this method is stable within each subnet, but the corresponding Interface Identifier changes when the host moves from one network to another. This method is meant to be an alternative to generating Interface Identifiers based on hardware addresses." OK naddy, sthen
2018-02-10Refuse to create a certificate with an unusable number of principals;Damien Miller
Prompted by gdestuynder via github
2018-02-10fatal if we're unable to write all the public key; previously weDamien Miller
would silently ignore errors writing the comment and terminating newline. Prompted by github PR from WillerZ; ok dtucker
2018-02-10Similar to the IPv6 case create 127.0.0.1/8 on lo(4) interfaces which actClaudio Jeker
as loopback interfaces for each rdomain (including lo0). This is done when the interface is brought up. This is now also done by default (either on attach of lo0 or when creating the rdomain). OK mpi@
2018-02-10Syncronize filesystems to disk when suspending. Each mountpoint's vnodesTheo de Raadt
are pushed to disk. Dangling vnodes (unlinked files still in use) and vnodes undergoing change by long-running syscalls are identified -- and such filesystems are marked dirty on-disk while we are suspended (in case power is lost, a fsck will be required). Filesystems without dangling or busy vnodes are marked clean, resulting in faster boots following "battery died" circumstances. Tested by numerous developers, thanks for the feedback.
2018-02-10fix build with SDHC_DEBUG defined, no binary change otherwiseJonathan Matthew
2018-02-10Add a mapping from grandparent driver name to hibernate io function to reduceJonathan Matthew
the number of ->dv_parent->dv_parent chains and make this more readable. ok deraadt@ phessler@
2018-02-10Bump TLS API version since we've added more functionality.Joel Sing
2018-02-10Move the keypair pubkey hash handling code to during config.Joel Sing
The keypair pubkey hash was being generated and set in the keypair when the TLS context was being configured. This code should not be messing around with the keypair contents, since it is part of the config (and not the context). Instead, generate the pubkey hash and store it in the keypair when the certificate is configured. This means that we are guaranteed to have the pubkey hash and as a side benefit, we identify bad certificate content when it is provided, instead of during the context configuration. ok beck@
2018-02-10Tidy/standardise some code.Joel Sing
2018-02-10Remove NULL check from tls_conninfo_cert_pem() - all of the other conninfoJoel Sing
functions require the conninfo passed in to be non-NULL.
2018-02-10Document functions for client-side TLS session support.Joel Sing
2018-02-10Add support to libtls for client-side TLS session resumption.Joel Sing
A libtls client can specify a session file descriptor (a regular file with appropriate ownership and permissions) and libtls will manage reading and writing of session data across TLS handshakes. Discussed at length with deraadt@ and tedu@. Rides previous minor bump. ok beck@
2018-02-10Bump lib{crypto,ssl,tls} minors due to symbol addition.Joel Sing
2018-02-10Expose X509_VERIFY_PARAM_* functions that appeared in the OpenSSL 1.0.2Joel Sing
API and are now in use by various libraries and applications.
2018-02-10claudio noted that this is an else case because we have either aSebastian Benoit
prefix or a prefix-set.
2018-02-10Use sched_pause(yield) to decide when to yield when filling randomdata.mortimer
ok deraadt@
2018-02-10Add prefix-sets, lists of prefixes which can be used in place of aSebastian Benoit
prefix in a filter rule. Initial idea hashed out with job@ in Toronto. This is WIP, i'm commiting it now so we can work on it in the tree. ok florian@ claudio@
2018-02-10Use return instead of exit from main.Theo Buehler
2018-02-09If there is no link after link_timeout seconds don't forgetKenneth R Westerback
to go_daemon() while waiting for the RTM_IFINFO message. Problem spotted by Holger Mikolon.
2018-02-09Schedule alarm for start of minute if departure time is absolute.cheloha
e.g., "leave 1530" goes off closer to 15:30:00. Timezone-related bug caught by tb@ in review. ok tb@ tedu@
2018-02-09Style tweaksJeremie Courreges-Anglas
ok remi@ benno@
2018-02-09Use a static chacha instance to fill randomdata sections. Avoids loopingmortimer
over a syscall for randomdata sections larger than 256B. ok djm@ deraadt@ kettenis@
2018-02-09Improve documentation of protected domains.Martin Pieuchot
Required by and ok otto@, ok jmc@
2018-02-09use in_addr and in6_addr instead of uint32_tsDavid Gwynne
2018-02-09oh carp - i didnt mean to commit theseDavid Gwynne
2018-02-09use struct in_addr to represent an address.David Gwynne
2018-02-09isolate calls to the rfc2822 parser and handling of "." in smtp_dataline()Eric Faurot
ok gilles@
2018-02-09add support for setting the ttl on the tunnel traffic.David Gwynne
2018-02-09Call socreate() before falloc() in sys_socket().Martin Pieuchot
This is similar to what we do in sys_socketpair() and will allow us to grab the KERNEL_LOCK() only after having created a socket. ok tedu@
2018-02-09a little more adjustment, after discussing with henning;Jason McIntyre
2018-02-09use ether_tryprint, which looks inside the ether packet.David Gwynne
ether_print just prints the ether header.
2018-02-09rework etherip to make it more consistent and reduce code duplication.David Gwynne
ok claudio@