lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 10 Dec 2009 09:16:09 +0900 (JST)
From:	KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To:	Ingo Molnar <mingo@...e.hu>
Cc:	kosaki.motohiro@...fujitsu.com, Bryan Donlan <bdonlan@...il.com>,
	Ulrich Drepper <drepper@...hat.com>,
	Timo Sirainen <tss@....fi>,
	WANG Cong <xiyou.wangcong@...il.com>,
	Oleg Nesterov <oleg@...hat.com>,
	LKML <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH v6] Added PR_SET_PROCTITLE_AREA option for prctl()

> 
> * KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com> wrote:
> 
> > > 
> > > * Bryan Donlan <bdonlan@...il.com> wrote:
> > > 
> > > > On Tue, Dec 8, 2009 at 12:38 AM, Ingo Molnar <mingo@...e.hu> wrote:
> > > > >
> > > > > * KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com> 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:
> > > > 
> > > > If another process is going to use ptrace to inject the cmdline string 
> > > > into the victim's address space, it can also temporarily hijack a 
> > > > thread to run prctl() on its behalf...
> > > 
> > > That's exactly the point i made. There's no reason not to offer the API 
> > > i suggested as long as permissions are checked (as usual) - because 
> > > ptrace already allows this (and more).
> > 
> > Confused.
> > 
> > I think ptrace don't solve the issue of explained my patch description.
> 
> it doesnt. By 'this' i meant the security aspect. ptrace can already do 
> almost arbitrary alteration to any task's state.

Ah, I misunderstood. Thanks correct me :)



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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ