🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.security.misc
Article #405

How secure is chroot?

#405
From: Gary Howland
Date: Sun, 16 Aug 1992 20:39
27 lines
1425 bytes
In article <1992Aug15.093848.9784@dircon.co.uk> uaa1006@dircon.co.uk writes:
>
>I'm developing a system which uses the chroot(S) call to limit 
>the area a user can access on a UNIX system.
>
>I have a program which is SUID root, which runs chroot and then
>sets the UID of the process to that of the user, and spawns 
>/bin/sh (which is present under the chroot path).
>
>My question is....how secure is this? Are there any areas I 
>should look out for to ensure that no one can access other parts 
>of the system?
>
>General comments and observations about the chroot facility 
>would also be of interest.
>
>I should add that under the chroot area, I've created a /dev
>directory, containing entries for /dev/null, /dev/tty, /dev/socksys 
>(for outgoing ftp/telnet).
>
I haven't tried this myself (maybe I will in the next day or so),
but if a user gains root privileges, whats to stop them mknod'ing a
disk device and accessing the rest of the world via that?
(or have I overlooked something?)

Gary
Technical Details
Message-ID: <713997587snx@nexnix.demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!nexnix.demon.co.uk!gary
References: <1992Aug15.093848.9784@dircon.co.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.security.misc
From: gary@nexnix.demon.co.uk (Gary Howland)
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!nexnix.demon.co.uk!gary
Subject: How secure is chroot? 
Distribution: world
References: <1992Aug15.093848.9784@dircon.co.uk>
Organization: nexnix
Lines: 28
Date: Sun, 16 Aug 1992 20:39:47 +0000
Message-ID: <713997587snx@nexnix.demon.co.uk>
Sender: usenet@gate.demon.co.uk