Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys not allowed to map RWX anymore.
details: https://anonhg.NetBSD.org/src/rev/71a68bf8003a
branches: trunk
changeset: 353803:71a68bf8003a
user: christos <christos%NetBSD.org@localhost>
date: Tue May 23 15:56:55 2017 +0000
description:
not allowed to map RWX anymore.
diffstat:
tests/lib/libc/sys/t_clone.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 3db5343b689e -r 71a68bf8003a tests/lib/libc/sys/t_clone.c
--- a/tests/lib/libc/sys/t_clone.c Tue May 23 15:27:54 2017 +0000
+++ b/tests/lib/libc/sys/t_clone.c Tue May 23 15:56:55 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_clone.c,v 1.3 2011/12/12 20:55:44 joerg Exp $ */
+/* $NetBSD: t_clone.c,v 1.4 2017/05/23 15:56:55 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_clone.c,v 1.3 2011/12/12 20:55:44 joerg Exp $");
+__RCSID("$NetBSD: t_clone.c,v 1.4 2017/05/23 15:56:55 christos Exp $");
#include <sys/mman.h>
#include <sys/resource.h>
@@ -99,7 +99,7 @@
volatile long frobme[2];
int stat;
- allocstack = mmap(NULL, STACKSIZE, PROT_READ|PROT_WRITE|PROT_EXEC,
+ allocstack = mmap(NULL, STACKSIZE, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANON, -1, (off_t) 0);
ATF_REQUIRE_ERRNO(errno, allocstack != MAP_FAILED);
@@ -193,7 +193,7 @@
void *allocstack, *stack;
int rv;
- allocstack = mmap(NULL, STACKSIZE, PROT_READ|PROT_WRITE|PROT_EXEC,
+ allocstack = mmap(NULL, STACKSIZE, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANON, -1, (off_t) 0);
ATF_REQUIRE_ERRNO(errno, allocstack != MAP_FAILED);
stack = allocstack;
Home |
Main Index |
Thread Index |
Old Index