lkml.org 
[lkml]   [2000]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Command-line anomoly V2.3.35
"Richard B. Johnson" wrote:
>
> Many programs have counted on being able to overwrite command-line
> arguments so that other information shows in `ps`. Linux Version 2.3.35
> now prevents that from working. Is this a new <security feature> or
> is it related to the kernel command-line bug already reported?

Looks like a race condition to me... the child could be scheduled before
the parent and run before argv[0] is changed. Move the strcpy to before
the fork and that should fix it.

--

Brian Gerst

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

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