Date: Mon, 17 Oct 2011 21:30:56 +0200 From: Oliver Pinter <oliver.pntr@gmail.com> To: current@freebsd.org Subject: [RFC] Enable nxstack by default Message-ID: <CAPjTQNFCT5LBKwVQFf9FHk4aTzrJ243j2uN1nPmMeFp=cTdMUA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi all!
I think, it's the time to enable the nxstack feature. Any comments, pros, cons?
[-- Attachment #2 --]
From 2641987c35b025fa92adba402535a71aa1a4f7ce Mon Sep 17 00:00:00 2001
From: Oliver Pinter <opn@opn.(none)>
Date: Mon, 17 Oct 2011 21:14:58 +0200
Subject: [PATCH] enable nxstack by default
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPjTQNFCT5LBKwVQFf9FHk4aTzrJ243j2uN1nPmMeFp=cTdMUA>
