From owner-freebsd-jail@FreeBSD.ORG Wed Feb 16 21:13:37 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 421B41065670 for ; Wed, 16 Feb 2011 21:13:37 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id EB0318FC1C for ; Wed, 16 Feb 2011 21:13:36 +0000 (UTC) Received: by qyg14 with SMTP id 14so998762qyg.13 for ; Wed, 16 Feb 2011 13:13:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=6rGu9be9TlPEjPe4M6jZrJsew91R208X/4fby2KR9Hk=; b=dQXlbF+5kzzlVR/GUeHdVlI8U2NhZrGUIH0bYhwkFUv+8vz84rUgAossqafz7jy2BR CpeZeG8lV9GxO1+aaFboCIJpCawB3wRsQQcjUp2FCpk9LLiA8AQUsoDl9+xSpieTEpEh PpVVbQgT8itCWmB2LepwIgNWQDoEEbYwPK518= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=NczJlSn05A1CUlrCgAjvvKHH62OHzSz6lVQaplx5YE2ZarRn2H0B9p4HR2RKc6qWot 4MfJJ+AC6Ty9+KiXEnvKQ0RL/cv+6hmX3e8EOD6zvKt5thSQZlE2tDhZqRxFXnHnI1RH FvoByqN/o50uQ9vYQ5R9x3zf24knrTN1aSSl4= MIME-Version: 1.0 Received: by 10.224.45.68 with SMTP id d4mr1451008qaf.115.1297890815706; Wed, 16 Feb 2011 13:13:35 -0800 (PST) Sender: rickvanderzwet@gmail.com Received: by 10.220.11.78 with HTTP; Wed, 16 Feb 2011 13:13:35 -0800 (PST) In-Reply-To: References: Date: Wed, 16 Feb 2011 22:13:35 +0100 X-Google-Sender-Auth: QVqlPlYdAnOz9PBjKQUjZO0URf0 Message-ID: From: Rick van der Zwet To: Monthadar Al Jaberi Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-jail@freebsd.org Subject: Re: [jail][vnet] wlandebug inside jail, operation not permitted X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 21:13:37 -0000 On 16 February 2011 17:34, Monthadar Al Jaberi wrote: > I have created a jail with "jail -c jid=1 vnet persist", then moved a > wlan to it "ifconfig wlan0 vnet 1" but when I try to run: > "jexec 1 wlandebug -i wlan0 state" I get : > > wlandebug: sysctl-set(net.wlan.0.debug): Operation not permitted > net.wlan.0.debug: 0x22000 => > > I can run wlandebug before moving wlan to a jail, but why cant I do it > inside the jail? I am running everything as root. You cannot control your device drivers from a jail. I am even wondering why you try to do this commands inside a jail in the first place. Please have a look at the handbook page: http://www.freebsd.org/doc/handbook/jails.html to see the intended usage of jails and what is possible and not. Br. /Rick -- http://rickvanderzwet.nl