diff options
author | Roland McGrath <roland@gnu.org> | 2004-02-10 21:42:05 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-02-10 21:42:05 +0000 |
commit | 6b1ecbc6e533eb7f2395623dccb2f80d94dae764 (patch) | |
tree | 2546094869048a5e3c65c5effcdd64682a6c35f9 /exec/priv.h | |
parent | b69041235d4c3b5d5d392fb0ae2f54d44e25e841 (diff) | |
download | hurd-6b1ecbc6e533eb7f2395623dccb2f80d94dae764.tar.gz hurd-6b1ecbc6e533eb7f2395623dccb2f80d94dae764.tar.bz2 hurd-6b1ecbc6e533eb7f2395623dccb2f80d94dae764.zip |
2004-01-15 Roland McGrath <roland@frob.com>
* priv.h (struct execdata.info.elf): Add `execstack' flag.
* exec.c (check_elf_phdr): Set it according to PT_GNU_STACK's PF_X
flag bit. If no PT_GNU_STACK, default to set.
(do_exec): If flag is clear, remove execute permission from stack.
Diffstat (limited to 'exec/priv.h')
-rw-r--r-- | exec/priv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exec/priv.h b/exec/priv.h index 46cc919e..625ea477 100644 --- a/exec/priv.h +++ b/exec/priv.h @@ -1,5 +1,5 @@ /* GNU Hurd standard exec server, private declarations. - Copyright (C) 1992,93,94,95,96,99,2000,02 Free Software Foundation, Inc. + Copyright (C) 1992,93,94,95,96,99,2000,02, 04 Free Software Foundation, Inc. Written by Roland McGrath. This file is part of the GNU Hurd. @@ -151,6 +151,7 @@ struct execdata ElfW(Word) phnum; /* Number of program header table elements. */ int anywhere; /* Nonzero if image can go anywhere. */ vm_address_t loadbase; /* Actual mapping location. */ + int execstack; /* Zero if stack can be nonexecutable. */ } elf; } info; }; |