Subject: Re: read {write,only} stack
To: Carl S Shapiro <>
From: Jason Thorpe <>
List: current-users
Date: 08/21/1997 05:56:29
On Wed, 20 Aug 1997 03:00:10 -0400 (EDT) 
 Carl S Shapiro <> wrote:

 > Is there any way to prevent the stack from being executable?

"On what architecture?"  On many (most), it's not possible to do this, since
"execute" permission is implied by "read".  The Alpha has a Fault On Execute
PTE bit, and I think it's possible to FOE on the SRMMU and maybe the i386
if you play with the segment foo, but it's certainly not a universal thing.

Jason R. Thorpe                             
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-6                                       Work: +1 415 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939