Skip to content

Commit

Permalink
imgact_elf: Enable sigfastblock for purecap processes
Browse files Browse the repository at this point in the history
It's not clear why this was ever disabled in the first place in
6ce214d ("Add AT_BSDFLAGS auxv entry."), and this was even
discussed in December 2020 on Slack but nothing came of it. Since there
are no conceptual problems with it and it seems to work just fine let's
enable it.
  • Loading branch information
jrtc27 authored and bsdjhb committed Jul 24, 2024
1 parent d08a6e0 commit f7b2463
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sys/kern/imgact_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,7 @@ SYSCTL_INT(ASLR_NODE_OID, OID_AUTO, shared_page, CTLFLAG_RWTUN,
__XSTRING(__CONCAT(ELF, __ELF_WORD_SIZE))
": enable shared page address randomization");

#ifdef __ELF_CHERI
static int __elfN(sigfastblock) = 0;
#else
static int __elfN(sigfastblock) = 1;
#endif
SYSCTL_INT(ELF_NODE_OID, OID_AUTO, sigfastblock,
CTLFLAG_RWTUN, &__elfN(sigfastblock), 0,
"enable sigfastblock for new processes");
Expand Down

0 comments on commit f7b2463

Please sign in to comment.