don't strnvis() log messages that are going to be logged by sshd-auth
via its parent sshd-session process, as the parent will also run them
though strnvis().
Prevents double-escaping of non-printing characters in some log
messages. bz3896 ok dtucker@
re-apply three commits that were lost while merging the 19.1.7 update
Initial IP-based caching implementation with O(logn) lookup.
Caching implemented via red-black trees, this can be improved and
further work is on-going to bring it closer to GNU's performance that
uses a LRU-MRU 8-entries based caching algorithm.
Prompted by robert@ who run into a runtime of an executed macro of
5 minutes in libreoffice. With this the execution is reduced to 58 seconds.
C++11 tips from espie@, rsadowski@
Tested by robert@
from robert@; OK mortimer@, kettenis@.
Make the unwind cache tread-safe by declaring it thread_local. Solves
segfaults seen on exception handling.
from robert@; ok kettenis@
[29 lines not shown]
Only make nodes for extra partitions if an architecture has crossed over
to 52. That will happen to most or all architectures, but we don't
need to so yet.
I'm also considering adding a environment-variable knob to be used on
a single MAKEDEV run which wants to avoid the extra node creations,
as a way to help out some tight install media (only a few of those)
Support non-default config file paths (e.g. for multiple instances)
A differing -c argument breaks rc_pre()'s assumption about it;
the trust anchor file is equally hard coded, possibly not matching.
Use ksh(1)'s getopts to peek into daemon_flags use that if found.
Report and initial diff from obsd at mulh.net on bugs@
tweaks kn
OK sthen
add XOR and MOD operations.
linux introduced these and netbsd and freebsd have picked them up.
i'm not sure of the usefulness of these, but they're cheap to
implement.
from Guy Harris via bugs@
bootblock softraid code was assuming struct disklabel fits in a 512 byte
buffer. That is no longer true, since the on-disk is being seperated
from the in-memory.
ok krw florian hshoexer
bn_test: remove dead code
We haven't defined SIXTY_FOUR_BITS in a long time, if ever. The last
#undef SIXTY_FOUR_BITS were removed when we cleaned up opensslconf.h.
Code behind #ifdef SIXTY_FOUR_BITS is therefore dead.
only try BIOCLOCK against bpf if tcpdump is using bpf.
fixes tcpdump -r pcapfile, which is getting packets from a file,
not the kernel via bpf.
problem found by bluhm@ and regress tests
ok deraadt@
Simplify OF_chain() interface, remove commented out code, and do not bother
flushing the cache for non-text parts of the kernel.
Crank the bootloader version, just in case that last bit turns out to be a
bad idea.
ok kettenis@ deraadt@
Push netlock down to ifconf() and move copyout() out of netlock.
Link interface and address descriptors to the `if_tmplist_lock'
protected temporary lists while holding netlock and then release it. Do
copyout() while following these lists and holding only
`if_tmplist_lock'.
ok bluhm
Implement XDG_RUNTIME_DIR support through setusercontext(LOGIN_SETXDGENV)
If LOGIN_SETXDGENV is passed in the flags, ensure the presence and
usability of a runtime directory dedicated to <uid>. Set the
XDG_RUNTIME_DIR variable only if the directory is usable.
With feedback from deraadt@, matthieu@ and guenther@.
ok deraadt@ robert@