From owner-freebsd-questions@FreeBSD.ORG Tue May 19 14:07:51 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 33C73EF6 for ; Tue, 19 May 2015 14:07:51 +0000 (UTC) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 019F61008 for ; Tue, 19 May 2015 14:07:50 +0000 (UTC) Received: from [192.168.43.26] (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.9/8.14.9) with ESMTP id t4JE7oZA060376 for ; Tue, 19 May 2015 10:07:50 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <555B43AC.3010807@sentex.net> Date: Tue, 19 May 2015 10:07:40 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions Subject: devfs.rules in a jail Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2015 14:07:51 -0000 Hi, I am trying to expose a single ugen device inside a jail. In this case, a pkcs11 token. However, I cant seem to get the config right. I started with a simple ezjail default config export jail_mdtp_sentex_ca_devfs_ruleset="devfsrules_jail" and in the rules file, I have # cat /etc/devfs.rules [devfsrules_jail=5] add path 'ugen[0-9]\*' mode 666 add path 'usb/[0-9]\*' mode 666 and then I restart the jail. However, I dont see it there total 10 dr-xr-xr-x 9 root wheel - 512 May 19 10:06 . drwxr-xr-x 12 root wheel uarch 23 May 15 18:33 .. dr-xr-xr-x 2 root wheel - 512 May 15 14:57 fd crw-rw-rw- 1 root wheel - 0x19 May 19 10:06 null dr-xr-xr-x 2 root wheel - 512 May 19 10:06 pts crw-rw-rw- 1 root wheel - 0x1e May 15 10:57 random lrwxr-xr-x 1 root wheel - 4 May 19 10:06 stderr -> fd/2 lrwxr-xr-x 1 root wheel - 4 May 19 10:06 stdin -> fd/0 lrwxr-xr-x 1 root wheel - 4 May 19 10:06 stdout -> fd/1 lrwxr-xr-x 1 root wheel - 6 May 19 10:06 urandom -> random crw-rw-rw- 1 root wheel - 0x1a May 15 10:57 zero crw-rw-rw- 1 root operator - 0x4d May 15 14:57 zfs What am I missing ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/