--- 25-akpm/include/linux/binfmts.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff -puN include/linux/binfmts.h~noexec-stack-comments include/linux/binfmts.h --- 25/include/linux/binfmts.h~noexec-stack-comments Tue Mar 23 16:35:50 2004 +++ 25-akpm/include/linux/binfmts.h Tue Mar 23 16:37:11 2004 @@ -62,9 +62,12 @@ extern int prepare_binprm(struct linux_b extern void remove_arg_zero(struct linux_binprm *); extern int search_binary_handler(struct linux_binprm *,struct pt_regs *); extern int flush_old_exec(struct linux_binprm * bprm); -#define EXSTACK_DEFAULT 0 -#define EXSTACK_DISABLE_X 1 -#define EXSTACK_ENABLE_X 2 + +/* Stack area protections */ +#define EXSTACK_DEFAULT 0 /* Whatever the arch defaults to */ +#define EXSTACK_DISABLE_X 1 /* Disable executable stacks */ +#define EXSTACK_ENABLE_X 2 /* Enable executable stacks */ + extern int setup_arg_pages(struct linux_binprm * bprm, int executable_stack); extern int copy_strings(int argc,char __user * __user * argv,struct linux_binprm *bprm); extern int copy_strings_kernel(int argc,char ** argv,struct linux_binprm *bprm); _