View Single Post

   
  #3 (permalink)  
Old 02-19-2008, 02:44 PM
Menno Duursma
 
Posts: n/a
Default Re: Compiling : optimizing for CPU ?

On Thu, 12 Aug 2004 19:49:31 +0000, Menno Duursma wrote:
> On Thu, 12 Aug 2004 18:15:30 +0000, Gauthier wrote:


[ GCC flags ]

>> or other advantage ?

>
> Idunno.


Thinking about this ... : if given program is to be run on a security
boundary (suid/sgid, daemon, kernel, etc) it might make writing an
exploit, for some vulnerability in it, somewhat harder. As such
"optimizing" may (in some cases) be considerd an obscurety measure.

Assuming here: the binary doesn't have the "readable" bit set for view
(from the atackers previlege level) they'd probably have to guess an ofset.

HTH.

--
-Menno.

Reply With Quote