From 2641987c35b025fa92adba402535a71aa1a4f7ce Mon Sep 17 00:00:00 2001 From: Oliver Pinter Date: Mon, 17 Oct 2011 21:14:58 +0200 Subject: [PATCH] enable nxstack by default Signed-off-by: Oliver Pinter diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 45f6d64..507b4de 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -118,7 +118,7 @@ static int elf_legacy_coredump = 0; SYSCTL_INT(_debug, OID_AUTO, __elfN(legacy_coredump), CTLFLAG_RW, &elf_legacy_coredump, 0, ""); -static int __elfN(nxstack) = 0; +static int __elfN(nxstack) = 1; SYSCTL_INT(__CONCAT(_kern_elf, __ELF_WORD_SIZE), OID_AUTO, nxstack, CTLFLAG_RW, &__elfN(nxstack), 0, __XSTRING(__CONCAT(ELF, __ELF_WORD_SIZE)) ": enable non-executable stack");