OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Bugtraq archives for 3rd quarter (Jul-Sep) 1998: Re: non-exec stacks on solaris.

Re: non-exec stacks on solaris.

Casper Dik (casperHOLLAND.SUN.COM)
Wed, 1 Jul 1998 15:17:22 +0200

>
>not long ago, someone posted that you can disable execution of
>instructions on the stack via /etc/system for solaris.  There
>appears to be three variables for this:
>
>noexec_user_stack
>noexec_user_stack_log
>noexec_zfod_argsp
>
>The first two are pretty obvious, but what about the third ?


The first two (new in 2.6) are, indeed, obvious.  (Note that they
exist in all kernels but only work on sun4m/sun4d and Ultras)

Noexec_zfod_argsp is the variable used by the mechanism internally;
it's the argument pointer used to initialize the page protection
by the stack.  It's not a variable you can set.

(i.e., the variable contains the protection bits as used on a
"noexec" zero-fill-on-demand page.

Casper