summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2023-04-29bump version to 8.4Sebastian Benoit
2023-04-28vmd(8): fix specifying boot image in vm.confDave Voutila
Previous change to allow overriding changed the way we parsed and stored the boot image path. The lifetime of the path was...much too short. Heap allocate the kernel path. Found by Mischa Peters. ok mlarkin@
2023-04-28Clarify -b usage by `vmctl start`.Dave Voutila
2023-04-28vmd(8)/vmctl(8): allow vm owners to override boot kernel.Dave Voutila
vmd allows non-root users to "own" a vm defined in vm.conf(5). While the user can start/stop the vm, if they break their filesystem they have no means of booting recovery media like a ramdisk kernel. This change opens the provided boot kernel via vmctl and passes the file descriptor through the control channel to vmd. The next boot of the vm will use the provided file descriptor as boot kernel/bios. Subsequent boots (e.g. a reboot) will return to using behavior defined in vm.conf or the default bios image. ok mlarkin@
2023-04-28Remove unneeded header includes in vmd.Dave Voutila
No functional change. virtio block/networking emulation do not need to know about vmm or any kernel types.
2023-04-28Same change as in bgpd:Claudio Jeker
Add explicit default labels in switch() statements with error handling. Right now these are not reachable. Should also clear some gcc warnings. OK tb@
2023-04-28Add explicit default labels in switch() statements with error handling.Claudio Jeker
Right now these are not reachable. Should also clear some gcc warnings. OK tb@
2023-04-27vmd(8): introduce multi-process model for virtio devices.Dave Voutila
Isolate virtio network and block device emulation in dedicated processes, forked and exec'd from the vm process. This allows for tightening pledge promises to just "stdio". Communication between the vcpu's and these devices now occurs via imsg channels, which adds the benefit of not always blocking the vcpu thread while emulating the device. With this commit, it's possible that vmd is the first open source hypervisor that *defaults* to a multi-process device emulation model without requiring any additional configuration from the operator. Testing help from phessler@ and Mischa Peters. ok mlarkin@
2023-04-27RFC 9096 changes the default timers for prefix preferred and valid lifetimes,Peter Hessler
so update rad(8) to the new ones. OK florian@
2023-04-27zap APM_CANCEL, dead since import; OK tbKlemens Nanni
2023-04-27Make rpki-client choose the verification time of the time it is invokedBob Beck
rather than always getting the current system time for every certificate verification. This will result in output that is not variable on run-time. ok tb@ claudio@
2023-04-27Reimplement output-json.c using json.c from bgpctl.Claudio Jeker
Much rejoice from tb@ and job@ OK tb@
2023-04-26Add a -P option to rpki-client to specify the evaluation timeBob Beck
This is intended to be able to test rpki-client in a reproducable way without worrying about the system time changing the results ok claudio@
2023-04-26Use < 0 for fprintf() error checking and not == -1.Claudio Jeker
2023-04-26Verify each fprintf call for success. On failure stop calling fprintfClaudio Jeker
and return -1 in json_do_finish(). tb@ thinks this is not to horrible
2023-04-26Use fprintf instead of printf and pass the FILE handle in json_do_start().Claudio Jeker
OK tb@
2023-04-26In JSON/ASPA output, only print commas up to after the pen-ultimate ↵Job Snijders
applicable provider Reported by Ties de Kock OK claudio@
2023-04-26Kill whitespaceTheo Buehler
2023-04-26Add prototypes for geticmptypebyname() and geticmpcodebyname().Claudio Jeker
Needed for bison.
2023-04-26Fix confusing comments, no object change; with casparKlemens Nanni
2023-04-26Make -A also apply to the JSON outputJob Snijders
OK claudio@
2023-04-26WhitespaceTheo Buehler
"please fix" json
2023-04-26Improve accounting by tracking things by repo and tal.Claudio Jeker
This fixes some wrong accounting for repositories that are referenced from more than one TAL. It changes the ometric lable output a little bit since there are repository metrics that no longer include the 'name' label. OK tb@
2023-04-26Fix vmd after vmm MI/MD splitMike Larkin
2023-04-25tiny markup fix: add missing Ic before `group' in the `agentx' ruleOmar Polo
OK martijn@
2023-04-25vmctl(8): no longer needs vmmvar.hDave Voutila
Finally! We can remove kernel headers from vmctl. ok mlarkin@
2023-04-25vmm(4)/vmd(8): pull struct members out of vmm ioctl create struct.Dave Voutila
The object sent to vmm(4) contained file paths and details the kernel does not need for cpu virtualization as device emulation is in userland. Effectively, "pull up" the struct members from the vm_create_params struct to the parent vmop_create_params struct. This allows us to clean up some of vmd(8) and simplify things for switching to having vmctl(8) open the "kernel" file (SeaBIOS, bsd.rd, etc.) to allow users to boot recovery ramdisk kernels. ok mlarkin@
2023-04-25Add option 'rdroot' to simplify creation of rdroot filesystems for the installKenneth R Westerback
media. No functional change to existing behaviour.
2023-04-24If the two mfts in mft_compare() are the same do not prefer theClaudio Jeker
first (DIR_VALID) but perfer the 2nd (DIR_TEMP) since this allows rpki-client to move the equal files from .rrdp back into the valid repo tree and so there are less unaccounted files for. Problem noticed by and OK job@
2023-04-24Missing the optional default config is not an errorKlemens Nanni
/var/log/{messages,daemon} logs ENOENT as error on default configless vmd. Only complain on explicitly passed files and print a debug hint under `-vv' in case someone forgot to populate their /etc/vm.conf. OK dv mlarkin
2023-04-24"ls rogue" needs root; OK ajaKlemens Nanni
2023-04-24Add '-s' option to simply display the number of bytes available for the rdrootKenneth R Westerback
filesystem in the specified kernel. No behaviour change to existing uses of rdsetroot. Improved option handling & ok kn@
2023-04-23In filemode, if an ASPA contains information for only 1 AFI, supplement the ↵Job Snijders
other OK claudio@
2023-04-23vmd(8): teach vmm process how to exec.Dave Voutila
Use execvp(2) to launch vm children with new address spaces. Consequently, introduces use of unveil(2) into the vmm and vm processes. This imposes the requirement of launching vmd with absolute paths, similar to sshd(8). ok mlarkin@
2023-04-23Flowspec show support an address family argument. Copy the descriptionClaudio Jeker
from the very similar 'network show'.
2023-04-23For FLOWSPEC_SHOW conver the AID form regular inet/inet6 to flowspec versions.Claudio Jeker
OK tb@
2023-04-23Add the same AID filter to prefix_flowspec_dump() like in the otherClaudio Jeker
prefix/rib dump functions. OK tb@
2023-04-23Document flowspec commandsClaudio Jeker
OK tb@ jmc@
2023-04-23unbreak tree by coping with recent s/XCR0/XFEATURE renameAnton Lindqvist
2023-04-22vmd(8): fix vm send/receive due to invalid hva's.Dave Voutila
Moving some of the virtio devices to zero-copy approaches required tracking the host-side virtual address for the gpa of virtqueues. Upon a send/receive they are invalid as the restoring system will most likely use a different address space layout. Recompute the hva's on receive and NULL them on send. ok mlarkin@
2023-04-21Adjust ext community handling to support the generic transitive communitiesClaudio Jeker
introduced with flowspec. OK tb@
2023-04-21Missing space noticed by Pablo Mendez HernandezClaudio Jeker
2023-04-21Sync common code with bgpctl with the version from there.Claudio Jeker
OK tb@
2023-04-21Implement flowspec add and delete to add/remove flowspec rules dynamically.Claudio Jeker
OK tb@
2023-04-20Rework the way transit provider AID masks are built and sent to the RDE.Claudio Jeker
ASPA provider AS sets can include optional limitations to inet/inet6 these limits are represented in the TAS_AID bit masks (2bits per AS). Introduce a TAS_AID_SIZE() makro that returns the size in bytes of this bit mask (rounded to the next uint32_t). Without this change aspa objects with AID specific elements trigger a fatal error condition when the config is loaded. OK tb@ job@
2023-04-20Consistent casingJob Snijders
2023-04-20ASPAs solely containing providers limited to one AFI, imply AS 0 for the ↵Job Snijders
other AFI OK claudio@
2023-04-20Implement bgpctl show flowspec and bgpctl flowspec flush.Claudio Jeker
This uses the flowspec.c file from bgpd and implements the output for flowspec only for the text printer for now. That code uses a lot of code from printconf.c OK tb@
2023-04-20Implement IMSG_CTL_SHOW_FLOWSPEC and IMSG_FLOWSPEC_FLUSH and add bits forClaudio Jeker
IMSG_FLOWSPEC_ADD and IMSG_FLOWSPEC_REMOVE received from bgpctl via SE. OK tb@
2023-04-20Document flowspec in bgpd.conf.5Claudio Jeker
Input and OK jmc@ tb@