diff options
author | dyson <dyson@FreeBSD.org> | 1997-04-06 02:29:45 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1997-04-06 02:29:45 +0000 |
commit | 22d3427970e54f676e2b00c131968543d5e158cf (patch) | |
tree | 7f36ab36e674c55b0016224f8352f9e013e48992 /sys/vm/vm_prot.h | |
parent | 6bd5a8ae498a480fda8c82b49ba9792836b14e9f (diff) | |
download | FreeBSD-src-22d3427970e54f676e2b00c131968543d5e158cf.zip FreeBSD-src-22d3427970e54f676e2b00c131968543d5e158cf.tar.gz |
Fix the gdb executable modify problem. Thanks to the detective work
by Alan Cox <alc@cs.rice.edu>, and his description of the problem.
The bug was primarily in procfs_mem, but the mistake likely happened
due to the lack of vm system support for the operation. I added
better support for selective marking of page dirty flags so that
vm_map_pageable(wiring) will not cause this problem again.
The code in procfs_mem is now less bogus (but maybe still a little
so.)
Diffstat (limited to 'sys/vm/vm_prot.h')
-rw-r--r-- | sys/vm/vm_prot.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_prot.h b/sys/vm/vm_prot.h index f5aa65f..cdddcea 100644 --- a/sys/vm/vm_prot.h +++ b/sys/vm/vm_prot.h @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id$ + * $Id: vm_prot.h,v 1.7 1997/02/22 09:48:38 peter Exp $ */ /* @@ -80,6 +80,7 @@ #define VM_PROT_READ ((vm_prot_t) 0x01) /* read permission */ #define VM_PROT_WRITE ((vm_prot_t) 0x02) /* write permission */ #define VM_PROT_EXECUTE ((vm_prot_t) 0x04) /* execute permission */ +#define VM_PROT_OVERRIDE_WRITE ((vm_prot_t) 0x08) /* write, overriding permission for COW */ /* * The default protection for newly-created virtual memory |