dt: Deny enabling probes after recording starts
Enabling more probes after recording starts using the DTIOCRECORD ioctl
only puts these probes onto the ds_pcbs list, but not on the dtp_pcbs.
Stopping the recording afterwards crashes.
Do not allow to add more probes after recording started. For symmetry,
also do not allow to remove probes either.
ok mpi@
Reported-by: syzbot+1ee7b3d649b3fd543300 at syzkaller.appspotmail.com
Stop allowing stat("/etc/hosts") in pledge "dns".
Only libc can read /etc/hosts under pledge "dns" now, so stat() succeeding
based on the pledge is misleading.
ok deraadt
Fix on archs without OCaml native support
While here:
1. drop the chunk trying to set OCAML_NATIVE in the build environment,
likely taken from devel/ocaml-ocamlbuild but ineffective here.
2. respect MAKE_ENV
Drop COMPILER lines now that devel/libnotify caters for base-gcc
The recent COMPILER addition in those ports was only because of
a base-gcc limitation exposed by a devel/libinotify header. Now that the
affected header has been fixed, tb and kmos prefer to revert the
COMPILER additions.
psignal(3): align the type of the signal parameter with POSIX
POSIX uses an int for the signal number instead of an unsigned int. NetBSD
made this change in 2010 and FreeBSD made this change in 2016. Follow suit
with the other BSDs and match what POSIX specifies.
This should not have an impact on the ABI and therefore no bump is needed.
Flagged by Sortix os-test.
ok deraadt@, millert@
Drop COMPILER tweak added to work around a base-gcc limitation
As noted by claudio and tb, the offending enum is in a public header, so
tweaking just COMPILER in devel/libnotify won't help libnotify
consumers. kmos then tweaked consumers and made them use ports-gcc too.
This commit only comments the problematic __attribute__((__deprecated__))
in the public header, said attribute isn't very useful anyway since the
enum member containing a typo doesn't appear used in the ecosystem anyway.
ok aja@
There may be a followup commit if people feel like moving back consumers
to a default COMPILER line makes sense, mail to follow.