Commit Graph

3952 Commits

Author SHA1 Message Date
uwe 8659a71dd2 bc(1): Use .Fn and .Fa for functions and their arguments. 2021-01-07 20:37:33 +00:00
uwe ac2e48a91d bc(1): Indent displays with code examples. 2021-01-07 20:22:34 +00:00
uwe 55e91dd140 bc(1): Misc fixes in the DIFFERENCES section.
Make "last" an item, as intended.
Make operators literal.
2021-01-07 20:12:59 +00:00
uwe f308096576 bc(1): small mdoc fixes to improve PostScript output.
The length/scale example at the beginning is not all literal.
Fix remaining "quoted" words to use .Dq
Fix a few small inline code snippets to be literal.
2021-01-07 19:49:13 +00:00
simonb 76c08b0f65 Use the compat machinery to build "native" IPF binaries as ipfilter
doesn't use compat32 64-bit alignment/size safe structures.

Fixes IPF on at least mips64.
2021-01-05 11:07:59 +00:00
roy a391b1d3f3 ntp: respect user's wishes to disable interface scanning
While here, disable periodic scanning by default on NetBSD as it's
no longer needed.
The user can still enable it though with a positive number to the -U
option.

kardel@ So far I see no other issues from the pitfalls I know of
2021-01-03 15:33:05 +00:00
roy 40ce895ed2 libunbound: Enforce that mini_event isn't used by include/config.h
As I tire of fixing it to use libevent.
2021-01-01 23:24:31 +00:00
roy d362c81b92 Revert prior
With the correct #defines mini_event.c and winsock_event.c are
compiled but practically unused.

What is exposed is not part of the public API, but appease the
peanut gallery.
2021-01-01 23:17:15 +00:00
roy 5594672737 libunbound: Now we use libevent, don't build mini_event or winsock_event. 2021-01-01 20:38:36 +00:00
roy 45fc1a8d69 libunbound: actually use libevent as we link to it
Would appreciate if people modify this file to actually test what
polling mechanism unbound uses as select(2) is pretty poor.
2021-01-01 20:16:16 +00:00
roy ddf02b2602 ntpd: In the event of route(4) overflow, update the interfaces 2021-01-01 17:21:47 +00:00
roy ec176a5418 wpa: If route socket overflows, sync drivers to system interfaces
Messages such as RTM_IFNFO or RTM_IFANNOUNCE could have been lost.
As such, sync the state of our internal driver to the state of the
system interfaces as reported by getifaddrs(2).

This change requires the routing socket be placed in non-blocking
mode. While here, set the routing and inet sockets to close on exec.
2021-01-01 14:57:14 +00:00
roy 5311ca77c4 Sync with dhcpcd-9.4.0 2020-12-28 13:57:40 +00:00
roy f7c1f2f087 Update to dhcpcd-9.4.0 with the following changes:
* DHCP: For anonymous, just use a generic ClientID
 * link: Split hardware address randomisation out of anonymous option
 * link: Only report hardware changes for active interfaces
 * link: Report errors obtaining recv buffer size on overflow
 * hooks: Add NOCARRIER_ROAMING reason
 * hooks: interface_order now reflects priorities again
2020-12-28 13:56:25 +00:00
roy 0949b2eded Sync with openresolv-3.12.0 2020-12-27 18:26:50 +00:00
maya 3b87c75504 Merge pkg_install-20201218 2020-12-18 20:07:39 +00:00
maya be7e67f290 Merge pkg-install-20201218 2020-12-18 17:32:41 +00:00
maya b78f5c4f5d import pkg_install version 20201218 from pkgsrc
- Support continuing to install to /var/db/pkg if it exists and the
new pkgdb doesn't.
In the future, we can warn about this once we have tested advice that
we can give to users who want to move the location of pkgdb.

- Don't do anything about /var/db/pkg on non-NetBSD-base.
This creates conflicts with other package managers that also install to
/var/db/pkg.
2020-12-18 17:19:16 +00:00
rin 258e420cd1 For alpha, apply -O0 hack again to rtree.c for GCC9.
Otherwise, GDB11 crashes in strange ways.
2020-12-16 01:21:32 +00:00
rin 33bbc93266 Correct and extend comments on VA for alpha. No binary changes. 2020-12-16 01:20:19 +00:00
christos b98337e278 Use the NetBSD-specific back-end. 2020-12-12 18:45:11 +00:00
christos d95e80469e Add a NetBSD-specific back-end. (riastradh@) 2020-12-12 18:44:38 +00:00
christos e84e9f5696 Don't try to memcpy (size_t)-1 bytes! 2020-12-12 18:19:34 +00:00
wiz de1f604daa merge pkg_install-20201212 2020-12-12 11:00:57 +00:00
wiz f5c2953af3 Merge pkg_install-20201205 2020-12-05 16:21:26 +00:00
christos a0835e958e merge changes 2020-12-04 18:27:44 +00:00
christos 1fc1e710a8 Version 1.5.0 (2020-09-01)
hid_linux: return FIDO_OK if no devices are found.
    hid_osx:
        repair communication with U2F tokens, gh#166;
        reliability fixes.
    fido2-{assert,cred}: new options to explicitly toggle UP, UV.
    Support for configurable report lengths.
    New API calls:
        fido_cbor_info_maxcredcntlst;
        fido_cbor_info_maxcredidlen;
        fido_cred_aaguid_len;
        fido_cred_aaguid_ptr;
        fido_dev_get_touch_begin;
        fido_dev_get_touch_status.
    Use COSE_ECDH_ES256 with CTAP_CBOR_CLIENT_PIN; gh#154.
    Allow CTAP messages up to 2048 bytes; gh#171.
    Ensure we only list USB devices by default.
Version 1.4.0 (2020-04-15)
    hid_hidapi: hidapi backend; enable with -DUSE_HIDAPI=1.
    Fall back to U2F if the key claims to, but does not support FIDO2.
    FIDO2 credential protection (credprot) support.
    New API calls:
        fido_cbor_info_fwversion;
        fido_cred_prot;
        fido_cred_set_prot;
        fido_dev_set_transport_functions;
        fido_set_log_handler.
    Support for FreeBSD.
    Support for C++.
    Support for MSYS.
    Fixed EdDSA and RSA self-attestation.
Version 1.3.1 (2020-02-19)
    fix zero-ing of le1 and le2 when talking to a U2F device.
    dropping sk-libfido2 middleware, please find it in the openssh tree.
2020-12-04 18:09:13 +00:00
wiz 0a3564ede9 Define PREFIX for pkg_install build. 2020-12-02 13:54:25 +00:00
wiz c42605055f merge pkg_install after import of 20201202 version 2020-12-02 13:53:50 +00:00
jkoshy d1342fa268 Unbreak the lint build (sync to elftoolchain [r3912]). 2020-11-30 22:26:30 +00:00
roy 5e88f5cfd3 Sync with dhcpcd-9.3.4 2020-11-28 14:27:20 +00:00
roy 5e29b77e59 Upate to dhcpcd-9.3.4 with the following changes:
With the following changes:
 * DHCP: If error adding the address in oneshot, exit with failure
 * DHCP: Only listen to the address if we successfully added it
 * DHCP6: Fix segfault introduced in dhcpcd-9.3.3
 * DHCP6: Abort in test mode when an error is returned by server
 * options: allow --ia_na=1 and --ia_pd=2 on the command line
 * options: Allow duid to take a value
2020-11-28 14:26:16 +00:00
jkoshy 604b08429e Sync libdwarf's manual pages with upstream. 2020-11-26 22:51:35 +00:00
jkoshy ef39d52e3c Sync with elftoolchain upstream. 2020-11-26 21:52:00 +00:00
jkoshy fd073023b0 Restore an overlooked 'Id' line. 2020-11-26 21:01:47 +00:00
jkoshy b16194a2b0 Sync '_elftc.h' with the upstream elftoolchain project. 2020-11-21 21:04:25 +00:00
roy 86988fb56b Sync with dhcpcd-9.3.3 2020-11-20 13:24:58 +00:00
roy d55488a43d Update to dhcpcd-9.3.3 with the following changes:
* dhcpcd: Don't create a launcher process if keeping in foreground
 * dhcpcd: Add --noconfigure option
 * control: Create an unpriv socket for non master mode
 * options: Don't log unknown ones when printing pidfile location
2020-11-20 13:23:38 +00:00
jkoshy e40f8f8406 Update 'elfdefinitions.h' to elftoolchain revision [r3891]. 2020-11-19 20:58:30 +00:00
jkoshy 1b4a9ac54c Sync 'utarray.h' and 'uthash.h' with elftoolchain revision [r3891].
This change upgrades these files to UT{HASH,ARRAY}_VERSION 2.1.0.
2020-11-18 22:23:05 +00:00
rin a8c74629f6 Support aarch64eb in */config.guess.
Cherry-picked from upstream:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea

Everything except external/apache2/llvm/dist/llvm/cmake/config.guess
is patched, which is under vendor tag and cannot be modified. I expect
that this file is not actually used as we use hand-crafted version of
configure script instead of cmake for building LLVM.

Note that external/apache2/llvm/autoconf/autoconf/config.guess has
already been committed on Oct. 20, but commit message disappeared as
cvs aborted due to "permission denied" when trying to modify the file
mentioned above. Sorry for confusing you.

Also note that GMP uses its own config.guess Patch for
external/lgpl3/gmp/dist/config.guess is provided by ryo@. Thanks!
2020-11-17 10:35:10 +00:00
nia a42fc114cd Revert addition of pthread dependency on sqlite.
It is less trivial than expected and introduced some surprising breakage.
2020-11-12 17:53:43 +00:00
nia 70f54ff57b sqlite: do not build without multithreading support
at least a few pkgsrc packages avoid base sqlite because it fails
this check, and it's probably a surprising performance penalty for
unsuspecting users
2020-11-08 21:56:47 +00:00
khorben b1a049293e PR/55747: Tobias Nygren: Install manpages for pam-u2f
I have added a Makefile rule, indicating how to generate the manual
pages again. It has no dependency on the original file, in order to
avoid issues when building: the generation depends in asciidoc and
libxslt, which are not in tools or in the base tree anyway. It should
therefore never trigger, but should be used by the maintainer when
updating pam-u2f.

With this, I believe this PR can be closed.

Tested with "build.sh release" on amd64.
2020-11-04 13:46:46 +00:00
tnn 78c2a58449 tmux.h: annotate file_vprint() as printflike 2020-11-03 10:52:58 +00:00
khorben 4e356941bc PR/55747: Tobias Nygren: Install manpages for pam-u2f
I have generated the manual pages and referenced them into the sets.
It would probably help to add a Makefile rule, indicating how to
generate the manual pages again.

Tested with "build.sh release" on amd64.

Reviewed by Tobias Nygren before the commit.
2020-11-02 06:40:11 +00:00
christos 68e6ba8497 merge conflicts 2020-11-01 15:16:04 +00:00
christos aa83ff61b0 CHANGED FROM 3.1b TO 3.1c
* Do not write after the end of the array and overwrite the stack when
  colon-separated SGR sequences contain empty arguments.

CHANGES FROM 3.1a TO 3.1b

* Fix build on systems without sys/queue.h.

* Fix crash when allow-rename is on and an empty name is set.

CHANGES FROM 3.1 TO 3.1a

* Do not close stdout prematurely in control mode since it is needed to print
  exit messages. Prevents hanging when detaching with iTerm2.

CHANGES FROM 3.0a TO 3.1

* Only search the visible part of the history when marking (highlighting)
  search terms. This is much faster than searching the whole history and solves
  problems with large histories. The count of matches shown is now the visible
  matches rather than all matches.

* Search using regular expressions in copy mode. search-forward and
  search-backward use regular expressions by default; the incremental versions
  do not.

* Turn off mouse mode 1003 as well as the rest when exiting.

* Add selection_active format for when the selection is present but not moving
  with the cursor.

* Fix dragging with modifier keys, so binding keys such as C-MouseDrag1Pane and
  C-MouseDragEnd1Pane now work.

* Add -a to list-keys to also list keys without notes with -N.

* Do not jump to next word end if already on a word end when selecting a word;
  fixes select-word with single character words and vi(1) keys.

* Fix top and bottom pane calculation with pane border status enabled.

* Add support for adding a note to a key binding (with bind-key -N) and use
  this to add descriptions to the default key bindings. A new -N flag to
  list-keys shows key bindings with notes. Change the default ? binding to use
  this to show a readable summary of keys. Also extend command-prompt to return
  the name of the key pressed and add a default binding (/) to show the note
  for the next key pressed.

* Add support for the iTerm2 DSR 1337 sequence to get the terminal version.

* Treat plausible but invalid keys (like C-BSpace) as literal like any other
  unrecognised string passed to send-keys.

* Detect iTerm2 and enable use of DECSLRM (much faster with horizontally split
  windows).

* Add -Z to default switch-client command in tree mode.

* Add ~ to quoted characters for %%%.

* Document client exit messages in the manual page.

* Do not let read-only clients limit the size, unless all clients are
  read-only.

* Add a number of new formats to inspect what sessions and clients a window is
  present or active in.

* Change file reading and writing to go through the client if necessary. This
  fixes commands like "tmux loadb /dev/fd/X". Also modify source-file to
  support "-" for standard input, like load-buffer and save-buffer.

* Add ~/.config/tmux/tmux.conf to the default search path for configuration
  files.

* Bump the escape sequence timeout to five seconds to allow for longer
  legitimate sequences.

* Make a best effort to set xpixel and ypixel for each pane and add formats for
  them.

* Add push-default to status-left and status-right in status-format[0].

* Do not clear search marks on cursor movement with vi(1) keys.

* Add p format modifier for padding to width and allow multiple substitutions
  in a single format.

* Add -f for full size to join-pane (like split-window).

* Do not use bright when emulating 256 colours on an 8 colour terminal because
  it is also bold on some terminals.

* Make select-pane -P set window-active-style also to match previous behaviour.

* Do not truncate list-keys output.

* Turn automatic-rename back on if the \033k rename escape sequence is used
  with an empty name.

* Add support for percentage sizes for resize-pane ("-x 10%"). Also change
  split-window and join-pane -l to accept similar percentages and deprecate the
  -p flag.

* Add -F flag to send-keys to expand formats in search-backward and forward
  copy mode commands and copy_cursor_word and copy_cursor_line formats for word
  and line at cursor in copy mode. Use for default # and * binding with vi(1)
  keys.

* Add formats for word and line at cursor position in copy mode.

* Add formats for cursor and selection position in copy mode.

* Support all the forms of RGB colour strings in OSC sequences rather than
  requiring two digits.

* Limit lazy resize to panes in attached sessions only.

* Add an option to set the key sent by backspace for those whose system uses ^H
  rather than ^?.

* Change new-session -A without a session name (that is, no -s option also) to
  attach to the best existing session like attach-session rather than a new
  one.

* Add a "latest" window-size option which tries to size windows based on the
  most recently used client. This is now the default.

* Add simple support for OSC 7 (result is available in the pane_path format).

* Add push-default and pop-default for styles which change the colours and
  attributes used for #[default]. These are used in status-format to restore
  the behaviour of window-status-style being the default for
  window-status-format.

* Add window_marked_flag.

* Add cursor-down-and-cancel in copy mode.

* Default to previous search string for search-forward and search-backward.

* Add -Z flag to rotate-window, select-pane, swap-pane, switch-client to
  preserve zoomed state.

* Add -N to capture-pane to preserve trailing spaces.

* Add reverse sorting in tree, client and buffer modes.
2020-11-01 14:52:00 +00:00
roy 8790575961 Sync with dhcpcd-9.3.2 2020-11-01 14:24:01 +00:00
roy 545ab76352 Update to dhcpcd-9.3.2 with the following changes:
* DHCP: Add support for IPv6-Only Preferred option, RFC 8925.
 * BSD: `LINK_STATE_UNKNOWN` is treated as UP once again
 * privsep: pass logging to the privileged actioneer
 * privsep: allow logfile re-opening to work
 * privsep: close BPF socket on ENXIO
 * privsep: don't leave a BOOTP BPF listener rebooting in non master mode
2020-11-01 14:23:02 +00:00
martin 5d507f2d93 libsqlite3 now requires -lm 2020-10-30 08:41:58 +00:00
christos 00a4973a0c include <bsd.own.mk> where missing. 2020-10-18 15:20:13 +00:00
roy 0a9e4e74f0 Sync withn dhcpcd-9.3.1 2020-10-12 14:09:03 +00:00
roy 597ffba2d5 Update to dhcpcd-9.3.1 with the following changes:
* dhcpcd: carrier handling issue fixed from 9.3.0
 * dhcpcd: log if interface type is unsupported in debug
 * duid: memory leak fixed if UUID wanted but none available
 * privsep: fix receiving inet and no BPF running
 * privsep: allow gettimeofday for SECCOMP
 * privsep: fix stderr redirection again
2020-10-12 14:07:55 +00:00
rin 428b4e25bc Fix build; clean manpages only if they are generated automatically. 2020-10-11 07:07:31 +00:00
christos 64014ae499 PR/55710: Kimmo Suominen: Delete manual pages so that they get copy from the
imported, already generated ones.
2020-10-10 14:25:21 +00:00
christos 25e0134e2d Use .PARSEDIR 2020-10-10 14:23:48 +00:00
christos 8cd1dd28ab Add rules for manual pages builds, remove including Makefile.inc 2020-10-10 14:23:34 +00:00
christos 663d916a0c include bsd.own.mk so that ../../Makefile.inc does not do it... 2020-10-10 14:23:05 +00:00
christos b65092432b Wait for the asynchronous dns resolver child to be done (and close the
socket descriptors) before returning. Otherwise we might get bind errors.
Reported by kim@, fixed by mlelstv@.
2020-10-10 13:41:14 +00:00
rin dbe4bf45a3 PR port-alpha/54307
GCC 9.3 seems to be able to compile rtree.c with -O2:

- No new regressions in ATF.
- System survives over a night, at least, under heavy loads.

On the other hand, unfortunately, GCC 9.3 still miscompiles tcache.c
with -O2 or -O1. For example, even ``gcc -g hello.c'' fails with ICE
if tcache.c is compiled with -O[12] in libc.
2020-10-07 07:35:28 +00:00
roy be38669a3c Sync with dhcpcd-9.3.0 2020-10-05 16:02:15 +00:00
roy 32fe301ab8 Update to dhcpcd-9.3.0 with the following changes:
* dhcpcd: Backticks have been removed from quoting filenames
 * dhcpcd: Only manipulate stdin, stdout and stderr if they are valid
 * duid: Adjust option so the type can be specified
 * logerr: Don't leak logfile fd to scripts
 * privsep: Run the launcher process in the sandbox
 * BSD: Use `ifi_link_state` as the single source of truth about carrier
 * BSD: Ignore vether(4) devices by default
2020-10-05 16:01:13 +00:00
christos ca734aa17e Add one more place to notify blocklistd 2020-09-25 12:52:59 +00:00
jmcneill 0d54a9589a Add HAVE_ACPI and HAVE_UEFI flags to bsd.own.mk and use them to
conditionally include ACPI and UEFI bits instead of relying on adhoc
MACHINE_ARCH tests.
2020-09-12 15:25:41 +00:00
jmcneill f2c0a93275 Build acpi tools and iasl on aarch64eb, and fix set lists for MKDEBUG. 2020-09-11 14:06:00 +00:00
kre c2105d446d Replace a pipe into tr to normalise a var name (convert '.' or '-'
into '_' to meet sh variable name rules) into a shell string processing
loop.

On my test system, this reduces the total elapsed time for the bin/sh ATF
tests from about 109 secs to about 102 (user cpu from 24.5 to 21, sys cpu
from 34 to 30) and the usr.bin/make tests elapsed time from 42.5 to 40
secs (user from a bit over 15 to a bit over 13, and sys from 16+ to 13+).
(Recorded on an AMD64 domU).

These probably exaggerate the effect, as there are a bunch of quite small
tests, which means the ATF overhead (which this change affects) is a greater
proportion of the total test time than for some other tests where most of
the time is spent actually testing.

But I am fairly confident that there will be at least some improvement.

This could be further improved by removing the cmdsub invocation method,
and instead passing the name of a variable containing the string to
normalise (with the result returned in that same var) - but that would
mean altering all the callers as well.   Some other time maybe.
2020-09-10 22:51:10 +00:00
christos 29ff04b87c Simplify to avoid packed struct alignment issue. 2020-09-07 19:37:21 +00:00
mrg 3c4e3b4cdb avoid calling printf %s with NULL. fix idea from christos. 2020-09-07 00:48:45 +00:00
christos 1124ae8b50 Avoid strict aliasing issue by using a separate buffer.. 2020-09-07 00:36:53 +00:00
christos 7c502affd2 fix null argument 2020-09-06 17:06:20 +00:00
christos 5ca7119f94 Appease gcc-9 2020-09-06 16:30:41 +00:00
roy 3ace96f44a dhcpcd: Use ppoll(2) 2020-09-06 14:57:18 +00:00
roy 529fe136c2 Sync 2020-09-06 14:55:34 +00:00
roy b4100df48f Update to dhcpcd-9.2.0 with the following changes:
* route: ensure IPv4LL routes come last in priority
 * DHCP: fix many issues with extending the last lease
 * privsep: don't read control group from config in privsep
 * privsep: only the master process responds to signals
 * privsep: use a socketpair for stderr/stdin rather than dupping /dev/null
 * privsep: right limit stdin/stderr/stdout
 * privsep: dumping a lease is now run in a sandbox
 * options: check if kernel supports INET or INET6 before enabling default
 * options: let clientid override a prior duid
 * options: allow -1 to represent infinity for requested lease time
 * dhcpcd: fix a crash initing a new interface after route overflow
2020-09-06 14:54:28 +00:00
mrg d429eca4f6 use struct zero initialiser and avoid calling memset() on a pointer
of the wrong size.
2020-09-06 08:15:04 +00:00
mrg cb93b81028 add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
mrg 257335559d avoid always passing NULL to printf()-like functions 2020-09-05 13:35:24 +00:00
kardel d566b44310 remove unneeded newline in quotes variable string - keeps ntpq happy 2020-09-03 07:26:41 +00:00
christos 4802d37db0 PR/55599: Valery Ushakov: libpcap gets SIGBUS on strictly aligned CPUs
Define LBL_ALIGN as suggested
2020-08-29 15:05:33 +00:00
christos 07a7035a92 PR/55612: Martin Husemann: libarchive tests pollute /tmp w/o cleanup
Make tests obey $TMPDIR.
2020-08-28 18:44:54 +00:00
riastradh 25f11de3b9 mmap MAP_FAILED audit. 2020-08-20 15:54:11 +00:00
christos d736d495d9 PR/55568: Andreas Gustafsson: Set the error when failing to create a temp file. 2020-08-14 14:42:44 +00:00
christos 956cbeb4ba merge conflicts 2020-08-11 13:15:33 +00:00
christos 255afcfe79 OpenLDAP 2.4.50 Release (2020/04/28)
Fixed client benign typos (ITS#8890)
    Fixed libldap type cast (ITS#9175)
    Fixed libldap retry loop in ldap_int_tls_connect (ITS#8650)
    Fixed libldap_r race on Windows mutex initialization (ITS#9181)
    Fixed liblunicode memory leak (ITS#9198)
    Fixed slapd benign typos (ITS#8890)
    Fixed slapd to limit depth of nested filters (ITS#9202)
    Fixed slapd-mdb memory leak in dnSuperiorMatch (ITS#9214)
    Fixed slapo-pcache database initialization (ITS#9182)
    Fixed slapo-ppolicy callback (ITS#9171)
    Build
	Fix olcDatabaseDummy initialization for windows (ITS#7074)
	Fix detection for ws2tcpip.h for windows (ITS#8383)
	Fix back-mdb types for windows (ITS#7878)
    Contrib
	Update ldapc++ config.guess and config.sub to support newer
	    architectures (ITS#7855)
	Added pw-argon2 module (ITS#9233, ITS#8575, ITS#9203, ITS#9206)
    Documentation
	slapd-ldap(5) - Clarify idassert-authzfrom behavior (ITS#9003)
	slapd-meta(5) - Remove client-pr option (ITS#8683)
	slapdinex(8) - Fix truncate option information for back-mdb (ITS#9230)

OpenLDAP 2.4.49 Release (2020/01/30)
    Added slapd-monitor database entry count for slapd-mdb (ITS#9154)
    Fixed client tools to not add controls on cancel/abandon (ITS#9145)
    Fixed client tools SyncInfo message to be LDIF compliant (ITS#8116)
    Fixed libldap to correctly free sb (ITS#9081, ITS#8755)
    Fixed libldap descriptor leak if ldaps fails (ITS#9147)
    Fixed libldap remove unnecessary global mutex for GnuTLS (ITS#9069)
    Fixed slapd syntax evaluation of preferredDeliveryMethod (ITS#9067)
    Fixed slapd to relax domainScope control check (ITS#9100)
    Fixed slapd to have cleaner error handling during connection setup
	 (ITS#9112)
    Fixed slapd data check when processing cancel exop (ITS#9124)
    Fixed slapd attribute description processing (ITS#9128)
    Fixed slapd-ldap to set oldctrls correctly (ITS#9076)
    Fixed slapd-mdb to honor unchecked limit with alias deref (ITS#7657)
    Fixed slapd-mdb missing final commit with slapindex (ITS#9095)
    Fixed slapd-mdb drop attr mappings added in an aborted txn (ITS#9091)
    Fixed slapd-mdb nosync FLAG configuration handling (ITS#9150)
    Fixed slapd-monitor global operation counter reporting (ITS#9119)
    Fixed slapo-ppolicy when used with slapauth (ITS#8629)
    Fixed slapo-ppolicy to add a missed normalised copy of pwdChangedTime
	(ITS#9126)
    Fixed slapo-syncprov fix sessionlog init (ITS#9146)
    Fixed slapo-unique loop termination (ITS#9077)
    Build Environment
	Fix mkdep to honor TMPDIR if set (ITS#9062)
	Remove ICU library detection (ITS#9144)
	Update config.guess and config.sub to support newer architectures
	    (ITS#7855)
	Disable ITS8521 regression test as it is no longer valid (ITS#9015)
    Documentation
	admin24 - Fix inconsistent whitespace in replication section (ITS#9153)
	slapd-config(5)/slapd.conf(5) - Fix missing bold tag for keyword
	    (ITS#9063)
	slapd-ldap(5) - Document "tls none" option (ITS#9071)
	slapo-ppolicy(5) - Correctly document pwdGraceAuthnLimit (ITS#9065)
2020-08-11 13:12:00 +00:00
uwe 8cced7413f Improve PostScript output.
Some highlights in no particular order:

%destructor was somehow lost from the list that follows, it should be
part of it.

Use .Ic for yacc directives when they are defined, .Ql otherwise.

Use explicit .Sq Li (instead of .Ql) in description of %destructor to
make sure the result is consistently quoted.  It more readable that
way.

Use .Va and .Vt where appropriate.

C preprocessor directives are marked up with .No (a nop), so that it's
easy to switch them to something else if need be.  For now just use
them as plain words.
2020-07-27 00:34:56 +00:00
uwe 43f137820b Fix markup errors. 2020-07-26 23:18:06 +00:00
roy 42b9e89899 openresolv: Rework the build system to cope with more directories
While here, install avahi-daemon and mdnsd notifiers for when
/etc/resolv.conf is updated.
2020-07-22 19:00:19 +00:00
roy acad719ff0 Sync 2020-07-22 13:19:17 +00:00
roy def83e6a06 Update to openresolv-3.11.0 with the following changes:
*  notify avahi-daemon of resolv.conf being changed
  *  notify mdnsd of resolv.conf being changed
2020-07-22 13:18:01 +00:00
roy 95ed12b952 wpa_supplicant: Matching unspecified interfaces should not log driver fails
If there is no matching interface given, but interface matching is enabled
then all interfaces on the system will try to be initialized.

Non wireless interfaces will fail and the loopback device will be one
of these, so just log a diagnostic rather than an error.
2020-07-21 13:18:58 +00:00
roy c22eef219f wpa_supplicant: Don't report an error when there are no op classes to add
Instead, log a diagnostic so that noise to the user is reduced.
2020-07-21 12:19:52 +00:00
roy dad129c1ca wpa_supplicant: don't log SIOCG80211 errors during interface setup
Unless debugging.
wpa_supplicant will log it failed to initialized the driver for the
interface anyway so this just silences some noise for users.
2020-07-21 10:34:16 +00:00
kamil cfa66197c1 Enable support for ppoll() 2020-07-17 15:44:04 +00:00
rin 926200353e PR bin/55468
Fix crash due to out-of-bounds access with Ctrl-W.

PR is only for nottywerase, but also fix ttywerase case, taken from
OpenBSD via nvi2:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/vi/vi/v_txt.c#rev1.23
5d5365d358

Also, comment there is no worry for altwerase specific code, which
seems suspicious at a glance.

Reported by Azuma OKAMOTO.
Thanks for detailed explanation how to reproduce the problem!
2020-07-07 10:58:43 +00:00
pgoyette 1aba634484 Consistent use of comma in lists. 2020-07-03 19:22:38 +00:00
roy 61fe7a6beb Sync 2020-07-03 10:46:45 +00:00
roy 1d3a3c99fc Update to dhcpcd-9.1.4 with the following changes:
* Fix SMALL builds
 * Ensure DBDIR exists at startup
2020-07-03 10:45:43 +00:00
roy 95af55eb59 dhcpcd: Fix SMALL build 2020-07-02 17:15:00 +00:00
lukem 46b85cbbd3 kyua-cli: convert auto_ptr to unique_ptr
Update kyua-cli to C++11 and use unique_ptr instead of auto_ptr,
(with std::move() where appropriate), to avoid deprecated warning by g++ 8.

(I didn't change some of the code that could arguably be refactored
to use unique_ptr or shared_ptr instead of raw pointers
and therefore remove the special case destructor handling).
2020-07-02 14:04:00 +00:00
roy 2fc7a081d2 Sync 2020-07-02 13:59:19 +00:00
roy a43a146444 Update to dhcpcd-9.1.3 with the following changes:
* inet6: Add support for reporting Mobile IPv6 RA's
 * inet6: Report RA Proxy flag if set
 * BSD: Allow non NetBSD and OpenBSD to set IN6_IFF_AUTOCONF
 * privsep: Don't handle any signals meant for the main process
 * eloop: Try and survive a signal storm
 * dhcpcd: Add an option to poll the interface carrier state
 * script: Make visible some link level parameters to lease dumping
 * inet6: Don't regen temp addresses we didn't add
 * privsep: Don't limit file writes if logging to a file
 * DHCP6: Fix lease timings with nodelay option
2020-07-02 13:57:40 +00:00
lukem e60d5634a2 lutok: auto_ptr replaced; remove build workaround 2020-07-02 13:56:10 +00:00
lukem 8665e60721 lutok: use unique_ptr not auto_ptr 2020-07-02 13:54:19 +00:00
lukem a0572f97f3 kyua-cli: fix build of .cpp files
Fix assignment of SRCS for C++ sources that use .cpp instead of .cc.
2020-06-29 08:54:58 +00:00
lukem 9afb92341a kyua-cli: avoid warning about deprecated auto_ptr 2020-06-21 14:26:16 +00:00
lukem ac33d8c71a lutok; fix build of c++ tests 2020-06-21 14:12:50 +00:00
lukem 456534299b lutok; fix strncpy -Wstringop-truncation warning 2020-06-21 14:11:54 +00:00
lukem 894e537a2e fix build of atf .cpp files 2020-06-21 13:59:56 +00:00
christos 356495e423 s/Black/Block 2020-06-15 21:27:57 +00:00
roy b49ede492e dhcpcd: Build privsep resource limited sandbox. 2020-06-15 17:02:58 +00:00
roy a47a5665d4 Sync 2020-06-15 16:59:05 +00:00
roy e66fc20f54 Update to dhcpcd-9.1.2 with the following changes:
* NetBSD: free ARP state once IPv4LL address announced
* NetBSD: Mark RA dervied addresses as AUTOCONF
* BSD: Only mark static routes from dhcpcd.conf as static
* DHCP6: Ensure requested addresses are requested
* DHCP6: Fix prefix length calculation when no prefix specified
* privsep: Implement a resource limited sandbox
2020-06-15 16:58:01 +00:00
christos a51582d48a missed the capitalized ones. 2020-06-15 02:29:44 +00:00
christos 2f0bfbf344 Rename blacklist -> blocklist 2020-06-15 01:57:29 +00:00
christos df83713dd8 Import blocklist from https://github.com/zoulasc/blocklist.
This is the same code as blacklist from the HEAD of the NetBSD tree.
2020-06-15 01:52:52 +00:00
christos 29faeba762 merge conflicts 2020-06-15 00:37:24 +00:00
christos 03c288bb80 Import 5.39:
* Remove unused subtype_mime (Steve Grubb)
   * Remove unused check in okstat (Steve Grubb)
   * Fix mime-type in elf binaries by making sure $x is set
   * Fix indirect negative offsets broken by OFFNEGATIVE
   * Fix GUID equality check
   * PR/165: Handle empty array and strings in JSON
   * PR/162: Add --exclude-quiet
   * Fix memory leak in ascmagic (Steve Grubb)
   * Fix string comparison length with ignore whitespace
   * Fix mingwin 64 compilation
   * PR/159: whitelist getpid needed for file_pipe2file()
   * Indicate negative offsets with a flag OFFNEGATIVE
     so that -0 works.
   * Introduce "offset" magic type that can be used to
     detect the file size, and bail on short files.
   * document DER better in the magic man page.
   * fix memory leaks (SonarQube)
   * rewrite confusing loops (SonarQube)
   * fix bogus test (SonarQube)
   * pass a sized buffer to file_fmttime() (SonarQube)
   * Don't allow * in printf formats, or the code itself (Christoph Biedl)
   * Introduce a printf output size checker to avoid DoS attacks
   * Avoid memory leak on error (oss-fuzz)
   * Check length of string on DER before derefercing and add new types
   * Add missing DER string (oss-fuzz)
   * Add missing DER types, and debugging
   * PR/140: Avoid abort with hand-crafted magic file (gockelhahn)
   * PR/139:  Avoid DoS in printf with hand-crafted magic file (gockelhahn)
   * PR/138: Avoid crash with hand-crafted magic file (gockelhahn)
   * PR/136: Fix static build by adding a libmagic.pc (Fabrice Fontaine)
   * add guid support native support via the "guid" type.
2020-06-15 00:18:47 +00:00
roy 378e0318d0 dhcpcd: Disable priviledge separation and sandboxing for SMALLPROG builds
It's a fair chunk of code and is probably safe enough for our ramdisks.
2020-06-11 16:05:54 +00:00
fox 9674cee3b8 external/bsd/atf: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@
2020-06-07 23:09:34 +00:00
roy 50e9876ff7 dhcpcd: kqueue(2) support removed in favour of pollts(2) 2020-06-04 13:09:45 +00:00
roy b652e16f07 Sync 2020-06-04 13:08:13 +00:00
roy d37f9bca9d Update to dhcpcd-9.1.1 with the following changes:
* Restore dumping leases from stdin
 * auth: Only accept RECONFIGURE messages from LL addresses
 * auth: Access the RDM monotonic counter file via privsep
 * ARP: call arp_announced() when cancelling it
 * BSD: fwip(4) interfaces are now ignored by default
 * privsep: Ensure IPC buffers are large enough to carry messages
 * privsep: Only open RAW sockets for the needed protocols
 * privsep: Fix indirect ioctls returning data
 * privsep: wait for processes on SIGCHLD rather than when sent a STOP cmd
 * eloop: just use ppoll/pollts(2), falling back to pselect(2)
2020-06-04 13:07:12 +00:00
joerg 558a0c7357 If _malloc_thread_cleanup is implement, call it from libpthread.
Provide the hook from modern jemalloc to avoid using TSD for the thread
destruction cleanup as it can result in reentrancy crashes if fork is
called from a thread that never called malloc as it will result in a
late malloc from the pre-fork synchronisation handler.
2020-06-04 00:45:32 +00:00
kamil 58e6f34180 Avoid redefining _REENTRANT under sanitizers
Switch away from -Wno-macro-redefined which was Clang/LLVM specific.
2020-06-01 00:55:24 +00:00
roy d31eb9bba7 Sync 2020-05-31 12:52:11 +00:00
roy 7c187152f8 Update to dhcpcd-9.1.0 with the following changes:
* Leases are stored outside the chroot again
 * The chroot directory can now be (and should be) empty [1]
 * ARP is now per address rather than per interface
 * Filter allowed ioctls in the privileged actioneer
 * Filter allowed UDP ports used by sendto(2) in the privileged actioneer
 * Filter allowed file paths in the privileged actioneer
 * route socket is now drained on overflow as it cannot be
   re-opened by the unpriviledged user

 * hostname can no longer be clobbered by SLAAC
 * grep is no longer used by the test hook
 * Interface hardware address type changes are now picked up
 * Fixed some RA timing issues
 * Fixed nd_* option parsing in dhcpcd.conf
 * Allow SIGPIPE in scripts
 * Default dhcpcd.conf no longer sends the current hostname
 * Default dhcpcd.conf no longer sends a vendorclassid
2020-05-31 12:50:46 +00:00
joerg a3a68b7379 Don't define psl as common symbol, move it into the only file using it. 2020-05-30 23:52:09 +00:00
christos f0574a0e8b make it compile again 2020-05-29 20:56:27 +00:00
christos 5b7d12e411 Add more printf annotations 2020-05-29 20:54:16 +00:00
christos fc16d48c3b put back the warn flags 2020-05-29 20:16:07 +00:00
christos 22eebdc3bb fix printf format warning with format_arg 2020-05-29 20:15:37 +00:00
christos 1c87ec2c04 Add explicit casts 2020-05-29 20:15:14 +00:00
christos b44539c331 fix WORDS_BIGENDIAN 2020-05-29 11:01:53 +00:00
kamil f1fd2e6f4c Fix the ntpd build with Clang/LLVM
Set -Wno-format-nonliteral for ntp_refclock.c
2020-05-29 10:53:02 +00:00
christos 1091d03bdb Fix incorrect merge. 2020-05-29 10:50:36 +00:00
kamil acf22f181d Fix the libntp build with Clang/LLVM
Set -Wno-error=implicit-int-float-conversion
2020-05-29 10:47:37 +00:00
christos 7ee11f2f79 Adjustments to our patches requested by upstream 2020-05-27 23:52:19 +00:00
christos e461285fd0 Add FALLTHROUGH 2020-05-25 20:54:07 +00:00
christos cdfa2a7ef9 Merge conflicts 2020-05-25 20:47:18 +00:00
christos 067f568023 (4.2.8p14) 2020/03/03 Released by Harlan Stenn <stenn@ntp.org>
* [Sec 3610] process_control() should bail earlier on short packets. stenn@
  - Reported by Philippe Antoine
* [Sec 3596] Highly predictable timestamp attack. <stenn@ntp.org>
  - Reported by Miroslav Lichvar
* [Sec 3592] DoS attack on client ntpd <perlinger@ntp.org>
  - Reported by Miroslav Lichvar
* [Bug 3637] Emit the version of ntpd in saveconfig.  stenn@
* [Bug 3636] NMEA: combine time/date from multiple sentences <perlinger@ntp.org>
* [Bug 3635] Make leapsecond file hash check optional <perlinger@ntp.org>
* [Bug 3634] Typo in discipline.html, reported by Jason Harrison.  stenn@
* [Bug 3628] raw DCF decoding - improve robustness with Zeller's congruence
  - implement Zeller's congruence in libparse and libntp <perlinger@ntp.org>
* [Bug 3627] SIGSEGV on FreeBSD-12 with stack limit and stack gap <perlinger@ntp.org>
  - integrated patch by Cy Schubert
* [Bug 3620] memory leak in ntpq sysinfo <perlinger@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3619] Honour drefid setting in cooked mode and sysinfo <perlinger@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3617] Add support for ACE III and Copernicus II receivers <perlinger@ntp.org>
  - integrated patch by Richard Steedman
* [Bug 3615] accelerate refclock startup <perlinger@ntp.org>
* [Bug 3613] Propagate noselect to mobilized pool servers <stenn@ntp.org>
  - Reported by Martin Burnicki
* [Bug 3612] Use-of-uninitialized-value in receive function <perlinger@ntp.org>
  - Reported by Philippe Antoine
* [Bug 3611] NMEA time interpreted incorrectly <perlinger@ntp.org>
  - officially document new "trust date" mode bit for NMEA driver
  - restore the (previously undocumented) "trust date" feature lost with [bug 3577]
* [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter <perlinger@ntp.org>
  - mostly based on a patch by Michael Haardt, implementing 'fudge minjitter'
* [Bug 3608] libparse fails to compile on S11.4SRU13 and later <perlinger@ntp.org>
  - removed ffs() and fls() prototypes as per Brian Utterback
* [Bug 3604] Wrong param byte order passing into record_raw_stats() in
	ntp_io.c <perlinger@ntp.org>
  - fixed byte and paramter order as suggested by wei6410@sina.com
* [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no <perlinger@ntp.org>
* [Bug 3599] Build fails on linux-m68k due to alignment issues <perlinger@ntp.org>
  - added padding as suggested by John Paul Adrian Glaubitz
* [Bug 3594] ntpd discards messages coming through nmead <perlinger@ntp.org>
* [Bug 3593] ntpd discards silently nmea messages after the 5th string <perlinger@ntp.org>
* [Bug 3590] Update refclock_oncore.c to the new GPS date API <perlinger@ntp.org>
* [Bug 3585] Unity tests mix buffered and unbuffered output <perlinger@ntp.org>
  - stdout+stderr are set to line buffered during test setup now
* [Bug 3583] synchronization error <perlinger@ntp.org>
  - set clock to base date if system time is before that limit
* [Bug 3582] gpsdjson refclock fudgetime1 adjustment is doubled <perlinger@ntp.org>
* [Bug 3580] Possible bug ntpq-subs (NULL dereference in dogetassoc) <perlinger@ntp.org>
  - Reported by Paulo Neves
* [Bug 3577] Update refclock_zyfer.c to the new GPS date API <perlinger@ntp.org>
  - also updates for refclock_nmea.c and refclock_jupiter.c
* [Bug 3576] New GPS date function API <perlinger@ntp.org>
* [Bug 3573] nptdate: missleading error message <perlinger@ntp.org>
* [Bug 3570] NMEA driver docs: talker ID not mentioned, typo <perlinger@ntp.org>
* [Bug 3569] cleanup MOD_NANO/STA_NANO handling for 'ntpadjtimex()' <perlinger@ntp.org>
  - sidekick: service port resolution in 'ntpdate'
* [Bug 3550] Reproducible build: Respect SOURCE_DATE_EPOCH <perlinger@ntp.org>
  - applied patch by Douglas Royds
* [Bug 3542] ntpdc monlist parameters cannot be set <perlinger@ntp.org>
* [Bug 3533] ntpdc peer_info ipv6 issues <perlinger@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3531] make check: test-decodenetnum fails <perlinger@ntp.org>
  - try to harden 'decodenetnum()' against 'getaddrinfo()' errors
  - fix wrong cond-compile tests in unit tests
* [Bug 3517] Reducing build noise <perlinger@ntp.org>
* [Bug 3516] Require tooling from this decade <perlinger@ntp.org>
  - patch by Philipp Prindeville
* [Bug 3515] Refactor ntpdmain() dispatcher loop and group common code <perlinger@ntp.org>
  - patch by Philipp Prindeville
* [Bug 3511] Get rid of AC_LANG_SOURCE() warnings <perlinger@ntp.org>
  - patch by Philipp Prindeville
* [Bug 3510] Flatten out the #ifdef nesting in ntpdmain() <perlinger@ntp.org>
  - partial application of patch by Philipp Prindeville
* [Bug 3491] Signed values of LFP datatypes should always display a sign
  - applied patch by Gerry Garvey & fixed unit tests <perlinger@ntp.org>
* [Bug 3490] Patch to support Trimble Resolution Receivers <perlinger@ntp.org>
  - applied (modified) patch by Richard Steedman
* [Bug 3473] RefID of refclocks should always be text format <perlinger@ntp.org>
  - applied patch by Gerry Garvey (with minor formatting changes)
* [Bug 3132] Building 4.2.8p8 with disabled local libopts fails <perlinger@ntp.org>
  - applied patch by Miroslav Lichvar
* [Bug 3094] ntpd trying to listen for broadcasts on a completely ipv6 network
  <perlinger@ntp.org>
* [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user
             is specified with -u <perlinger@ntp.org>
  - monitor daemon child startup & propagate exit codes
* [Bug 1433] runtime check whether the kernel really supports capabilities
  - (modified) patch by Kurt Roeckx <perlinger@ntp.org>
* Clean up sntp/networking.c:sendpkt() error message.  <stenn@ntp.org>
* Provide more detail on unrecognized config file parser tokens. <stenn@ntp.org>
* Startup log improvements. <stenn@ntp.org>
* Update the copyright year.
* html/confopt.html: cleanup. <stenn@ntp.org>

---
(4.2.8p13) 2019/03/07 Released by Harlan Stenn <stenn@ntp.org>

* [Sec 3565] Crafted null dereference attack in authenticated
	     mode 6 packet <perlinger@ntp.org>
  - reported by Magnus Stubman
* [Bug 3560] Fix build when HAVE_DROPROOT is not defined <perlinger@ntp.org>
  - applied patch by Ian Lepore
* [Bug 3558] Crash and integer size bug <perlinger@ntp.org>
  - isolate and fix linux/windows specific code issue
* [Bug 3556] ntp_loopfilter.c snprintf compilation warnings <perlinger@ntp.org>
  - provide better function for incremental string formatting
* [Bug 3555] Tidy up print alignment of debug output from ntpdate <perlinger@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3554] config revoke stores incorrect value <perlinger@ntp.org>
  - original finding by Gerry Garvey, additional cleanup needed
* [Bug 3549] Spurious initgroups() error message <perlinger@ntp.org>
  - patch by Christous Zoulas
* [Bug 3548] Signature not verified on windows system <perlinger@ntp.org>
  - finding by Chen Jiabin, plus another one by me
* [Bug 3541] patch to fix STA_NANO struct timex units <perlinger@ntp.org>
  - applied patch by Maciej Szmigiero
* [Bug 3540] Cannot set minsane to 0 anymore <perlinger@ntp.org>
  - applied patch by Andre Charbonneau
* [Bug 3539] work_fork build fails when droproot is not supported <perlinger@ntp.org>
  - applied patch by Baruch Siach
* [Bug 3538] Build fails for no-MMU targets <perlinger@ntp.org>
  - applied patch by Baruch Siach
* [Bug 3535] libparse won't handle GPS week rollover <perlinger@ntp.org>
  - refactored handling of GPS era based on 'tos basedate' for
    parse (TSIP) and JUPITER clocks
* [Bug 3529] Build failures on Mac OS X 10.13 (High Sierra) <perlinger@ntp.org>
  - patch by Daniel J. Luke; this does not fix a potential linker
    regression issue on MacOS.
* [Bug 3527 - Backward Incompatible] mode7 clockinfo fudgeval2 packet
  anomaly <perlinger@ntp.org>, reported by GGarvey.
  - --enable-bug3527-fix support by HStenn
* [Bug 3526] Incorrect poll interval in packet <perlinger@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3471] Check for openssl/[ch]mac.h.  <perlinger@ntp.org>
  - added missing check, reported by Reinhard Max <perlinger@ntp.org>
* [Bug 1674] runtime crashes and sync problems affecting both x86 and x86_64
  - this is a variant of [bug 3558] and should be fixed with it
* Implement --disable-signalled-io
2020-05-25 20:39:54 +00:00
jmcneill 3553aa7d2d Avoid duplicate "code_lines" symbols, which fails to link when building
tools with gcc 10.1.1 / ld 2.34-2.fc32.
2020-05-22 22:59:14 +00:00
wiz 22ce26035d Use fixed date in man page. For MKREPRO build. 2020-05-19 20:00:03 +00:00
christos 659959f90a Typo fixes from FreeBSD via Ed Maste 2020-05-19 00:56:25 +00:00
christos 9aa2a9c323 Add ACL support for FFS. From FreeBSD. 2020-05-16 18:31:45 +00:00
joerg 8409cf4a20 Hook up proper fork lock handling for malloc:
- lock all relevant mutexes just before fork
- unlock all mutexes just after fork in the parent
- full reinit non-spinlocks in the child
This is not using the normal pthread_atfork interface to ensure order of
operation, malloc is used as implementation detail too often.
2020-05-15 14:37:21 +00:00
joerg 6389ebde8b When using default mutex types, don't setup attributes for init. 2020-05-15 14:34:41 +00:00
christos baffecd911 Add SIGPIPE to the list of dhcpcd affected signals since we sigignore it. 2020-05-10 17:58:16 +00:00
snj cc9246a967 The name of the action used with blacklistd's control script is rem,
not remove.  From Jose Luis Duran in PR bin/55195.
2020-05-06 14:59:51 +00:00
fox 3c582c5bdb external/bsd/dhcpcd: Suppress -Werror=sign-conversion error.
Add -Wno-error=sign-conversion to prevent build failure, when run with MKLIBCSANITIZER=yes.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-05-02 19:35:03 +00:00
riastradh 0f6461fb7e Reverse sense of NO_STATIC_MODULES -> OPENPAM_STATIC_MODULES.
This avoids leaking NO_STATIC_MODULES into the public header, which
has led to considerable confusion and workarounds in pkgrsc.

PR security/39313
PR security/55216

ok christos
2020-04-29 02:16:56 +00:00
joerg db8d9d67e0 Fix misindentations in the flex skeleton triggered by dtrace's dt_lex.l.
Upstream committed as a631f5da8d4fd60fbde7b06bcf43bc9a155c27d5
2020-04-25 18:56:26 +00:00
christos 8dd45d8c41 Add the system binary paths too since tests use them. 2020-04-23 16:05:15 +00:00
christos 871b5d9bde Add missing break's 2020-04-22 15:55:55 +00:00
christos 9c3fa50b46 make variable constant since it is assigned from a string literal 2020-04-22 15:55:41 +00:00
joerg 7f1e8ea859 Drop obsolete special case for clang/ppc. 2020-04-21 22:27:09 +00:00
christos a8dbdb5e18 PR/55193: Jose Luis Duran: Fix wrong location for the db file. 2020-04-21 13:57:12 +00:00
roy 5e47f81657 Sync 2020-04-21 09:55:33 +00:00
roy 4f06a81613 Update to dhcpcd-9.0.2 with the following changes:
* Control sockets are not opened in test mode
 * privsep: no longer aborts if protocol not available
 * inet6: Don't regen temporary addresses without a state
 * inet6: Reduce RA log spam
 * dhcp6: Don't log when things consitently fail
 * inet6: Add temporary directive to slaac option [1]
 * Ensure current interface flags persist when setting a flag
 * DHCP via BPF is now aligned correctly
 * CMSG buffers are now aligned correctly
 * hostnames are no longer clobbered when being forced and a RA is recieved

[1] dhcpcd no longer looks at any possible kernel settings when deciding to
manage IPv6 temporary addresses or not. You now instruct dhcpcd to do this
in dhcpcd.conf. Playing whack-a-mole with various kernel knobs wasn't fun
and some OS's have or are removing RA and thus temporary address managemnt
from the kernel so said knobs are no longer there.
2020-04-21 09:54:16 +00:00
joerg 7cb13d6054 Fix indentation 2020-04-20 13:56:07 +00:00
joerg ca74eb1fe1 Don't let clang warn about comparing pointers with string literals. 2020-04-20 13:04:10 +00:00
christos cd11565244 Add -s (SINGLE_JOB) from OpenBSD. 2020-04-18 19:32:19 +00:00
pgoyette 4e06cde223 Move the range example (for 8-11) to follow the range definition, and to
preceed the random (?) discussion (and the corresponding random example)
2020-04-17 19:42:14 +00:00
christos 685ba05b53 Put back the ? syntax accidentally removed when syncing with the OpenBSD
man page.
2020-04-17 18:39:31 +00:00
roy b6ae27bc57 privsep: Redirect to /dev/null unless test or quiet and not debug
Keeps the rtsol like behaviour the same.

Fixes PR bin/55170
2020-04-15 15:55:24 +00:00
roy 09220fdb89 dhcpcd: Don't open a control socket in test mode
Fixes PR bin/55170
2020-04-15 15:54:18 +00:00
kre e9f637c8af Since dhcpcd-hools/02-dump seems to have been removed from the
repository, don't attempt to install it, and don't expect it to
be installed.    If a better fix is to return 02-dump, then this
change can be reverted (by anyone, just go ahead and do it).

dhcpcd(8) should also have mention of 02-dump removed, if removing
it was intentional.
2020-04-14 03:16:26 +00:00
roy b6fb16d89c Sync 2020-04-13 15:46:26 +00:00
roy b4e670c413 Update to dhcpcd-9.0.1 with the following changes:
* privsep: Improve error when we don't have permission to write lease
  PR bin/55135
* privsep: Fix hooks restarting other daemons
2020-04-13 15:42:20 +00:00
martin 43c6dc4bfb Remove no longer needed workaround for PR/54656. 2020-04-12 17:28:57 +00:00
christos e35433dceb Don't block signals when running hooks. Here ctx->sigset == defsigs ==
0x60006003, which blocks SIGTERM by default, so running something simple
from a hook, like /etc/rc.d/racoon restart does not work. The script
is then stuck waiting for the daemon to die, which it won't since it will
never receive the signal, and the hook never terminates.
2020-04-05 15:41:45 +00:00
christos 9dd097b5c2 Always include the sampling member so that the struct size is consistent. 2020-04-04 21:00:03 +00:00
jdolecek b28734a61b remove SMBFS and nsmb/netsmb - userland part 2020-04-04 15:39:13 +00:00
roy 8f038d6ce5 Try a better syntax for building 30-hostname 2020-04-03 15:02:11 +00:00
roy 3a7c0202f1 Fix the build by building 30-hostname 2020-04-02 14:05:28 +00:00
roy cdef9ff213 Build dhcpcd with privsep support. 2020-04-02 12:56:01 +00:00
roy 4982964f6e Sync 2020-04-02 12:41:47 +00:00
roy 9a245d3e64 Update to dhcpcd-9.0.0 with the following changes:
* Decode interface complex interface names eth0.100:2 eth0i100:2.
   This allows us to ignore some virtual interfaces by default
 * ARP: Report L2 header address on conflict for more clarity
 * DHCP: Support jumbo frames (untested)
 * DHCP6: Clean up old lease on failure to confirm/rebind, etc
 * RA: Prefer older routers
 * INET6: Obscure prefixes are now calculated correctly

 * Privilege Separation
 * default hostname is now a blank string rather than localhost
 * Leases are now dumped over the control socket - you get RA's now as well.
 * Better support for many IPv6 routers
 * RTM_MISS filtering
 * RA: Deprecate stale addresses by setting pltime 0
 * DHCP6: Deprecate stale addresses by setting pltime 0
2020-04-02 12:38:54 +00:00
christos 677813249d Allow env - atf-run to work by setting a default minimal path. 2020-03-31 01:02:18 +00:00
wiz ac9a18e047 New sentence, new line. 2020-03-30 17:32:22 +00:00
christos 44326bb04d Clarify that we always need a valid socket 2020-03-30 15:47:15 +00:00
wiz e16bf87030 Fix typos. 2020-03-30 08:45:09 +00:00
christos d6d7dd9781 Explain how configuration matching is done. 2020-03-30 03:02:41 +00:00
christos f7b51e53b0 rpcap://<host>/interface support. 2020-03-29 19:50:46 +00:00
christos 743d08fa17 make the patch compile on NetBSD 2020-03-29 19:50:23 +00:00
christos e770cc2dd9 Use http://sourceforge.net/p/libpcap/patches/_discuss/thread/fc8f43a0/ad35/\
attachment/rpcap3.patch to provide rpcap support.
2020-03-29 19:49:26 +00:00
christos c5adb460c3 need bsd.init.mk to grab Makefile.inc 2020-03-29 17:49:52 +00:00
christos 1210d4e693 Descend to sbin 2020-03-29 17:30:30 +00:00
christos 2708fb16f2 ENABLE_REMOTE and add rpcapd(8) 2020-03-29 17:12:45 +00:00
wiz 2fd1c0ac7f mdocml: Comment out non-applicable warning.
We don't use makewhatis on NetBSD, we use makemandb.
2020-03-17 22:03:41 +00:00
fox f61eb78c70 external/bsd/iscsi: Fix -Werror=maybe-uninitialized error in initiator.c.
Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Submitted by: mlelstv@
Reviewed by: kamil@
2020-03-17 00:57:54 +00:00
christos 94703ef0ad Re-enable the routing perm check now that the kernel has been fixed to return
valid information.
2020-03-13 16:38:45 +00:00
christos 7351464dcb Disable routing perms check for now. 2020-03-12 19:47:32 +00:00
christos 86a9e77961 Handle fds that are pointing to routing sockets. If the fd has access to
make changes via the routing socket, grant full permission to make filter
changes.
2020-03-12 19:35:11 +00:00
roy 4f3ce5d8c9 Revert allowing fd == -1 at the request of Christos. 2020-03-12 11:31:23 +00:00
roy 3d4211e6a1 blacklist: Don't remove a ruleset if we have already added it
The noted argument is wrong - if it's already been deleted then the id we
have for it is invalid.
Because we don't track deletions to the ruleset, working it out is
problematic at best.

Instead, if we have already added the rule treat it as a non-op.

This is a valid use case because we might receive a burst of messages
in the downstream application for the same address and process them
one by one. It's not the job of the downstream application to track
blacklistd state.
2020-03-11 02:33:18 +00:00
roy dbbcb133c0 blacklist: Allow blacklist_sa to work with an invalid fd
fd -1 is invalid, so don't query it for protocol, port or address.

fd is supposed to represent how the client is connected, but if we are
parsing route(4) messages or log files then there is no client connection
to interogate.
2020-03-11 02:12:08 +00:00
roy 420d77836f Whitespace police. 2020-03-10 13:36:07 +00:00
christos ee43138c68 remove -std=gnu++98 2020-03-09 20:34:52 +00:00
is 08f8c0c8d2 mask was too loose, creating false positives. 2020-03-08 17:54:23 +00:00
jmcneill 849e395c57 Remove trailing " from pam-u2f subdir name 2020-03-04 22:56:08 +00:00
christos c3ab1f73fd conditionalize on mkpam 2020-03-04 22:07:08 +00:00
christos 4e227ea6d1 Add a libm dependency. 2020-03-04 17:32:27 +00:00
christos 995864a394 add a libm dependency 2020-03-04 17:31:08 +00:00
christos 224869c7f9 Add build glue 2020-03-03 03:10:32 +00:00
christos 8ddd93c13f print the widest int 2020-03-03 00:45:37 +00:00
christos 04265baa16 the uid is not a pam item! 2020-03-03 00:45:21 +00:00
christos 0b9e32024c Disable debugging 2020-03-03 00:44:12 +00:00
christos 4e9fe299d1 Add libfido2 and pam-u2f 2020-03-03 00:29:41 +00:00
christos 0dd853b540 Add build glue 2020-03-03 00:28:50 +00:00
christos eaea677c03 Add cast 2020-03-03 00:27:31 +00:00
christos 4379517986 add casts, change to multiline. 2020-03-03 00:27:08 +00:00
christos 9f5cccf32d - fix order initialization: debug_file was not getting properly initialized
- fix free casts
- add pam module entry for OpenPAM
2020-03-03 00:22:29 +00:00
christos bf007de0f4 back to LOG_DEBUG 2020-03-03 00:21:20 +00:00
christos ee4f39b036 define as empty when not debugging. 2020-03-03 00:20:45 +00:00
christos 9b07d16d3c define as empty when not debugging 2020-03-03 00:20:20 +00:00
christos 46988a0ecd Import Yubico's pam-u2f from https://github.com/Yubico/pam-u2f.git 2020-03-03 00:18:44 +00:00
christos 95f430ca15 Add build glue 2020-03-03 00:14:17 +00:00
christos ba9bdd8b2f Import Yubico's libfido2 from https://github.com/Yubico/libfido2.git 2020-03-03 00:11:43 +00:00
kamil f842698d50 Fix undefined behavior in archive_read_support_format_xar()
Cherry-pick upstream patch:

From 2cfda000bc5159d46fd8ead7d1bd3ea1f66f7948 Mon Sep 17 00:00:00 2001
From: Martin Matuska <martin@matuska.org>
Date: Thu, 27 Feb 2020 01:54:19 +0100
Subject: [PATCH] XAR reader: initialize file_queue with 0 and memcpy() if
 allocated only

Fixes #1338
2020-02-27 10:35:08 +00:00
kamil c8a71bc155 Fix undefined behavior in from_hex()
Cherry-pick upstream patch:

From 4a5fc0b980a23d1a317c7a564a94cca090e111c2 Mon Sep 17 00:00:00 2001
From: Martin Matuska <martin@matuska.org>
Date: Thu, 27 Feb 2020 10:42:27 +0100
Subject: [PATCH] bsdcpio_test: from_hex() needs to be an uint32_t

Fixes #1339

4a5fc0b980
2020-02-27 10:32:35 +00:00
kamil 3dbf747214 Avoid NULL pointer arithmetic
Cherry-pick upstream patch:

From ec5b86b48e99c5501374b01606f1ccdae6a8a93e Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski <n54@gmx.com>
Date: Mon, 24 Feb 2020 22:58:00 +0100
Subject: [PATCH] archive_read.c: silence UBSan warning about undefined
 behavior

Fixes #1335

ec5b86b48e.patch
2020-02-25 09:01:25 +00:00
kamil a8e08e9489 Use UNALIGNED_OK to disable unaligned pointer arithmetic checks in UBSan
Upstream fixed it differently by refactoring the code and the problem will
go away on upgrade to 5.0.
2020-02-24 18:39:47 +00:00
kamil d8be380674 Rearrange the code to make UNALIGNED_OK available for __NetBSD__ 2020-02-24 16:19:35 +00:00
joerg ce578dfc2b Explicitly cast pointers to uintptr_t before casting to enums. They are
not necessarily the same size. Don't cast pointers to bool, check for
NULL instead.
2020-02-21 00:26:21 +00:00
uwe 95f8d17abf Fix comments to not break formatting. 2020-02-16 22:38:28 +00:00
gutteridge e5791ef575 tcpdump.1.in: fix stray line from merge botch 2020-02-16 22:20:31 +00:00
kamil 93a18a197a jemalloc: Avoid variable length array with length 0
Cherry-pick upstrem patch.

https://github.com/jemalloc/jemalloc/pull/1768
2020-02-15 09:57:30 +00:00
kamil 8f0c4063f2 Fix undefined behavior in hash.h (jemalloc)
Cherry-pick upstream patch:

    Fix Undefined Behavior in hash.h

    hash.h:200:27, left shift of 250 by 24 places cannot be represented in type 'int'

7fd22f7b2e
2020-02-14 01:52:35 +00:00
christos b331def536 pppd: Fix bounds check in EAP code
Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>

From:
8d7970b8f3
2020-02-12 01:51:52 +00:00
fox ac1eb53afb external/bsd/ipf: Fix build failure under LLVM.
-Wno-error= flag now only applies to gcc 8 and not to LLVM based builds.

Reviewed by: kamil@
2020-02-12 00:30:48 +00:00
christos cb454259c2 When extracting symlinks atomically remove them like we do for hard links. 2020-02-10 15:24:21 +00:00
fox 2873fa744e external/bsd/ipf: Suppress -Werror=maybe-uninitialized error.
Add -Wno-error=maybe-uninitialized in ipsopt.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-09 07:51:20 +00:00
fox 3782e1a9e2 external/bsd/ipf: Suppress -Werror=format-overflow= error.
Add -Wno-error=format-overflow in ipmon.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-09 07:47:50 +00:00
fox d9fb617d8f external/bsd/ntp: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to refclock_jjy.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-08 13:20:10 +00:00
fox 8d2b6606df external/bsd/dhcpcd: Fix a -Wconversion warning.
Type cast uint16_t to size_t to prevent implicit type conversion.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.
gcc version 8.3.0

Reviewed by: roy@, kamil@
2020-02-08 12:17:16 +00:00
kamil cc056601a4 Expand the -Wno-macro-redefined usage to MKLIBCSANITIZER
_REENTRANT can be redefined and this is considered as an error.
2020-02-08 00:11:18 +00:00
kamil 9d306cc429 Install LLVM sanitizers into usr/lib/clang/9.0.0 2020-02-07 19:00:10 +00:00
roy ce63da2fc1 Enable syslog support for hostapd 2020-02-03 09:10:47 +00:00
christos 2c331b9b96 Hack for clang/powerpc 2020-01-29 23:42:57 +00:00
christos b5a341d9b0 Hack for clang. 2020-01-29 22:40:44 +00:00
roy 7e3fe3ae49 wpa: reduce diff with upstream 2020-01-29 12:05:08 +00:00
roy 7f802f6689 wpa: Fix the maximum size of a route(4) msg to 2048
This mirrors other programs which parse route(4) messages and will
match upstream.
2020-01-29 11:57:36 +00:00
roy f4b2e0ff3a wpa: Remove an outdated comment
With interface matching support, wpa_supplicant can wait for an
interface to appear.
2020-01-29 11:46:47 +00:00
roy 921753c4a7 wpa: Don't set or remove IFF_UP
Now that both hostapd and wpa_supplicant react to interface flag
changes, there is no need to set or remove IFF_UP.

It should be an administrative flag only.
2020-01-29 11:45:54 +00:00
roy aa4ef28151 wpa: Share route(4) processing with hostapd and wpa_supplicant.
There is little point in having both and it brings interface
addition/removal and IFF_UP notifications to hostapd.
2020-01-29 11:44:43 +00:00
roy 289963fd75 wpa: Driver does not need to know about both wpa and hostap contexts
It will either be one or the other.
Fold hapd into ctx to match other drivers.
2020-01-29 11:31:40 +00:00
roy 9cbb0fe2f0 Sync 2020-01-27 21:13:05 +00:00
roy 41bc2f7362 Update to openresolv-3.10.0 with the following change:
Add allow_interfaces and deny_interfaces configuration knobs
2020-01-27 21:11:12 +00:00
roy 9e07ed0a1b Sync 2020-01-27 20:42:56 +00:00