summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2023-05-22Keep trying LDAP servers until we get full results from one, rather thanJonathan Matthew
just until one accepts the TCP connection. In multi server environments, this makes ypldap more resilient when some servers are misbehaving. While here, add the server address to log messages relating to connection errors to make it easier to identify which server is failing. ok tb@
2023-05-21missed oneMarc Espie
2023-05-21move the interface to SharedLibs to be somewhat object orientedMarc Espie
accordingly, load it "just in time" in State. Most calls get simplified, and we can save more state for later.
2023-05-21document how this is used... There's nothing that actually uses theMarc Espie
export part, and be explicit about how we call code refs.
2023-05-21"fix" for 5.36: pass the possible option value as an extra paramMarc Espie
instead of defined/undefined, so that the code sub is called with the right number of parameters.
2023-05-21v5.36, trivial moveMarc Espie
2023-05-20Don't bother setting the effective group, it doesn't affect file creationMarc Espie
on a BSD system anyhow (duh moment, thx semarie@)
2023-05-19fix markup for `maildir' in smtpd.conf(5)Omar Polo
pathname and junk are both optional, but indipendently so. ok aisha, millert
2023-05-19make Paths fully OO, as it makes some things simplerMarc Espie
2023-05-19this parameter does not existMarc Espie
2023-05-19remove indirect callsMarc Espie
2023-05-18user: handle paths with whitespace / metacharactersTodd C. Miller
Use execv(3) instead of system(3) to run external commands. This avoids problems with whitespace and shell metacharacters in path names. OK op@
2023-05-18adjust style to post v5.36 worldMarc Espie
2023-05-17fix -nMarc Espie
2023-05-17stop using old-style prototypes except where strictly necessaryMarc Espie
(for try/catch) signatures will be much more powerful once I move to 5.36
2023-05-17actually fix caching for release/stableMarc Espie
$r2 computation was wrong, led to an undef, which autovivification promptly masked
2023-05-16useradd: use "cp" instead of "pax" to copy dot filesTodd C. Miller
There are some minor semantic differences but nothing that should affect files in /etc/skel. OK op@
2023-05-16some fatal -> fatalx to improved loggingOmar Polo
errno doesn't generally contains anything useful after libtls functions, and in most cases it's explicitly cleared to avoid misuse, so change a few fatal() calls to fatalx() when logging libtls failures. Also, add the real error string, via tls_error() or tls_config_error(), that was missing before. ok millert@
2023-05-16RRDP snapshots should encode publish elements only once. If encounteredClaudio Jeker
fail the transfer and fall back to rsync. When more than one publish element for the same file exist the RP does not know which one to choose. Lets fail the RRDP transfer in this case and fall back to rsync. CA that publish a file more than once are buggy and need to be fixed. OK job@ tb@
2023-05-16explicitly rename internal methods with an _Marc Espie
2023-05-16clean visible interface a bit: Ustar does not use errsay (but ArcCheck does)Marc Espie
and having a forwarder for system for ONE use is a bit much !
2023-05-16cleaner documentation of what's going onMarc Espie
2023-05-16start un-exposing some internal methodsMarc Espie
2023-05-16ditch subclasses for PackingList: I ended up never using this anywhereMarc Espie
2023-05-16use the new set_destdir interfaceMarc Espie
2023-05-16avoid the "indirect object" call, as it won't work with v5.36Marc Espie
document a few useful details introduce a less confusing set_destdir inteface for later
2023-05-16explain why there is a hierarchy with one single subclass, becauseMarc Espie
we never know when we may need to change crypto-hashes!
2023-05-16document a few small details, some of them non-obvious likeMarc Espie
the inheritance hierarchy or the exact interface for ->add
2023-05-16document extra parameter that's used by pkg_checkMarc Espie
2023-05-16typoMarc Espie
2023-05-16the old "indirect method call" was deprecated recently (apart fromMarc Espie
mimicing perl base syntax on fh objects and the likes), so use the more consistent class->method calling method in examples (and in code)
2023-05-16State -> BaseState, for lightweight requirementsMarc Espie
2023-05-16reflect reality better: document set_description and friendsMarc Espie
2023-05-16since apparently, the "example" conf is not free-form (adding commentsMarc Espie
would break scripts, go figure), highlight the staging servers so that people with non-standard configurations (challenge/response) get a chance at figuring things out. okay tb@
2023-05-15user: simplify memsave() to strsave()Todd C. Miller
All callers of memsave() pass strlen(s) as the size argument. We can eliminate the size argument and just use strdup(3) instead. OK tb@
2023-05-15cast to '(long long)' instead of '(long long int)'Omar Polo
while here adjust the spacing in some of the touched lines. requested by deraadt@, ok tb@
2023-05-13vmm(4)/vmd(8): switch to anonymous shared mappings.Dave Voutila
While splitting out emulated virtio network and block devices into separate processes, I originally used named mappings via shm_mkstemp(3). While this functionally achieved the desired result, it had two unintended consequences: 1) tearing down a vm process and its child processes required excessive locking as the guest memory was tied into the VFS layer. 2) it was observed by mlarkin@ that actions in other parts of the VFS layer could cause some of the guest memory to flush to storage, possibly filling /tmp. This commit adds a new vmm(4) ioctl dedicated to allowing a process request the kernel share a mapping of guest memory into its own vm space. This requires an open fd to /dev/vmm (requiring root) and both the "vmm" and "proc" pledge(2) promises. In addition, the caller must know enough about the original memory ranges to reconstruct them to make the vm's ranges. Tested with help from Mischa Peters. ok mlarkin@
2023-05-12vmd(8): fix segfault on vm creation.Dave Voutila
vm_instance was using the wrong vm instance for checking the vm_kernel_path member. Switch to using the value from the parent vm instance in the check for if a kernel is known. Issue reported by kn@. OK mlarkin@, kn@.
2023-05-12vmd(8): fix console attach from vmctl(8).Dave Voutila
Adding in the ability to override the boot kernel created an edge case in the ipc message handling logic for the parent process (vmd) when receiving a "start vm" request. Result was incorrectly responding to the control process, and as a result the vmctl client, with a bogus "start vm response" reply with an empty tty name. This commit rewrites the logic of how vmd goes about processing the "start vm" request with the aim of making it simpler to understand while addressing the edge case. Issue reported by kn@. OK mlarkin@.
2023-05-12btrace(8) support to symbolize utrace addresses.Claudio Jeker
This only works for a single static binary where everything was compiled with -fno-omit-frame-pointer since the stack unwinder requires the frame-pointer. A possible btrace script to capture performace of a single process is: profile:hz:100 / pid == $1 / { @[ustack] = count(); } Then using btrace -p program uprofile.bt `pgrep program` will collect the information for program. This is far from perfect but should allow other people to play with this and hopefully improve work. OK mpi@
2023-05-12staggered deployment parallelism defaults to number of *online* CPUsKlemens Nanni
vmd looks at hw.ncpuonline not hw.ncpu[found], which can differ w/o SMT.
2023-05-11Print the manifestNumber when warning about unrecoverable message digest ↵Job Snijders
mismatches This makes it easier to understand "when" certain error conditions arose. OK tb@
2023-05-11In valid_cert() also skip the check for CERT_IP_INHERIT objects likeClaudio Jeker
it is done for CERT_AS_INHERIT. Without this inheritance of IP address resources does not work. Problem noticed by Ties de Kock (tdekock (at) ripe.net) OK job@ tb@ benno@
2023-05-10Reset the io_time (io timeout value) when the timer expires. Without thisClaudio Jeker
the next connect will immediatly timeout again which is not intended. It does not matter in the other case since the connection is destroyed anyway. Problem noticed by job@ and Jelle (jelle (at) luteijn.email) OK job@ tb@
2023-05-10constify day, month and tzOmar Polo
spotted while diffing with -portable, where tz is marked as const. ok tb@
2023-05-10cast time_t to long long for printf, reduces the diff with -portableOmar Polo
ok millert@
2023-05-10add a few missing headers, reduces the diff with -portableOmar Polo
ok millert@
2023-05-10remove trailing whitespaceOmar Polo
2023-05-09Adjust bgplgd after renaming of the invalid option in bgpctl.Claudio Jeker
This does not change the query string argument. We may do this at a later stage. OK tb@
2023-05-09Rename 'invalid' to 'disqualified' in the 'show rib' table.Claudio Jeker
'invalid' conflicts with the 'in' keyword and the parser is not smart enough to handle this. As a secondary benefit the term 'invalid' is less overloaded. There are various reasons why prefixes are not eligible in the route decision process calling them all 'invalid' is a bit harsh. job@, tb@ and benno@ agree