summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2019-11-12a long long time ago, there was no such thing as "from socket" and theGilles Chehade
socket listener was tagged "local" so we could trick "from local" into matching non-network connections. this hack was removed years ago and the socket listener still had this "local" tag hardcoded. this commit teaches parse.y how to assign a tag to a socket listener and removes the hardcoded "local".
2019-11-12fix a logic bug in ruleset matching that makes `from socket` rules possiblyGilles Chehade
crash depending on how the ruleset is crafted.
2019-11-12document the new annotations corresponding to DEBUG_PACKAGESMarc Espie
2019-11-12use the default URL when running fw_update, we can't guarantee that pkg_add willStuart Henderson
be able to cope with packages from the next OpenBSD release - firmware packages are occasionally updated on the release branch post-release. this should handle most situations - the corner-case is an old snapshot upgrading to a new snapshot across some types of pkg_add change, but as fw_update is usually not mandatory this is usually good enough. ok beck deraadt
2019-11-12tweak previous; ok deraadtJason McIntyre
2019-11-12enable rpki-client buildTheo de Raadt
2019-11-11print the URL when sysupgrade fetches new sets, allowing time for a quick ^CStuart Henderson
if it's going to the wrong place/dir. ok deraadt@
2019-11-11sensors can als be marked trusted; ok deraadt@Otto Moerbeek
2019-11-11fix 'mx:' mechanism in smtpd spf walkGilles Chehade
diff from Quentin Rameau <quinq@fifth.space>
2019-11-11tweak previous: delete stray .PpIngo Schwarze
2019-11-11trusted sub-option works on sensors also now; ok ottoTheo de Raadt
2019-11-11Also implement "trusted" for sensors; do not do constraint validationOtto Moerbeek
for these. ok deraadt@
2019-11-11Implement DNS proposals to learn nameservers from networkFlorian Obser
autoconfiguration daemons. Currently only slaacd is switched over so we need to keep the lease file parsing.
2019-11-11 Send DNS proposals on route socket when new nameservers are learnedFlorian Obser
from router advertisements. unwind(8) can solicit DNS proposals by sending an empty RTM_PROPOSAL message with priority RTP_PROPOSAL_SOLICIT.
2019-11-11remove -s and -S documentation, and explain the boot-time startup modeTheo de Raadt
more clearly ok ingo schwarze
2019-11-11Disable -s and -S functionality. -s would force time using NTP packets withoutTheo de Raadt
any MITM protection checks. We've had constraint checks for MITM protection for some time. Recent work changed the default mode to rapidly check NTP packets against constraint validation, as the default mode. In environments where https traffic doesn't work, ethernet-near servers can be labelled as "trusted". trusted sensor support is also coming. We have reasons to immediately move people away from the -s mode. ok otto
2019-11-10Opportunisticly run fw_update before rebooting to run the upgrade.Bob Beck
Warn if it fails, but allow the upgrade to continue for now. discussed with many, refinements by naddy@ sthen@ "commit something" deraadt@
2019-11-10Consistently use _rcctl enable foo_ in examples, it's simpler and lessLandry Breuil
error prone than manually editing rc.conf.local, and also works to enable ipsec and accounting. tweak from schwarze@ to use the \(dq\(dq syntax for quotes in '.Dl foo_flags="" lines' instead of \&"\&". while at it, fix a reference to a bogus /dev/dhclient.conf file that recently snuck in. ok jmc@ deraadt@ schwarze@
2019-11-10document server/servers "trusted" sub-option. Indicates a particularTheo de Raadt
server is wired up such that non MITM attacks are possible, and NTP packets can be trusted. Therefore constraint validity is not required, and during boot ntpd can spin-up correct time faster. with otto, ok jmc schwarze
2019-11-10Introduce a "trusted" modifier, for peers that should be on a local netOtto Moerbeek
used in situations where https constraints cannot be used and we still want auto settime. Result of discussion with and ok deraadt@
2019-11-10alphatically order sub-options for sensors, and make the explanationsTheo de Raadt
more similar ok jmc schwarze
2019-11-10typoTheo de Raadt
2019-11-10tweaks to the file hierarchy to annotate anything with debuginfo, soMarc Espie
existing @bin @lib and new @static-lib @so as discussed with p2k19 people
2019-11-10typoMarc Espie
2019-11-10Drop non existent vars.Antoine Jacoutot
2019-11-10- validate sensor values against constraintsOtto Moerbeek
- do not restart settime timeout interval if something happens in the main event loop - apply a tight loop protection; it can be painfull on a single core machine since the process runs at maximum priority. Should only happen when a bug is introduced while developing, but prevents having to machine taken over by ntpd.
2019-11-09Fix function name in error message.denis
input & OK claudio@
2019-11-08added too much for -stable, if ftp says 404, we still need to save thatMarc Espie
2019-11-08fix bogus pointer/double free crash, when /etc/printcap db file is not present,Ricardo Mestre
by adding a missing check for the return value -1 on both cgetfirst(3) and cgetnext(3) OK millert@ deraadt@
2018-04-27Import lpd, a re-implementation of the lpr daemon following the latestEric Faurot
OpenBSD coding practices (fork+exec/privsep/pledge/...). It is only intended to replace the lpd(8) daemon for the moment, not the lpr(1), lprm(1), lpq(1) and lpc(8) commands. This is a work in progress. The server part should be fairly functionnal, but the printer part is not complete: remote printers should work, for local printers it depends on the setup. Anyway, at this point it's better in the tree than rotting on my disk. ok deraadt@
2019-11-07when asking the ports tree, we fork a child.Marc Espie
instead of ditching stderr entirely, keep it in a temp file, and if the child exits with an error, we got something to display. (note that returning and undef'd plist is enough of an error, just we had no clue what went wrong previously) aja@ ran into this a few weeks ago.
2019-11-07style nitMarc Espie
2019-11-07Document the new home of the control socket; ok florian@Otto Moerbeek
2019-11-06Give acme-client a chance to work on IPv6 only hosts by using theFlorian Obser
AI_ADDRCONFIG flag for getaddrinfo to only return addresses for a configured address family. Implementing a loop over all IPs is left as an exercise to the reader. Reported some time ago by kasimov.an AT gmail on bugs@, thanks! oh boy deraadt@ OK benno@
2019-11-06Rename "asr" to "stub" in user visible parts.Florian Obser
More people know what a "stub" resolver is then asr. Pointed out by & discussed with deraadt Input & OK otto
2019-11-06Allow the singular constraint clause to list multiple addresses;Otto Moerbeek
ok deraadt@
2019-11-06mention in tcpdump(8) description of -i that one can use either a networkStuart Henderson
or a USB device. ok mpi
2019-11-06For now ignore https:// URI in tal files. rpki-client only does rsync.Claudio Jeker
Problem reported by Alexandre Hamada
2019-11-06The memory returned by realloc(NULL, ...) is uninitalized. Therefore makeClaudio Jeker
sure that on the first round the buffer is set to an empty string so that strlcat() works correctly. Also check for strlcat() overflow and error out in case it happens. Found by infrequent regress test failures.
2019-11-06If tal_parse_buffer() fails return early because the code that followsClaudio Jeker
will try to access the NULL tal pointer. Reported by Alexandre Hamada
2019-11-05Add ogx to fw_update.Visa Hankala
2019-11-04remove useless NULL check, it's checked 7 lines further up.Sebastian Benoit
found by Clemens Goessnitzer, ok and prodded by florian@
2019-11-04The argument to the ctype functions needs to be representable as anClaudio Jeker
unsigned char or EOF. Cast the char to unsigned char as required. Reminded by Hiltjo Posthuma
2019-11-04Refactor tal code a bit. Move the file reader back into tal.c so that theClaudio Jeker
regress test is able to use it. OK deraadt@
2019-11-04fix a possible crash when combining "from rdns", nested virtual aliases andGilles Chehade
a particular sequence of rules causing "from rdns" to be hit again from the expanded aliases. this requires crafting a specific configuration.
2019-11-036.6.0 -> 6.6.1Gilles Chehade
2019-11-03Our version numbers goFlorian Obser
m.n-beta -> m.n not m.n-beta -> m.n + 0.1 Handle this correctly for the -r case to stick to a release after beta. OK sthen
2019-11-03Opportunistic DoT support and name forwarder "forwarder" instead of "static;Otto Moerbeek
joint work and ok florian@
2019-11-02Build rpki-client with LibreSSL.Joel Sing
2019-11-02switch ASN1_STRING_data() with constified ASN1_STRING_get0_data()Gilles Chehade