summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-04-12 18:51:22 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-04-12 18:51:22 +0000
commit927dfd2d7eb8801e444a3bcff7fdf7a628a779f0 (patch)
treef2449241f8a828ffb701a0525e88a8315c53a6e2
parentc42f7cfd164509bca95ffd26c458f1b4b33d931d (diff)
- (bal) disable privsep if no MAP_ANON. We can re-enable itPRE_SW_KRBV
after the release when we can do more testing.
-rw-r--r--ChangeLog4
-rw-r--r--monitor_mm.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 327e9141..a6d20ed1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
to -h on testing for /bin being symbolic link
- (bal) Mistaken in Cygwin scripts for ssh starting. Patch by
Corinna Vinschen <vinschen@redhat.com>
+ - (bal) disable privsep if no MAP_ANON. We can re-enable it
+ after the release when we can do more testing.
20020411
- (stevesk) [auth-sia.c] cleanup
@@ -8229,4 +8231,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
-$Id: ChangeLog,v 1.2049 2002/04/12 17:44:13 mouring Exp $
+$Id: ChangeLog,v 1.2050 2002/04/12 18:51:22 mouring Exp $
diff --git a/monitor_mm.c b/monitor_mm.c
index 3231c878..993925e4 100644
--- a/monitor_mm.c
+++ b/monitor_mm.c
@@ -84,7 +84,7 @@ mm_create(struct mm_master *mmalloc, size_t size)
*/
mm->mmalloc = mmalloc;
-#ifdef HAVE_MMAP
+#if defined(HAVE_MMAP) && defined(MAP_ANON)
address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED,
-1, 0);
if (address == MAP_FAILED)