lkml.org 
[lkml]   [1998]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Security patch for /proc
> From: Chris Evans <chris@ferret.lmh.ox.ac.uk>
> On Tue, 31 Mar 1998, Jeremy Fitzhardinge wrote:
> >
> > Here's a patch which prevents chrooted processes from escaping from
> > their chrooted area via /proc.
>
> I'm not sure I agree with this approach -- perhaps root processes should
> not be allowed to use the mount() syscall if root_dir != real_root. The
> other main source of nastiness is ptrace() -- this needs to be banned in a
> similar manner. There are other ways root could escape a chroot()
> jail, we need to think about them and eliminate them one by one.

I don't think Linux should even attempt to prevent root on a chrooted
env to break from the chroot jail (unless capabs are folded in, and it's
done properly and thoroughly that way). There are just too many ways,
and chroot really wasn't meant for that.

Note that, since you can't control quite nicely what goes into a
chrooted environment (i.e you don't have to have /usr/games/svgalibdoom
and similar setuid crap) in there, it shouldn't be too hard to make sure
a chrooted ordinary user can't become root.

--
Roger Espel Llima, espel@llaic.u-clermont1.fr
http://www.eleves.ens.fr:8080/home/espel/index.html

-
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.027 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site