summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
11 daysrpki-client: use macros for skipping rather than hardcoded numbersTheo Buehler
ok claudio
11 daysTake into account how long the dns probe takes before decding toOtto Moerbeek
punt. A single res_query() call can return immediately (e.g. success or the nameservers are unreachable), or take quite some time, depending on how many nameservers are configured. So measure the actual time it takes and decide wat to do based on that. Early version from beck@; ok claudio@ deraadt@
11 daysSecond sweep of foosz -> num_foos and friendsTheo Buehler
Binary change in main.o and tal.o due to an assertion change and in spl.o due to line number changes looks good to claudio, ok clang + sha256
13 daysRename ips/as and ipsz/asz to ips/ases, num_ips/num_asesTheo Buehler
Having a single letter to distinguish a length from a pointer is error prone. This results in binary change only in validate.c and cert.c due to a line wrap resulting in line number changes and in cert.c there's in addition two asserts that change. checked with/ok job
2024-11-09sync curly braces markup, fix indentKlemens Nanni
Replace literal braces with .Brq, use lists, replace literal 'foo options' with .Ar option ... and indent options where they belong. This highlights config parser differences between daemons: - dhcpleased: requires empty blocks, e.g. 'interface em0 {}' (Brq Op Ar option ...) - rad: lets you omit them, e.g. 'interface em0' (Op Brq Ar option ...) Feedback OK jmc
2024-11-09Remove unnecessary variableAndrew Fresh
It turns out that DOWNLOAD_ONLY was just used as the inverse of INSTALL, so use the one variable instead of two. This also uncovered some small cleanups.
2024-11-09Add a -l flag to list drivers or filesAndrew Fresh
This provides a more easily machine readable list than the normal output.
2024-11-08Only install a second copy of the bootloader if the EFI System PartitionMark Kettenis
is at least 1MB. This should prevent us from filling up the tiny ESPs that we used to create a few releases ago. ok deraadt@
2024-11-07The comparator of the RBtree for the IP addresses was broken.YASUOKA Masahiko
Also, log verbosely when ignoring accounting request.
2024-11-07Move syslogd(8) TLS handshake callback from read to write handler.Alexander Bluhm
syslogd should immediately detect that the incoming TLS handshake is complete. The old logic detected it when the first log message over TLS was arriving. For now only a debug message is logged, but the callback will be used to print the common name of the client certificate in the future. OK tb@
2024-11-07Add multi-line strings support to the bt(5) script parser.Martin Pieuchot
From Christian Ludwig
2024-11-07Log the username when rejecting by ipcp.YASUOKA Masahiko
2024-11-06Fix vmd(8) logging to syslog(3) from child process.Alexander Bluhm
Log messages from vmd(8) child processes went to /dev/null. Re-exec set the -n option, which in turn sets vmd_noaction and vmd_debug. Debugging means no more syslog(3), but stderr, which is /dev/null for a daemon. Remove -n from child re-exec, it does not have any effect except looging. Pass on the -d flag when debugging. The VMD_VERBOSE defines are more confusing than useful, just write -v like all the other options. Rework creation of execvp arguments. Do not use tab in syslog messages, space is sufficient. OK mlarkin@ hshoexer@ dv@
2024-11-06vmd(8) logs psp(4) firmware version.Alexander Bluhm
On vmd startup, log the AMD SEV PSP API and build number. from hshoexer@; OK mlarkin@
2024-11-06Add -g option to get the index of the current virtual terminal.Miod Vallat
This can help scripts using wsconsctl display.focus to perform vt switches. From NetBSD via Sergiy Kopchalyuk.
2024-11-06Fix broken vmd(8) build on arm64 due to missing psp_setup().Alexander Bluhm
The psp.c source is restricted in makefile with .if ${MACHINE} == "amd64" so use #ifdef __amd64__ around the call to psp_setup(). On arm64 set vmd_psp_fd to an invalid value. OK hshoexer@ mlarkin@
2024-11-06Reference SendHoldTimer RFC in bgpd(8)Job Snijders
OK claudio@
2024-11-05vmd(8) resets psp(4)Alexander Bluhm
Use shutdown and init to reset psp(4) on vmd(8) startup. This helps when hacking on vmd(8) and crashing it. The psp(4) reset cleans up all remnants of dead VMs from psp(4). Otherwise one would have to reboot the machine. from hshoexer@; OK mlarkin@
2024-11-05mark up fix; from jesper wallinJason McIntyre
2024-11-05Check for pfxsz, not the pointerlucas
ok tb
2024-11-05Avoid zero-sized allocationsTheo Buehler
ok claudio
2024-11-05ncomplete is set but never used. Noticed by ccClaudio Jeker
OK tb@
2024-11-05rpki-client: check validity time in filemodeTheo Buehler
Currently the validation indicator only takes the certificate's status into account. In case everything check out, check the product's life time and the signature path's expiration moment before printing OK. should fix an issue encountered by job looks good to claudio
2024-11-04Ignore extra groups that don't fit in the buffer passed to getgrouplist(3)Jeremie Courreges-Anglas
Our kernel supports 16 groups (NGROUPS_MAX), but nothing prevents an admin from adding a user to more groups. With that tweak we'll keep on ignoring them instead of potentially reading past the buffer passed to getgrouplist(3). That behavior is explicitely described in initgroups(3). ok millert@ gilles@
2024-11-04Update referenceJob Snijders
2024-11-04Some atoi -> strtonum conversions; ok denisTheo de Raadt
2024-11-04Allow downloading firmware without rootAndrew Fresh
If we are downloading as non-root, we can't drop privileges using ftp, but sometimes that is OK. While here, improve the DOWNLOAD_ONLY variable name.
2024-11-04Make fw_update -p consistentAndrew Fresh
Previously, if using fw_update -Fp ..., the argument to -p was treated as a destination path, unless it looked like a URL. This is too complex, if we want to be able to change the download destination, that wll need to be a new option.
2024-11-02Improve detection of gaps in ManifestissuanceJob Snijders
It is helpful for network operators, publication point operators, and CA operators to have more insight into whether the RP noticed an issuance gap between two versions of a given manifest. * high number of gaps all the time might be an indication the RP is not refreshing often enough * the CA is trying to issue manifests more than once a second * the RFC 8181 publication server's ingress API endpoint has issues * the RFC 8181 publication client has trouble reaching the server * the CA's private keys (RPKI + BPKI) are used on a second (cloned) system * the CA's issuance database is broken Correlation opportunity: detection of a gap means some of the CA's intermediate states were occluded from the RP; the RP operator might want to correlate this to traffic shifts in BGP or publication point reachability issues. Going forward, emit a warning per manifest, adds metrics to the openmetrics output, and displays a summary at the end of the run about issuance gaps. OK tb@
2024-10-31Use imsg_get_fd() to extract the fd from an imsg.Claudio Jeker
OK tb@
2024-10-30Install a copy of the UEFI bootloader in /efi/openbsd on the EFI systemMark Kettenis
partition. This will allow us to create boot options for the firmware boot manager that other OSes won't interfere with. ok phessler@, tobhe@, kn@
2024-10-30print pppoe tags as hex dumps rather than strvis-a-like'd text, unlessStuart Henderson
they're tags where text is likely. strvis on random cookies is hard to read and compare, and it's easier to convert 0x05dc than \005\334 to 1500 for PPP-Max-Payload. ok claudio dlg
2024-10-30remove unneeded conf.h includeJonathan Gray
2024-10-30directly use dev_t for swdevt[], remove struct swdevtJonathan Gray
ok mpi@ miod@
2024-10-30Add fw_update pattern for AMD SEV firmware used with psp(4).Alexander Bluhm
from hshoexer@; input deraadt@
2024-10-29Fix logic to return CTL_RES_NOSUCHPEER. The RB_EMPTY check needs to beClaudio Jeker
reversed since no error should be printed if there are no neighbors configured (yet). OK tb@
2024-10-28relayd: add support for client certificatesTheo Buehler
This feature has been requested many times over the years. Various patches were provided by Asherah Connor, Rivo Nurges, Markus Läll and maybe others. These patches always stalled for various reasons. From Sören Tempel, mostly based on Asherah's latest patch. ok florian tb
2024-10-28Remove two fatalx calls in pt_fill since they are wrong.Claudio Jeker
L3VPN withdraws don't carry a labelstack (see util.c::nlri_get_vpn4()). OK tb@
2024-10-25Add support for performing a sysupgrade from a path. This is convenientTheo de Raadt
for offline machines if you can pull the snapshot or release to there there, but want sysupgrade to locally perform signify validation before performing the /home/_sysupgrade and other boot-upgrade steps. ok florian
2024-10-24Adjust ldapclient prototype to prevent an "argument of type 'int[2]' withClaudio Jeker
mismatched bound" warning. OK tb@
2024-10-23Append fd to the variable names proc, rsync, rrdp, http since these variablesClaudio Jeker
are used to store file descriptors. OK tb@
2024-10-22remove duplicate RT_BUF_SIZE defineJonathan Gray
2024-10-22Use imsg_get_fd() like everywhere else.Claudio Jeker
OK florian@ dv@
2024-10-20VM_MAP_BUSY and VM_MAP_WANTLOCK will be removed soon, prep for that.Claudio Jeker
OK dlg@
2024-10-16a.out is no longer the commonly encountered binary file format, the world hasMiod Vallat
moved to ELF. Move the a.out specific defines and macros, but the MID_xxx values, from <sys/exec.h> to <a.out.h>, and update the few userland binaries which really need these defines (i.e. boot-related tools for old architectures) to explicitly include <a.out.h> when needed. "Fine" deraadt@
2024-10-16rpki-client: sprinkle some constTheo Buehler
EVP_PKEY_get0_* were made const correct in OpenSSL 3 and now cause the build of rpki-client to emit warnings. Of course no one is able to see these warnings because they are hidden in all the deprecation vomit. Makes rpki-client build cleanly against OpenSSL 3 when configured with --with-openssl-cflags=-DOPENSSL_SUPPRESS_DEPRECATED. ok claudio deraadt job
2024-10-13Be more eager to install qcpas firmware (more pattern matches)Theo de Raadt
2024-10-12Make fw_update -a mean allAndrew Fresh
When downloading or installing, not just deleting. Noticed by Paul de Weerd Help with manual wording from jmc@ Just fix -a, deraadt@
2024-10-11The fw keys have been added to the signify key bundles. sysupgrade willTheo de Raadt
now extract the fw key also, so that pre-upgrade fw_update can fetch the most uptodate firmware. ok sthen
2024-10-10Always print account URI on first creation of an account key.Florian Obser
This was hidden behind -v but it seems useful to always have this when creating a new account. As sthen points out in his previous commit: This is useful if you want to set a CAA DNS record restricting issuance to a specific user account. OK deraadt