lkml.org 
[lkml]   [2003]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Changing argv[0] under Linux.
    Hi Andreas :)

> |> down, mainly because it's ugly - and I hate programs that mess with
> |> argv[0].
> argv[0] is not required to point to the actual file name of the
> executable, and in fact, most of the time it won't.
> Btw, don't use it for setuid programs, it's a huge security hole you can
> drive a truck through.

Yes, I suppose that exec'ing whatever is in argv0 is not a good
idea :((( Didn't think about it.

Any suggestion on how to get the binary name from the core image?

Thanks a lot for the warning, Andreas :)

Raúl
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.056 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site