From owner-freebsd-current@FreeBSD.ORG Wed Sep 1 18:13:22 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F82916A4CE for ; Wed, 1 Sep 2004 18:13:22 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A14C43D3F for ; Wed, 1 Sep 2004 18:13:22 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by mproxy.gmail.com with SMTP id 77so231666rnl for ; Wed, 01 Sep 2004 11:13:21 -0700 (PDT) Received: by 10.38.83.80 with SMTP id g80mr1666775rnb; Wed, 01 Sep 2004 11:13:21 -0700 (PDT) Received: by 10.38.75.25 with HTTP; Wed, 1 Sep 2004 11:13:21 -0700 (PDT) Message-ID: <790a9fff04090111132a67ac3e@mail.gmail.com> Date: Wed, 1 Sep 2004 13:13:21 -0500 From: Scot Hetzel To: Rob MacGregor In-Reply-To: <200409011802.i81I2uAR024741@the-macgregors.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200409011802.i81I2uAR024741@the-macgregors.org> cc: freebsd-current@freebsd.org Subject: Re: 5.3-BETA1, jails and devfs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Scot Hetzel List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 18:13:22 -0000 On Wed, 1 Sep 2004 19:02:56 +0100, Rob MacGregor wrote: > Probably a stupid question, however... > > I've got my first jail running under 5.3-BETA1 and am trying to lock down /dev, > as per the advice in the jail man page. All attempts fail however: > > # devfs ruleset 10 > devfs ruleset: ioctl DEVFSIO_SUSE: Operation not permitted > # devfs rule apply hide > devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted > > I'm pretty sure I've missed something obvious in a man page, but having re-read > them a few dozen times I'm darned if I can work it out. Any help appreciated. > How are you applying the devfs rules (on the host, or inside the jail)? If you are applying them from inside the jail, I don't believe that is supported. You need to apply the rules before starting the jail. Scot