summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2019-08-01smtpd can crash on excessively large input, causing a denial of service.Gilles Chehade
the crash is caused by a logic error leading to a fatal() ok deraadt@ bluhm@ benno@
2019-07-31When walking a leaf return the value itself instead of returning theMartijn van Duren
getnext value. Based on an older diff. Reminded and tested by deraadt@
2019-07-28minor markup polishing and typo fixes; OK kn@Ingo Schwarze
2019-07-28Document the iodevice keyword.Mark Kettenis
2019-07-28Add missing article, use Dq not literal "kn
2019-07-28Use imperative present tense consistentlykn
2019-07-28Move ldom.conf.5 to ldomctlkn
ldomctl(8)/ldomd(8) differs from the usual control/daemon setup since ldom.conf(5) is never read by the daemon itself but the control program only, so put it where it belongs. While here, mention eeprom(8) for a list of OpenPROM variables. Move prompted by kettenis Positive feedback deraadt, "go ahead" kettenis
2019-07-28Delete all CPUs from the primary and add back the number that we want toMark Kettenis
keep.
2019-07-28Add support for configuring static direct I/O.Mark Kettenis
2019-07-27tweak previous;Jason McIntyre
2019-07-27Move configuration format into ldom.conf(5)kn
ldomctl(8) contains the entire format describing logical domain configurations loaded with that tool. Entangle control commands and config options by putting the latter into its own page. The config options' descriptions stayed the same, only the EXAMPLE section gained a bit wording. Convert mdoc(7) macros `Ic =' to `Ns = Ns' and `Ic \&{ ... Ic \&}' to `Brq ...' while here. More improvements will follow in-tree. OK deraadt
2019-07-26add IMSG_REPORT_SMTP_TX_RESET to imsg_to_strGilles Chehade
2019-07-26even though RSET can be issued outside a tx, RFC states it's noop outside aGilles Chehade
transaction so rename link-reset to tx-reset and only issue the smtp report when a reset _actually_ has a side-effect. note that rset is implicit on a message commit or rollback, so tx-reset get issued even though there was no explicit RSET. the filters are MUCH simpler to write when you don't need to track every event that can reset a tx :-)
2019-07-25Fix another %m occurencekn
Found by bluhm, thanks.
2019-07-24rib_dump_terminate() and rib_dump_abort() need to free any possiblyClaudio Jeker
locked entry (rib or prefix) before removing the context else elements may remain locked for the rest of the run time (which is equal to a memory leak). OK benno@
2019-07-24Make SMTPS default to port 465 in relay-hostkn
While the other protocols either require an explicit port (LTMP) or correctly default to 25 for plaintext as well as STARTTLS, SMTP with forced TLS never happens on 25, so default to the well defined standard instead. Input and OK gilles
2019-07-24mrt.h only needs to be included by mrt.cSebastian Benoit
ok claudio@
2019-07-24Two problems:Gilles Chehade
- RFC 2034 Section 3 (item 4) requires that the status code is always followed by one or more spaces. However, OpenSMTPD has a colon right after the status code in many of the replies it sends. - RFC 2034 Section 4 states: "When responses are continued across multiple lines the same status code must appear at the beginning of the text in each line of the response." However, OpenSMTPD only has the enhanced status code for the last reply line it sends. Still, there is only one case in which it sends such a multi-line reply: the HELP command. diff from Stephan Bosch
2019-07-24Fix format specifier in execl(3) error messagekn
Typo from r1.84 introducing the logmsg() wrapper. OK deraadt
2019-07-24GC old catchallMarc Espie
add a better framework for signal handling (not used yet)
2019-07-24Stop using reserved words in the smtpd.conf configuration exampleskmos
in the default smtpd.conf and smtpd.conf(5) manual page. This eliminates ambiguity in our documentation examples that can cause confusion. Input and OK deraadt@ schwarze@ kn@
2019-07-24explain some detailsMarc Espie
2019-07-24Refactor the way RIBs are parsed a bit. No functional change but shouldClaudio Jeker
make it easier to extend the rib definitions later on. OK benno@
2019-07-24Cleanup and fix some obvious shortcomings in the mrt dump code. AlsoClaudio Jeker
implement the missing bits to dump MPLS VPN prefixes in the table-mp case. Missing support noticed by benno@ because of King Bula warning. OK benno@
2019-07-23Use the correct prefix size when writing out AID_VPN_IPv4 and AID_VPN_IPv6Claudio Jeker
prefixes.
2019-07-23Make sure that pfd is not overflown, can not happen unless the mrt countClaudio Jeker
is off.
2019-07-23include grp.h for setgroups()Gilles Chehade
2019-07-23errstr may be uninitialized in error code pathGilles Chehade
2019-07-23Clean up RIB related kroute code. Introduce a way to flush a FIB tableClaudio Jeker
from the RDE. Make sure that all nexthops don't get removed in the FIB when a FIB table is removed. This should only happen for the main FIB. Remove F_RIB_HASNOFIB which is just confusing since there is already F_RIB_NOFIB and F_RIB_NOFIBSYNC. OK benno@
2019-07-23delete a stray blank from the usage() message; reported by Jesper WallinIngo Schwarze
2019-07-22Use mnemonic IPPORT_HILASTAUTOkn
More readable, no binary change. OK kmos
2019-07-22switchd(8)'s main proc needs to open the following paths, and which can beRicardo Mestre
unveiled: / -> read, it will open config files from anywhere in the system /dev -> read/write, in order to open /dev/tap* and /dev/switch* hint and OK akoshibe@
2019-07-22Zap useless globalskn
Initialize stack variables directly instead of using global state in between. OK tedu deraadt
2019-07-22No need to check first if something is not NULL to assign NULL to it.Claudio Jeker
Just do it all the time.
2019-07-22GC three prototypes whose function have gone long ago.Claudio Jeker
2019-07-22separate the atend behavior, because dpb wants a pure signal interceptMarc Espie
but not an END code. This fixes the stupid bug I had. Was looking in the wrong location, not surprisingly
2019-07-21tweak register a bit... END {} code is obviously the problemMarc Espie
2019-07-21gc old functions, that part is clean as well...Marc Espie
so it's obviously the END code then...
2019-07-21start re-adding the non-broken changes:Marc Espie
- commonalize try{} catch {} for pkg_add/delete and pkg_create, so that debug works the same way in both. - switch printing command name to the catch handler, so that exceptions are simpler to handle
2019-07-19In the synopsis, put options that take no arguments before those that do.Ingo Schwarze
This also makes it easier to find the crucial difference between the two synopses, which is the "-e". Suggested by kn@; OK jmc@.
2019-07-19When allocating socketpair() increase their send and receive buffers toClaudio Jeker
4 times the read size. This helps to increase the efficency of poll() since now most of the time the read and write call can operate on full buffers. OK benno@ phessler@
2019-07-17backout previous commits for now; some of this is shared with dpb andStuart Henderson
results in problems. hints from pvk@ about what introduced the breakage we were seeing, who confirms that this backout fixes things; comitting early to unbreak package builds. ==== a bunch of changes, all related to error-handling: - have Handle->register also create a proper END block, so that individual packages don't have to, and explain the issue - kill old Unlink/Copy code that migrated to State years ago - commonalize try{} catch {} for pkg_add/delete and pkg_create, so that debug works the same way in both. - switch printing command name to the catch handler, so that exceptions are simpler to handle and a few comments for the hairy parts... Members: OpenBSD/AddCreateDelete.pm:1.44->1.45 OpenBSD/AddDelete.pm:1.87->1.88 OpenBSD/Error.pm:1.33->1.34 OpenBSD/PackageRepository.pm:1.164->1.165 OpenBSD/PkgCreate.pm:1.160->1.161 OpenBSD/State.pm:1.58->1.59 OpenBSD/Temp.pm:1.34->1.35 ====
2019-07-17Change the Adj-RIB-Out to a per peer set of RB trees. The way RIB dataClaudio Jeker
structures are linked does not scale for the Adj-RIB-Out and so inserts and updates into the Adj-RIB-Out did not scale because of some linear list traversals in hot paths. A synthetic test with 4000 peers announcing one prefix each showed that the initial convergence time dropped from around 1 hout to around 6min. Note: because the Adj-RIB-Out is now per peer the order in which prefixes are dumped in 'bgpctl show rib out' changed. Tested and OK job@, benno@, phessler@
2019-07-17vmm/vmd: Fix migration with pvclockpd
Implement VMM_IOC_READVMPARAMS and VMM_IOC_WRITEVMPARAMS ioctls to read and write pvclock state. reads ok mlarkin@
2019-07-161) Re-resolve and re-get constraints once the clock is synced. ConstraintsOtto Moerbeek
are relative to monotime; so they shift when time is being adjusted. 2) Fix a race between SIGCHLD delivery and reading the result imsg. 3) Some cleanup: use a number to distinguish pools internally
2019-07-15Improve logging when sending a packet fails.remi
OK claudio@
2019-07-15Fix usagekn
List all available commands grouped by their synopsis to complete the shown usage while still keeping it compact and precise. Input from deraadt schwarze OK kettenis
2019-07-14Add interface to set/update a data property.Mark Kettenis
2019-07-14a bunch of changes, all related to error-handling:Marc Espie
- have Handle->register also create a proper END block, so that individual packages don't have to, and explain the issue - kill old Unlink/Copy code that migrated to State years ago - commonalize try{} catch {} for pkg_add/delete and pkg_create, so that debug works the same way in both. - switch printing command name to the catch handler, so that exceptions are simpler to handle and a few comments for the hairy parts...
2019-07-13fix error description on invalid forward ip.Christopher Zimmermann
OK benno@