lkml.org 
[lkml]   [1998]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Security patch for /proc
Date
> Alan Cox wrote:
> > mkdir("x");
> > chroot("x");
> > chdir("../../../../../../../..");
> > chroot(".");
>
> Huh? What are you saying here, Alan? /.. == /, regardless of whether
> its the real / or a chroot /.

/ is the point defined by chroot()
.. is the directory above you.

When you mkdir x, chroot x you now have . above / and ../../.. moves
above / to the true root


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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