Messages in this thread | | | Date | Wed, 05 Jan 2000 13:25:15 -0500 | From | Brian Gerst <> | Subject | Re: 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/
| |