sys/procctl.h
and not care about much else. I did a quick test program on 12.3:#include <stdio.h>
#include <sys/procctl.h>
#include <unistd.h>
int main() {
pid_t pid = getpid();
int data = PROC_ASLR_FORCE_ENABLE;
if ((procctl(P_PID, pid, PROC_ASLR_CTL, &data)) == -1) {
perror("procctl");
return 1;
}
return 0;
}
base.txz
or from git installation. (edit: so as SirDice pointed out, it's part of the base).