lkml.org 
[lkml]   [1999]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: access to proc filesystem from chrooted process
In <E10nUmF-0004e2-00@the-village.bc.nu> Alan Cox (alan@lxorguk.ukuu.org.uk) wrote:
>> The claim made was that a hacker who hacks into a chroot trap can
>> mount proc and use it to get out of the chroot trap, and I can't see
>> how such can be done, hence the question...

> /proc/[pid]/fd/.. is handles to files outside the chroot area.

It does not. In 2.2 at least. In 2.0 you can just use /proc/1/cwd :-)
But for 2.2... Hm... I'm not sure how to use proc to get out of the chroot
trap with 2.2 :-/

> That has limited uses as you are normally non root (if you are root the
> chroot problem is uninteresting).

> Simply provide some proc-daemons, and talk to them for ps service.

Doable but still it's interesting question: is it possible for non-root
to get out of chroot trap via proc ?




-
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:52    [W:0.139 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site