summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2021-11-09Use more sensible transforms in example config.Tobias Heider
2021-11-09Increase min and max src a bit to accomodate growth and git usersOtto Moerbeek
From Mikhail <mp39590@gmail.com>
2021-11-09Try this again, with (__powerpc__ || __mips__) chunk actuallyKenneth R Westerback
compiling. Use a couple of local 'struct prt' variables to make MBR_init() easier to read. No functional change.
2021-11-09no, that breaks architecturesTheo de Raadt
2021-11-08Use a couple of local 'struct prt' variables to make MBR_init()Kenneth R Westerback
easier to read. No functional change.
2021-11-07Nuke unused file.Kenneth R Westerback
2021-11-05Clarify iface option.Tobias Heider
2021-11-05Correct auto table entry for /var: it's 4G plus 2x physmemOtto Moerbeek
2021-11-04Tweaks (improve previous commit)YASUOKA Masahiko
from jmc
2021-11-04Clarify "aes" will accept keys which length is in 128:256 bits. AlsoYASUOKA Masahiko
correct "cast" in ipsec.conf.5 to "cast128", add missing "chacha20-poly1305", and sync iked.conf.5 and ipsec.conf.5 some places. ok jmc sthen
2021-11-03Clarify that ANY can be used for several parameters of IPsec transform.YASUOKA Masahiko
ok jmc sthen
2021-11-03Zap swapips remnantsKlemens Nanni
There since 1998, probably dead long before. "I am sure swabips died before you were born." deraadt
2021-11-02fix previousKlemens Nanni
2021-11-02Return non-zero on failed "nwkey" commandKlemens Nanni
Fail early and exit non-zero immediately instead of indicating success and possibly carrying the next ifconfig command. Found at install when wifi interfaces are reset with "-nwid -nwkey -wpa": Which network interface do you wish to configure? (or 'done') [bse0] bwfm0 ifconfig: SIOCS80211NWKEY: Operation not supported by device Access point? (ESSID, 'any', list# or '?') [any] 2 Security protocol? (O)pen, (W)EP, WPA-(P)SK [O] bwfm(4) currently does not support WEP. OK stsp
2021-10-31Now that X509_OBJECT is opaque, we need to allocate it on the heapTheo Buehler
instead of having it on the stack. Adjust code accordingly.
2021-10-29Tweak code to make it clear that MBR_init() uses just the boot code andKenneth R Westerback
partition 0 information from the default MBR. loongson and macppc provide partition 0 information but no boot code. amd64, i386, landisk provide boot code but no partition 0 information. Other arch's get by w/o a default MBR (a.k.a. /usr/mdec/mbr). No functional change.
2021-10-29the list of devices which can be created it getting unwieldy and keep gettingJason McIntyre
out of date: remove it (sthen) and add a pointer to -C (dlg); ok sthen
2021-10-28Accept server replies from any server portKlemens Nanni
There is no requirement other than replying to client port 68/udp as per RFC 2131, so drop the 67/udp check. Same conclusion from florian Reported and tested by Roc Vallès < vallesroc AT gmail DOT com>, thanks!
2021-10-27Mention vether(4) and mpip(4) interfaces in the create listSolene Rapenne
ok benno@ dlg@
2021-10-26Make proto config option accept a list to allow specifying multipleTobias Heider
protocols for a single policy, e.g. "proto { ipencap, ipv6 }". feedback and ok benno@ ok patrick@
2021-10-26Generalise "nameserver" workingsKlemens Nanni
The generated route message is not at all resolvd(8) specific. Mention how unwind(8) reacts to proposals as well. "Broadcast" wording deraadt jmc OK millert
2021-10-25Zap unused variables/functions under /usr/src/*bin/Klemens Nanni
OK deraadt
2021-10-25- pfctl $nr incorrect macro expansionAlexandr Nedvedicky
Issue reported by Kristof Provost from FreeBSD. [ https://reviews.freebsd.org/D32488 ] In order to fix the issue we must delay '$nr' macro expansion after optimizer collapses ruleset. OK kn@
2021-10-25Nuke a bunch of pointless #ifndef _<.h file>/#endif guards.Kenneth R Westerback
2021-10-24For open/openat, if the flags parameter does not contain O_CREAT, theTheo de Raadt
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
2021-10-24Use braces in config examplesKlemens Nanni
We document them as explicitly required, `unwind -dnvf...' spits them out like this and the last `force' example uses them as well.
2021-10-23Move "-T" and "exec" support out of SMALLKlemens Nanni
Ramdisk kernels lack support for alternate routing tables, so "-T N" for N > 0 always fails. "route -T0 exec" is just a useless "exec", so zap it completely. OK benno
2021-10-23unwind(8) gives the most preferred resolver strategy a bit more timeFlorian Obser
(200ms) to answer before trying the next strategy. However, we need to skip strategies that are not available. In the default configuration, without a config file unwind(8) would give DoT 200ms more time, but no DoT forwarders are known, so this is useless. OK kn
2021-10-22Document existent "descr" alias for "description"Klemens Nanni
2021-10-22Make ":tdelete" workKlemens Nanni
r1.91 added tags for all commands, but "del[ete]" is special in that mandoc(1) will generate a tag for "del" only. Add an explicit for the full command to fix this.
2021-10-22remove some bad punctuation;Jason McIntyre
2021-10-22oops, missed unused variable in previousFlorian Obser
2021-10-22config_new_empty() should give us a completely empty config, letFlorian Obser
parse_config() handle the case of defaults. This prevents the resolver process from spinning up resolver strategies before the config has been parsed and tearing them down immediately after if they are not listed in the config files preferences section. OK kn
2021-10-22Honour enabled resolvers to keep unused forwarders actually disabledKlemens Nanni
An unwind.conf like the following would still query forwarders, both "." periodically and any explicit "example.com." queries: preference { recursor autoconf stub } forwarder { 2001:db8::1 } force accept bogus forwarder { example.com. } That's because the forwarder and resolver children processes start with the default configuration and main later sends them the effective user configuration; merging them, however, would ignore the list of enabled resolvers, i.e. those listed in the `preference {}' block and thusly cause children to always have all forwarders enabled (as is by default). Copy the resolvers list during merge to fix this and restore expected behaviour. (Noticed during tests with "forwarder" temporarily removed from `preference {}' while leaving the rest as is: my VPN interface serving that forwarder showed DNS traffic while it was supposed to be silent.) OK florian
2021-10-22After deleting hifn(4) the only provider for the LZS compressionAlexander Bluhm
algorithm is gone. Reomve all LZS references from the tree. The v42bis in isakmpd also looks unsupported. OK mvs@ patrick@ sthen@
2021-10-21isakmpd: prepare for opaque X509_STORE_CTX struct.Theo Buehler
ok benno
2021-10-21isakmpd: prepare for opaque X509_EXTENSION struct. This needs to useTheo Buehler
an accessor instead of reaching directly into the struct. ok benno
2021-10-21Remove 'disk' editing command. Determining the disk geometry on startup (fromKenneth R Westerback
-l, -c/-h/-s or DIOCGPDINFO) should be enough for anyone.
2021-10-20Do not ignore carp(4) interfaces.Florian Obser
Problem reported by Guy Godfroy on bugs, thanks!
2021-10-19Move get_default_mbr() invocation before DISK_open() invocation and removeKenneth R Westerback
"rpath wpath" from the pledge() invocation. Makes default_dmbr information available to DISK_open(). No intentional functional change.
2021-10-18Don't bother decoding a partition's c/h/s start or end from the MBR read fromKenneth R Westerback
disk. The decoded values were overwritten by an invocation of PRT_fix_CHS() before they were used.
2021-10-18r1.66 (May 2014) introduced a two #if 0/#else/#endif chunks to avoid "overKenneth R Westerback
optimistic alignment expectations" when extracting a uint32_t field from a packed struct. r1.70 (March 2015) removed one of the two #if 0 chunks, realizing there was no real gain to be had even if various compilers were ever able to intuit the expected alignment. Belatedly nuke the other #if 0 chunk and always memcpy() the uint32_t values out of the struct.
2021-10-15Don't declare variables as "unsigned char *" that are passed toChristian Weisgerber
functions that take "char *" arguments. Where such chars are assigned to int or passed to ctype functions, explicitly cast them to unsigned char. For OpenBSD's clang, -Wpointer-sign has been disabled by default, but when the parse.y code was built elsewhere, the compiler would complain. With help from millert@ ok benno@ deraadt@
2021-10-13isakmpd: remove #ifdefs for ancient OPENSSL_VERSIONs.Theo Buehler
No-one is going to build this with OpenSSL 0.9.7 or earlier, so we can remove this code. ok bluhm sthen (as part of a larger diff)
2021-10-13isakmpd: remove libcrypto.cTheo Buehler
All this does is a call to OpenSSL_add_all_algorithms(), which is no longer needed since libbcrypto initializes itself. ok bluhm sthen (part of a larger diff)
2021-10-13Nuke builtin_mbr.Kenneth R Westerback
Those architectures needing either MBR boot code (amd64, i386, landisk) or special boot partitions (macppc, loongson) have long used /usr/mdec/mbr to provide that information. Other architectures should not blindly write i386/amd64 boot code into the MBR. Fail quickly if the desired default MBR file is missing. Prompted by deraadt@, tweak from kettenis@.
2021-10-12Change responder to prefer DH group from KE payload.Tobias Heider
Without this change the responder would always prefer the first DH group configured in its policy. This would lead to invalid KE messages that cause an additional exchange which old implementations do not support correctly. Now we ignore the order of DH groups in the policy and prefer the group from the policy that matches the KE payload. from markus@ ok patrick@
2021-10-12Make sure all copies of MSCHAPv2 passphrase are zeroed after use.Tobias Heider
ok patrick@
2021-10-10No need to assign dl.d_nsectors to disk.dk_sectors twice.Kenneth R Westerback
Two statements on one line may have seemed clever but now it's just confusing. No functional change.
2021-10-09delete unneccessary arpa/nameser.h includesTheo de Raadt
ok millert