Operating System - HP-UX
1834130 Members
2219 Online
110064 Solutions
New Discussion

Re: non executable stack setting in HP-UX 11.00

 
Irfan Ahmed_1
Advisor

non executable stack setting in HP-UX 11.00

Hi all,
I have to do non exectuble stack setting in HP-UX 11.00. But the tunable system parameter - executable_stack is not present in my kernel parameter list ( kmtune -l ). I want to know how can I do this.
-Is there any patch using which I can do this..

Irfan
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: non executable stack setting in HP-UX 11.00

Hi Ifran,

This parameter has been introduced only from 11i onwards. For 11.0 you would need to use 'chatr' command to disable executable_stack using '+es' flag. Unfortunately, this has to be done to every program that you suspect.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
doug hosking
Esteemed Contributor

Re: non executable stack setting in HP-UX 11.00

Unfortunately the chatr approach will not work in 11.00. Regardless of what the output of any patched 11.00 versions of chatr may imply, the corresponding kernel logic to enforce any 'chatr +es' settings was never backported to 11.00, and at this stage of the 11.00 support life is highly unlikely to ever be. I'm sorry, but you must be running 11.11 or later to use the non-executable stack features of HP-UX.

Irfan Ahmed_1
Advisor

Re: non executable stack setting in HP-UX 11.00

Hi Hosking,

When I went through man pages for chatr the following is given,
"+es flag
Control the ability of user code to execute from stack with the flag values, enable and disable."
Please reply
Dietmar Konermann
Honored Contributor

Re: non executable stack setting in HP-UX 11.00

It's just like Doug wrote above... the 11.00 kernel lacks the executable stack feature.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Irfan Ahmed_1
Advisor

Re: non executable stack setting in HP-UX 11.00

Hi all,
Non-executable stack setting may not be possible in HP-UX 11.00