summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2020-08-13Be compatible with bpftrace(8)'s output when printing stack traces in maps.Martin Pieuchot
This allows us to use `stackcollapse-bpftrace.pl' from Brendan Gregg's FrameGraph without pre-processing outputs.
2020-08-13When dealing with integers, it seems that [1] and [1, 2) are the same.Martin Pieuchot
2020-08-13Improve documentation.Martin Pieuchot
2020-08-09Some times ago we disabled in-kernel timeout for pppx(4) relatedmvs
pipex(4) sessions. We did this for prevent use after free issue caused by pipex_timer(). By default "idle-timeout" is not set in npppd.conf(5) and I guess this is reason for we forgot to describe this exception in npppd.conf(5). Since it's pppx(4) related bug description was added to BUGS section of pppx(4) man page. npppd.conf(5) has this exception described in "idle-timeout" section. ok jmc@ yasuoka@
2020-08-08Greatly simplify snmpe_parsevarbinds.Martijn van Duren
except for some minor changes in the handling of snmp_intotal{req,set}vars no functional changes intended. OK jan@
2020-08-07Do not hardcode the key length.Martin Pieuchot
2020-08-05Get the default values for font height and width in wsfontload(8) usingFrederic Cambus
the WSDISPLAYIO_GETSCREENTYPE ioctl. This ensures that they always match the currently loaded font metrics. Previously, wsfontload(8) hardcoded the default height and width values for the font to be loaded as 12x22 when using framebuffer consoles, and as 8x16 when in text mode. The 12x22 value wasn't correct in case we felt back to the smaller 8x16 font for screen widths smaller than 960px, and wasn't valid anymore since we replaced Gallant 12x22 by Spleen 12x24 on all architectures but sparc64. OK jcs@, mpi@
2020-08-03remove unused functionsSebastian Benoit
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks ok claudio@
2020-08-03remove another tautologySebastian Benoit
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks ok claudio@
2020-08-03remove unused assignmentSebastian Benoit
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks ok claudio@
2020-08-03remove tautological conditionSebastian Benoit
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks ok claudio@
2020-08-03remove dead assignmentsSebastian Benoit
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks ok claudio@
2020-07-31Replace warnc() with warnx() + strerror() since the first is less portable.Claudio Jeker
Should hopefully fix an issue seen by Robert Scheck OK deraadt@
2020-07-30Remove the unused function canonicalize_host(), it was copied from relayd.Sebastian Benoit
Found by Ross L Richardson, Thanks.
2020-07-28-Separate out the adding of trust anchors into a separate function thanBob Beck
what is used for adding other certificates. -Don't call X509_verify on trust anchors for no reason. -Add basic checks for TA certificate (subject can parse, cert is not expired) -Add some useful error reporting if the TA cert we fetched is no good. ok claudio@
2020-07-28One tiny step towards adding RRDP support in rpki-client.Claudio Jeker
Extract the notify URL from the cert if it is available and pass it back to the parent process. The parent process can then use this info to load the repo via RRDP instead of rsync. OK benno@ (some long time ago)
2020-07-27Fix return value check for openssl API. Do not return success if pkey is NULL.tobhe
Feedback and ok cladio@ ok patrick@, tb@
2020-07-25remove unsused enum key_type, copied initialy from relays.Sebastian Benoit
found by Ross L Richardson, thanks! ok deraadt@
2020-07-25Add a EXIT STATUS sectionsolene
"no objection" ajacoutot@
2020-07-25More DESC -> DESCR; spotted by espie@Antoine Jacoutot
2020-07-25tyop: DESC -> DESCRAntoine Jacoutot
ok landry@ robert@
2020-07-24fix sentence grammar in AUTHORS;Jason McIntyre
2020-07-24make it a bit clearer that -p is a path to a package repository,Jason McIntyre
not just a regular file path; patient explanation (neccessary) and eventual ok espie
2020-07-23Fix strlcpy() usage. The size argument should be the full size ofTodd C. Miller
the buffer, not the number of bytes to copy. The strlcpy() return value should be checked to verify that truncation did not occur. OK florian@
2020-07-23Update to 4.3.2.Florian Obser
2020-07-22sensorsd(8) reported an unveil failure due to chdir / . CallAlexander Bluhm
chdir(2) before unveil(2). Use absolute config path after chdir, also necessary for SIGHUP. /etc/sensorsd.conf.db must be unveiled, cgetent(3) tries to open it. OK beck@
2020-07-22force long-names on msdos filenames, so that folk can see pretty namesTheo de Raadt
later. ok kettenis gkoehler
2020-07-21Avoid integer underflow due to tiny snaplenkn
For DLT_NULL and DLT_LOOP interfaces, print-null.c passes `caplen - NULL_HDRLEN' as length to default_print() which takes an unsigned integer, hence if caplen is smaller than the header itself (four octets), this difference wraps around. Exit early in such cases and print the expected truncation marker "[|null]" instead. Feedback OK dlg
2020-07-20Add a new column to wsfontload -l output, to report the number ofFrederic Cambus
characters contained in a loaded font. It's especially useful with user loaded fonts as they can contain more than 256 characters. OK sthen@
2020-07-20Remove unused variable "caplen"kn
No object change.
2020-07-19Should use ufs_args here after all.Visa Hankala
While here, make messages more correct.
2020-07-18use correct structure for mounting, duhTheo de Raadt
ok visa kettenis
2020-07-18Create grub.cfg file as requiredTheo de Raadt
ok kettenis
2020-07-18set -/+o pipefail around the magic loop in ls_missing() so that we can properlyAntoine Jacoutot
error out if ftp(1) or tar(1) fails; this happened to swarte@ a few months (something to do with /home on NFS without -maproot IIRC). Check that the signature file is at least 3 lines long (meaning that it contains at least 1 syspatch) before entering the magic loop otherwise `grep -q' will abort the script due to pipefail. While here, revove a useless use of sort(1).
2020-07-17Add powerpc64 support; straight copy from octeon.Mark Kettenis
ok deraadt@
2020-07-15powerpc64 has the sysctl's for power control, so it can use theTheo de Raadt
apmd/apm combo for -L/-H and such. (it gets all the rest of the mess too) ok kettenis
2020-07-15Remove unused variablesdenis
2020-07-11Implement linear and power-of-two histograms: hist() and lhist() keywords.Martin Pieuchot
This is built on top of maps which are currently built on top of RB-trees. Improvements are welcome! For example the use of a hashing table as pointed by espie@. The following one-liner produce an histogram of power-of-two values returned by the read(2) syscall: btrace 'syscall:read:return { @bytes = hist(retval); }' ^C @bytes: [0] 19 |@@@@@@@@@@@@@@@@@@@@@@@@@@ | [1] 26 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | [1, 2) 1 |@ | [2, 4) 13 |@@@@@@@@@@@@@@@@@@ | [4, 8) 4 |@@@@@ | [8, 16) 3 |@@@@ | [16, 32) 1 |@ | [32, 64) 8 |@@@@@@@@@@@ | [64, 128) 14 |@@@@@@@@@@@@@@@@@@@ | [128, 256) 7 |@@@@@@@@@ | [256, 512) 37 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [512, 1K) 1 |@ | [1K, 2K) 10 |@@@@@@@@@@@@@@ | [2K, 4K) 11 |@@@@@@@@@@@@@@@ | [8K, 16K) 1 |@ |
2020-07-04Our old ksh(1) bug where eval()uating a || compound list would terminate theAntoine Jacoutot
shell has been fixed by benno@; remove workaround. ok naddy@
2020-07-04Small XXX.Antoine Jacoutot
2020-07-04Print the correct register for syscall return value.Martin Pieuchot
While here make it possible to store syscall return values in maps.
2020-07-03Increment line number when skipping multi-line comments.Martin Pieuchot
2020-07-01Allow hrStorageSize and hrStorageUsed to cope with sizes larger thenMartijn van Duren
INT32_MAX by increasing the hrStorageAllocationUnits value until they fit. Original patch from Johan Huldtgren (johan+openbsd-tech <at> huldtgren <dot> com) OK sthen@
2020-07-01Remove control socket referenceMartijn van Duren
2020-07-01Remove references to snmpd(8) now that agentx support has been removed.Martijn van Duren
Prodded by and OK jmc@
2020-06-30Remove agentx and control socket support.Martijn van Duren
snmpctl has been removed two releases ago, which makes the control interface obsolete. agentx support has always been quirky at best, but got completely broken with the BER_MAX_OID_LEN increase in ber.h. This change resulted in the oid length on the snmp side being left uninitialized because of size difference, resulting in weird behaviour. No one reported the breakage, even after 6.7 was released. This change requires users to remove the socket keyword from their snmpd.conf. OK denis@
2020-06-30Allow relayd to compile without reaching back into snmpd directory forMartijn van Duren
agentx header. OK denis@
2020-06-30Remove -f (force) option.job
The -f option existed for some initial debugging work. Thanks Weerd for review OK claudio@
2020-06-29Fix "init-system" with multiple PCIe root complexeskn
Contrary to other (single CPU) machines, the Oracle SPARC T4-2 machines come with two CPUs/two PCIe root complexes instead of one. ldomctl already accounts for this and interates over them but lacked a skip condition when iterating over subdevices to avoid linking devices in one complex to those in another. This fixes a NULL dereference in "init-system" on T4-2 machines and makes it produce working machine descriptions (.md files). Testing and confirmation on a T4-1 that single PCIe root complex machines still produce identical MDs with this from tracey, thanks! Reminded by a report on bugs@ from Kokuma who also confirmed this fix on their T4-2.
2020-06-29Reject vdisk, vnet and iodevice parameters for primary domainkn
In analogy to guest domains requiring vcpu, memory and at least one bootable device (vdisk, vnet or iodevice), the primary domain must not be configured with vdisk, vnet or iodevice parameters; it does not make sense to provide virtual disks or interfaces to it and PCIe devices not assigned to guest domains automatically end up in the primary domain. ldom.conf(5) also documents those explicitly for guest domains only. OK tracey