diff options
author | dhartmei <> | 2002-09-14 22:03:14 +0000 |
---|---|---|
committer | dhartmei <> | 2002-09-14 22:03:14 +0000 |
commit | 99933708b28d8f1a889e6109eb237499bf59eba2 (patch) | |
tree | 95adbcf0e9cc0d976e8e7b18bd1836b0faa0ecbf /src/regress/lib/libc/atexit/Makefile | |
parent | 3a3a489a756f2852d798376f20cc0d4ab609c866 (diff) | |
download | openbsd-99933708b28d8f1a889e6109eb237499bf59eba2.tar.gz openbsd-99933708b28d8f1a889e6109eb237499bf59eba2.tar.bz2 openbsd-99933708b28d8f1a889e6109eb237499bf59eba2.zip |
Move __cleanup into mprotect'ed page to prevent unintentional modifications
similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
Diffstat (limited to 'src/regress/lib/libc/atexit/Makefile')
-rw-r--r-- | src/regress/lib/libc/atexit/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regress/lib/libc/atexit/Makefile b/src/regress/lib/libc/atexit/Makefile index 89625e2a7b..55c3f3981e 100644 --- a/src/regress/lib/libc/atexit/Makefile +++ b/src/regress/lib/libc/atexit/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2002/09/02 19:59:51 avsm Exp $ | 1 | # $OpenBSD: Makefile,v 1.3 2002/09/14 22:03:14 dhartmei Exp $ |
2 | 2 | ||
3 | NOMAN= | 3 | NOMAN= |
4 | PROG=atexit_test | 4 | PROG=atexit_test |
@@ -6,7 +6,9 @@ PROG=atexit_test | |||
6 | run-regress-atexit_test: ${PROG} | 6 | run-regress-atexit_test: ${PROG} |
7 | ./${PROG} -valid 2>${.OBJDIR}/valid.out | 7 | ./${PROG} -valid 2>${.OBJDIR}/valid.out |
8 | cmp -s ${.OBJDIR}/valid.out ${.CURDIR}/valid.ok | 8 | cmp -s ${.OBJDIR}/valid.out ${.CURDIR}/valid.ok |
9 | ./${PROG} -invalid 2>${.OBJDIR}/invalid.out | 9 | ./${PROG} -invalid-atexit 2>${.OBJDIR}/invalid.out |
10 | cmp -s ${.OBJDIR}/invalid.out ${.CURDIR}/invalid.ok | ||
11 | ./${PROG} -invalid-cleanup 2>${.OBJDIR}/invalid.out | ||
10 | cmp -s ${.OBJDIR}/invalid.out ${.CURDIR}/invalid.ok | 12 | cmp -s ${.OBJDIR}/invalid.out ${.CURDIR}/invalid.ok |
11 | 13 | ||
12 | .include <bsd.regress.mk> | 14 | .include <bsd.regress.mk> |