summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2018-01-17Remove erreneous and leftover slash that was part of the regex beforePatrick Wildt
we switched to compiled regexes. Fixes fw_update(1). Noticed by deraadt@ ok sthen@
2018-01-17Process redirection messages from http.Marc Espie
This will help for round-robin sites in anchoring a pkg_add session to a single site, thus removing shearing effects. Initial idea from job@, reworked a lot by me, enthusiastic okay sthen@
2018-01-16Use the monotonic clock to compute the session duration.cheloha
Ensures the correct duration is logged even if the system time is changed during the session. ok jca@
2018-01-16Recycle IFF_NOTRAILERS into IFF_STATICARP and document ownerhsipMartin Pieuchot
of IFF* flags. inputs from jmc@, ok bluhm@, visa@
2018-01-16VMD: vioscsi - add support for REPORT_LUNS opcodeccardenas
ok mlarkin@
2018-01-15fix parsing of RDATA for TXT recordsEric Faurot
ok gilles@
2018-01-15VMD: vioscsi refactorccardenas
Each opcode is now handled in the respective function (vioscsi_handle_xxx) which allows more functionality to be added easier. No functional changes confirmed by guest testing. ok mlarkin@
2018-01-13Add descriptions for HAVE_B64_NTOP and HAVE_B64_PTON so autoheaderTodd C. Miller
will run. OK florian@
2018-01-12Adjust references for sysctl(3) to sysctl(2)Theo de Raadt
2018-01-11Install the intel firmware package which contains microcode updatesPatrick Wildt
if we match Intel CPUs in dmesg(8). "do it do it" deraadt@
2018-01-11Create a second hash that maps all possible drivers to a default regexPatrick Wildt
to match in dmesg(8). This is helpful if we want to install firmware depending on dmesg(8) output that does not follow the typical driver scheme. From espie@ "do it do it" deraadt@
2018-01-11fix parsing of long TXT records, this prevents 'smtpctl spf walk' fromGilles Chehade
producing bogus entries with some SPF records. ok ajacoutot@
2018-01-10Don't require "disk" or "kernel", also allow just "cdrom" instead, a VM canStuart Henderson
still be useful with only cdrom storage. ok ccardenas@
2018-01-08Fix typo in comment; ok mpi@anton
2018-01-08Enable TIOCUCNTL to be able to set ns8250's break detected condition.Martin Pieuchot
It is now possible to send BREAK commands to vmd(8) independently of the serial terminal emulator. Happy virtual ddb(4) hacking! No objection from mlarkin@, ok nicm@, ccardenas@, deraadt@
2018-01-08Mark up command strings with Cm, and variables with Va.Anthony J. Bentley
ok jmc@
2018-01-06tweak previous;Jason McIntyre
2018-01-06Import gilles@'s standalone spfwalk utility into smtpctl(8) asSunil Nimmagadda
'spf walk' command. Ok gilles@
2018-01-06Move unpack functions into a seperate file.Sunil Nimmagadda
Required for upcoming 'smtpctl spf walk'. Ok eric@ gilles@ millert@
2018-01-05@libset is going to be part of the dependency information.Marc Espie
2018-01-05Use log_warnx() in places where errno is irrelevant.Jeremie Courreges-Anglas
ok mlarkin@ ccardenas@
2018-01-05Remove useless <sys/socketvar.h> includes.Martin Pieuchot
ok kettenis@, visa@, claudio@, deraadt@
2018-01-04from paul de weerd: provide a more helpful Xr to ocspcheck, and noteJason McIntyre
that the path to "file" is not relative to the chroot;
2018-01-04Address TOCTOU issue with checking to ensure disks are regular files.ccardenas
Reported by jca@. Ok mlarkin@ and deraadt@
2018-01-03Add support for IPv6 over MPLS pseudowire aka mpw(4)denis
OK claudio@ jca@
2018-01-03Use crypt_checkpass(3) instead of crypt(3).Sunil Nimmagadda
Based on a diff from Edgar Pettijohn. Ok gilles@ eric@
2018-01-03pretty up the "start" command;Jason McIntyre
2018-01-03Add initial CD-ROM support to VMD via vioscsi.ccardenas
* Adds 'cdrom' keyword to vm.conf(5) and '-r' to vmctl(8) * Support various sized ISOs (Limitation of 4G ISOs on Linux guests) * Known working guests: OpenBSD (primary), Alpine Linux (primary), CentOS 6 (secondary), Ubuntu 17.10 (secondary). NOTE: Secondary indicates some issue(s) preventing full/reliable functionality outside the scope of the vioscsi work. * If the attached disks are non-bootable (i.e. empty), SeaBIOS (vmd's default BIOS) will boot from CD-ROM. ok mlarkin@, jca@
2018-01-02we haven't updated the version in a while despite many commits which isGilles Chehade
confusing for people running the portable version
2018-01-02Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.Philip Guenther
ok millert@ sthen@
2018-01-01RSA_private_{en,de}crypt() can fail and will return -1 in that case.Claudio Jeker
Check for this in the ca process and return a valid answer to the relay process. This fixes rsae_send_imsg poll timeouts blocking relay processes as seen by Mischa Peters and myself. OK benno@
2018-01-01placeholder for new keyword that doesn't do anything yet, so that when itMarc Espie
gets used, tools already know about it a bit. (meant to simplify wantlib updates down the line)
2017-12-30get_date(), from getdate.y, was last used in the sparc support, so zap itPhilip Guenther
ok kettenis@
2017-12-29Prevent syspatch from running and throw an error out if reorder_kernel isAntoine Jacoutot
running. This is to prevent syspatch from installing new kernel object files while reordering is in progress (typically after an install/upgrade on slow machines). req. by and OK sthen@
2017-12-27log specific error when connect() fails.Sebastian Benoit
ok claudio@, feedback bluhm@
2017-12-23As we only use the .tv_sec field, simplify gettimeofday(2) -> time(3).cheloha
ok tb@ jca@
2017-12-23the trick to get signal names requires skipping over POSIX stuff we don'tMarc Espie
have now. as seen by landry@
2017-12-21typo;Jason McIntyre
2017-12-21Close the right file descriptor and clean up the tls context in aldap_close().Jonathan Matthew
ok zhuk@ deraadt@
2017-12-18always initialize the hce_launch_checks event timer.Sebastian Benoit
Fixes a crash when poll is run without any checks. Found and fixed by Hiltjo Posthuma (hiltjo -AT- codemadness -DOT- org). ok claudio@
2017-12-18Add the CLOCK_BOOTTIME clockid for use with clock_gettime(2)cheloha
and put it to use in userspace in lieu of the kern.boottime sysctl. Its absolute value is the time that has elapsed since the system booted, i.e., the system uptime. Use in top(1), w(1), and snmpd(8) eliminates a race with settimeofday(2), adjtime(2), etc. inherent to deriving the system uptime via the kern.boottime sysctl. Product of a great deal of discussion/revision with jca@, tb@, and guenther@. ok tb@ jca@ guenther@ dlg@ mlarkin@ tom@
2017-12-14set Location header for 307 and 308 status codesSebastian Benoit
ok sthen@ phessler@
2017-12-08Convert snprintf+write into dprintf. It is simply easier to read, andTheo de Raadt
provides retry on short-write file descriptors. ok florian, previous versions seen by millert
2017-12-07Now that we have RB_NFIND, the canacar's trick with RB_INSERT+RB_NEXTVadim Zhukov
is not needed anymore. okay jmatthew@
2017-12-07client_addr_init() never fails and its return value is never checked,Vadim Zhukov
so just make it void. okay jmatthew@
2017-12-07Fix a potential fd leak in client_aldap_open().Vadim Zhukov
okay jmatthew@
2017-12-06Make vmd respect owner when starting non-disabled vms.Aaron Bieber
OK pd@, benno@
2017-12-02switching to _pbuild is tricky, you can't take it back.Marc Espie
in particular, disable future PORTS_PRIVSEP mechanisms under pkg_create, because we should already be running as _pbuild by this point.
2017-12-01Avoid using an uninitialized variable.Visa Hankala
Found by gcc. OK jca@
2017-11-30When performing vmctl reload and a previously configured vm is running,ccardenas
exit with an EALREADY vs EPERM. ok mlarkin@