Wrap pthread rwlock, mutex and conditions into simple inline functions
Introduce thread.h which contains static inline wrappers for the most
commonly used pthread operations (rwlocks, mutexs and conditions).
Every pthread call requires an extra error check and this adds a lot of
unneeded noise into the parser code.
Use similar names as used in the OpenBSD kernel for mutexes and rwlocks.
This makes the code more legible.
OK tb@ job@
rpki-client: enforce a single AS identifier in ASPA EE certs
Expose cert_has_one_as() and use it in aspa_cert_info() to enforce a
requirement added to the I-D in January.
Reported by Shreyas S
ok claudio
Stop prepending underscores to symbol names in nlist(3) input. This used to
matter back when some OpenBSD platforms were using the a.out binary format,
which adds such underscores to symbols produced from C code; but now that
all binaries are ELF, there is no need for these underscores anymore.
Note that this does not change the behaviour of nlist(3) yet - if the
symbol being looked for is not found, and starts with an underscore, a second
lookup is still performed without the leading underscore.
With tweaks from cludwig@
Do not allow TIOCSCTTY, TIOCNOTTY, or TIOCSPGRP on the pty master. Return
ENOTTY for all 3 of these. They could create incoherent session states,
leading to dangerous UAF reported by openai (unfortunately their proposed
patch was batshit crazy and made the situation worse, due to not identifying
this as root cause, and writing code to support the condition). with claudio
various versions ok kettenis kirill and others
get rid of the ifmedia bits in the ethernet tunnels.
the ifmedia ioctls werent wired up on these interfaces, so all this
was doing was wasting space in the softcs. so no functional change.
call etherbridge_up and _down in nvgre_up and _down.
etherbridge_up is needed to start aging entries in the etherbridge code.
reported by tom smyth
"looks good" jmatthew@