summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
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
2024-10-09Make it possible to configure tcp md5 and ipsec on rtr as wellClaudio Jeker
Single out the auth_config yacc rules. Even though this requires an extra merge_auth_conf() function to handle manual IPsec setups but even with that this seems like a net gain. There is no rtr cache that does tcp md5 on OpenBSD so those bits remain untested for now. OK tb@
2024-10-09correct indentationJonathan Gray
2024-10-08Extend the socket handover from parent to rtr process to also include teardownClaudio Jeker
This is needed to support tcp md5sum and ipsec auth for rtr. OK tb@
2024-10-08remove unused structJonathan Gray
2024-10-07When acme-client is run with -v, show the account URI from the LocationStuart Henderson
header sent by the server in response to the newAccount API call (used for every cert request). This is useful if you want to set a CAA DNS record restricting issuance to a specific user account, rather than just "all of $whichever_acme_CA". ok florian
2024-10-07use the Ox macro instead of "OpenBSD";Jason McIntyre
2024-10-07merge unbound 1.21.1Stuart Henderson