From owner-freebsd-questions@FreeBSD.ORG Sun Nov 19 21:34:43 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 775E016A40F for ; Sun, 19 Nov 2006 21:34:43 +0000 (UTC) (envelope-from freebsd-questions@stellablue.org) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32BE743D53 for ; Sun, 19 Nov 2006 21:34:31 +0000 (GMT) (envelope-from freebsd-questions@stellablue.org) Received: from db2.internal (db2.internal [10.202.2.12]) by frontend1.messagingengine.com (Postfix) with ESMTP id 7B34BDC916F for ; Sun, 19 Nov 2006 16:34:41 -0500 (EST) Received: from web4.messagingengine.com ([10.202.2.213]) by db2.internal (MEProxy); Sun, 19 Nov 2006 16:34:43 -0500 Received: by web4.messagingengine.com (Postfix, from userid 99) id DF2C6160C13; Sun, 19 Nov 2006 16:34:43 -0500 (EST) Message-Id: <1163972083.22652.276496521@webmail.messagingengine.com> X-Sasl-Enc: PBLF45D6c5vdtjpLnvKH/pO4aYJuNFgf2FzUaZNmpot9 1163972083 From: "Steve Brown" To: freebsd-questions@freebsd.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface References: <1163865175.3379.276381343@webmail.messagingengine.com> In-Reply-To: <1163865175.3379.276381343@webmail.messagingengine.com> Date: Sun, 19 Nov 2006 13:34:43 -0800 Subject: Re: devfs creates unwanted devices in jail after ruleset applied X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@stellablue.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Nov 2006 21:34:43 -0000 If no one has any ideas, suggestions on perhaps a better place to pose this question? Steve On Sat, 18 Nov 2006 10:52:55 -0500, "Steve Brown" said: > > I am running a DNS server in a jail and have setup a devfs mount in the > jail to have null and random devices. > > The setup works fine, but once I log out then log back in the pty and > tty devices of my login get created in the jail. Which, of course, I > don't want to happen. To clarify, I'm not talking about "logging into > the jail", this occurs when logging on to the system. The jail is > stripped down, not anywhere close to a virtual server. > > I do the following to create the jail'd devfs at startup: > > mount_devfs devfs JAILDIR/dev > > devfs -m JAILDER/dev rule -s 35 add hide > devfs -m JAILDIR/dev rule -s 35 add path null unhide > devfs -m JAILDIR/dev rule -s 35 add path random unhide > > devfs -m JAILDIR/dev rule -s 35 applyset > > This works great - I get a dev directory setup with just null and > random. But the second anyone logs into the system, whammo all the > sudden pty and tty devices appear inside the jail's /dev directory. > > If anyone would care to unclueless me I would appreciate it. > > Steve > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"