Re: [PATCH v6] Added PR_SET_PROCTITLE_AREA option for prctl()

From: Ingo Molnar
Date: Tue Dec 08 2009 - 00:39:07 EST



* KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> wrote:

> > The feature looks useful, but the choice of a prctl as an API is strange
> > - it limits us to the current task only - while the ability to set
> > arguments for another task looks a more generic (and potentially more
> > useful) solution.
>
> No. It's impossible.
> /proc/{pid}/cmdline read user process's memory. iow, this prctl() don't
> receive string, it receive virtual address itself. [...]

it's not 'impossible' at all, you yourself mention ptrace:

> [...] I don't want any task allow to change another task's memory
> except ptrace.

And i did not mean to allow 'any' task to be allowed to do this -
security checks apply, obviously.

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