Date: Fri, 10 Jul 1998 12:17:52 -0600 From: "Aaron D. Gifford" <agifford@infowest.com> To: security@FreeBSD.ORG Subject: a chroot() shell wrapper Message-ID: <35A65AD0.438A6F28@infowest.com>
next in thread | raw e-mail | index | archive | help
Hello, I'm a relative newbie in coding for security, but I threw together a chroot() wrapper last night that is used as a user's shell. It chroot()s to a jail and runs another shell in the jail. It seems pretty straightforward, but I suspect I've missed some obvious things. I've got it online at http://www.eq.net/software/chrsh.c -- I called it chrsh but there's probably something already named that, though a quick web search didn't find anything. I was considering using rsh (the restricted shell), but it looked like it didn't do a chroot() jail, which is what I wanted. If you download it and look at it, please let me know if you notice any glaring errors or omissions. It seems to work on my own FreeBSD 2.2.6-STABLE system. Even though I searched and didn't notice anything, I GREATLY suspect I just reinvented the wheel. If so, please let me know and point me in the right direction. :) Aaron out. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35A65AD0.438A6F28>