summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2024-05-14sync smtpd and protocol version in smtpd-filters(7) examples; ok gilles@Omar Polo
2024-05-14remove no-op methods from table_getpwnam; ok gilles@Omar Polo
2024-05-14use C99 syntax for filling the table_backend structs; ok gilles@Omar Polo
2024-05-13fix some leaks; ok op@Jonathan Gray
2024-05-09Align RSA and EC key generation with each otherTheo Buehler
Being two different cryptographic primitives, it is clear that there must be some differences between RSA and EC keygen, but they don't have to be entirely different. We need to set the key type, RSA needs a bit size and ECDSA needs a curve. That's all the differences there need to be. Garbage collect a few useless elses and avoid two exit labels paths where one would do just fine. As another small bonus, this file no longer uses "deprecated API", so the portable fork can get rid of an ugly openssl 3 patch if they want to. ok florian
2024-05-07add smtpd-tables.7 for real; spotted by tb, thanks!Omar Polo
2024-05-07change the smtpd table protocolOmar Polo
Using imsg for the "proc" table (external programs) has proven quite painful in practice since a lot of smtpd internals (structs, enums, etc..) have to be kept in sync with the various tables implementations. Instead, a filter-like protocol for tables decouples the implementations and allows to write and test tables easily. The new text-based transport protocol is documented in the (added) smtpd-tables(7) manpage. The old imsg protocol is no longer supported and existing tables have to be converted. In particular, users of opensmtpd-extras tables will need install the new opensmtpd-table-* packages. With lots of suggestions and improvements from gilles and a tweak from Philipp (philipp+openbsd [at] bureaucracy [dot] de), thanks! ok gilles
2024-05-07install smtpd-tables(7)Omar Polo
2024-05-05Document "ls rogue" exit status.Antoine Jacoutot
2024-05-04add -r to "show" command; ok mlarkinJason McIntyre
2024-05-02unbreak parsing of IPv6 addresses in file-backed table(5)sOmar Polo
The file parser splits the line on the ':' character too for key-value tables, and so mis-parses IPv6 addresses. The "::1 localhost" example in table(5) is actually parsed as key "" and value ":1 localhost". For list tables, the "# @list" marker can be used as a workaround, but for key-valued the parser has to be fixed. There are also some weird edge cases when splitting the lines. Now the parser always splits on the first whitespace or colon, and then strips the spaces. For lines starting with '[' the parser will jump to the matching ']' before attempting to split. So, for example: [::1]:localhost becomes "[::1]" -> "localhost" [::1] example.org becomes "[::1]" -> "example.org" foo: bar becomes "foo" -> "bar" foo::bar becomes "foo" -> ":bar" foo : bar becomes "foo" -> ": bar" etc... This only affects the parser for file table(5)s and makemap(8). Inline tables or "proc" tables are unaffected. ok gilles@
2024-05-02vmctl(8): Add 'vmctl status -r'Mike Larkin
The -r option can be used to limit the output of 'vmctl status' to only running VMs. This is useful for machines that have a large number of stopped VMs, as the running ones are printed at the top by default and previously required scrolling back to see the list of running VMs, and/or using 'grep RUNNING'. There is no change for users not using -r. ok dv
2024-04-30Allow parsing either RFC9557 timestamps (which wants explicit +00:00) orStuart Henderson
the existing format (with Z). From espie.
2024-04-29plug fd leak introduced in "avoid toctu" rewrite.Florian Obser
Issue reported by job OK tb, job
2024-04-29vmm & vmd: drop "continue" flag to simplify running a vcpu.Dave Voutila
There's no need to distinguish the "first" time running a vcpu from the subsequent times because vmm(4) uses in-kernel state tracking the last vm exit reason to optimize the logic for updating vcpu registers from userland. While here, clean up the DPRINTF's to make the Intel VMX logic similar to the AMD SVM. ok mlarkin@
2024-04-28Remove unused url from netproc()Theo Buehler
Leftover from when RFC 8555 support was added. ok florian
2024-04-28Don't filter dangerous characters by hand when strvisx(3) is right there.Florian Obser
segfault reported by sthen, which was most likely caused by buf_dump(). OK tb
2024-04-24fix error return in fork_proc_backend(); ok gilles@Omar Polo
2024-04-24announce_capa is no more.Claudio Jeker
OK tb@
2024-04-24Remove 'announce capabilities' as neighbor config stanza.Claudio Jeker
There is no need to have an easy knob to get outdated or crappy implementations to limp along. Instead the various default on capabilities just need to be disabled (e.g. announce as-4byte no). OK tb@
2024-04-23Use "indicate" to match reset of the document.Florian Obser
Pointed out by kn, missed in previous.
2024-04-23Implement RFC 4191 default router preference.Florian Obser
OK phessler, kn (Committing from a ferry somewhere on the English channel. Sadly the free WiFi does not provide IPv6.)
2024-04-23correct indentation; no functional changeJonathan Gray
ok tb@
2024-04-23Add missing commaTheo Buehler
spotted by jsg
2024-04-23sync with ftp/fetch.c r1.218: send host header for proxiesTheo Buehler
ok claudio
2024-04-22In state IDLE handle EVNT_STOP and stop the IdleHold timer. This wayClaudio Jeker
a down of an idle connection will properly stop the session. OK tb@ (as part of larger diff)
2024-04-22Move setting of the shutdown reason to session_stop()Claudio Jeker
Also make sure that something is logged when a session is stopped. Part of a bigger diff which was OK tb@
2024-04-22No longer fall back to no capabilities when there is an OPEN/optionalClaudio Jeker
attribute error. BGP more and more relies on capabilities, automatically clearing them all no longer seems the right choice. Now operators need to adjust the config explicitly to allow such connections. From a larger diff which is OK tb@
2024-04-21P-256 support is experimental so require -x to enable it.Claudio Jeker
Also clean up the externs a little bit by moving experimental and noop to extern.h. Reminded by and OK tb@
2024-04-21Mandate presence of CMS signing-time and disallow binary-signing-timeJob Snijders
RFC-to-be draft-ietf-sidrops-cms-signing-time updates RFC 6488 by mandating the presence of the CMS signing-time attribute and disallowing the use of the CMS binary-signing-time attribute in RPKI Signed Objects. The ecosystem has behaved this way for a number of years now. Flip from warning to erroring for non-compliant objects. OK tb@
2024-04-20Display distinct errors for various problematic CRL/MFT situationshipsJob Snijders
RFC 6487 section 8 specifies only a single CRL is issued at a time, so error when multiple .crl files are listed in a Manifest's FileList. The CRLDP extension identifies the location of the CRL, so the CRL's filename must match the CA's CRLDP's 'rsync://' entry, error if that isn't the case. (RFC 6486 section 4.8.6) with & OK tb@
2024-04-19replace a (technically incorrect) instance of "IP" with "address";Jason McIntyre
issue reported by tech3599 at posteo net via henning; discussed with/ok henning
2024-04-17Simplify super ugly exit pathTheo Buehler
ok job
2024-04-17Remove outdated (now inaccurate) warning messageJob Snijders
OK tb@
2024-04-17Set Accept: */* HTTP header like it was done in ftp(1).Claudio Jeker
OK tb@ job@
2024-04-16Prevent toctu issues in static file serving and auto index generation.Florian Obser
This fixes a problem in passing, reported by matthieu@ where httpd would return 500 Internal Server Error when it could stat(2) but not open(2) a file. The correct error code is 403. testing matthieu ok tobhe, tl;dr ok stsp input & OK deraadt
2024-04-15Use the manifest location as additional differentiator when comparing CRLsJob Snijders
OK tb@
2024-04-15Sync to autoconf 2.71 upstream built infrastructureFlorian Obser
This reduces the diff when doing updates considerably. No change in .o files. Much help & OK sthen
2024-04-13merge unbound 1.19.3Stuart Henderson
2024-04-13import unbound 1.19.3, ok florianStuart Henderson
2024-04-12Update to nsd 4.9.1Florian Obser
sparc64 built test by tb OK tb, sthen
2024-04-12merge unbound updateStuart Henderson
2024-04-12import unbound 1.19.2, reminded by florian@Stuart Henderson
(yes I know there is a newer one, I'll update on top)
2024-04-12In snmpd_metrics process keep file descriptors 0 1 2 open.Alexander Bluhm
stdin, stdout, stderr are reserverd. They should point to a terminal, a redirect file or pipe, or /dev/null. Closing them and allocating arbitrary files in those places is not good. Call closefrom with 4 to keep /dev/null open in snmpd_metrics. OK martijn@
2024-04-12Fix warning about delta element issues in the Update Notification File XMLJob Snijders
OK tb@
2024-04-11Remove repeated type declaration that makes bison unhappyTheo Buehler
Fixes: https://github.com/openbgpd-portable/openbgpd-portable/issues/77 ok claudio
2024-04-11Use != NULL for pointer check. No binary change.Claudio Jeker
2024-04-10vmctl: fix incorrect scaling when converting disk images.Dave Voutila
ctl_convert still had old logic assuming disk sizes were in MiB and not bytes, causing an attempt to create a new disk using the '-i' argument to generate impossibly large output disk images (e.g. 1 MiB ends up 1 TiB). Reported by and diff from Jesper Wallin.
2024-04-10Rework the logic to not send double notifications in session_notification().Claudio Jeker
last_sent_errcode is now cleared late (when state changes to ESTABLISHED) and so notifications sent in the OPEN phase would be dropped after the first incident. Using the session state to know if sending a message is possible seems more robust and is what session_stop() uses as well. For now log the notification which are not sent as 'dropping' to see how often this happens. OK tb@
2024-04-09vmm/vmd: add exception injection and refactor inject api.Dave Voutila
In order to continue work on mmio and other instruction emulation, vmd(8) needs the ability to inject exceptions (like page faults) from userland. Refactor the way events are injected from userland, cleaning up how hardware (external) interrupts are injected in the process. ok mlarkin@