From owner-freebsd-questions@FreeBSD.ORG Mon Aug 30 15:44:08 2010 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74B4710656C0 for <freebsd-questions@freebsd.org>; Mon, 30 Aug 2010 15:44:08 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0CB9C8FC08 for <freebsd-questions@freebsd.org>; Mon, 30 Aug 2010 15:44:07 +0000 (UTC) Received: by wyb33 with SMTP id 33so7839440wyb.13 for <freebsd-questions@freebsd.org>; Mon, 30 Aug 2010 08:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=bWiQEhbdNa6Te2GM8tXpLt978w/nViu/cN9BelGMHjw=; b=Qkg4V4RGdCEkr0PeZSYtEsz/ADfhLu+wKQQhsGNRX5XKlID0A82rZ5vFuguCeEQ8h+ pxxoaNI3lhzDOGb1+9VsRg6j4BnZC6T7oOU04YPlfiixQrzKlde4/Yi0ACQHoYClN7p0 eK3uGvqG63zAIG4cSGZ4V5vIYIemu7CU25800= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=U0px3qIpSpHfTUvk9X2bCKWOP4Uk0BtTT8zZTbSN5+mFYBRMTzPjfbDawBlMFb5DfC hHsZdAyFxAgRCksiNou3WrKZrAnmDOL5J5GrodZkj6zG0pwPlNZhaS9xHk8q1nm8LYJX 8ilZE15e+/bp6u0ktX06hTxId/R6Vrp9xafXo= MIME-Version: 1.0 Received: by 10.227.69.195 with SMTP id a3mr5226166wbj.58.1283183046779; Mon, 30 Aug 2010 08:44:06 -0700 (PDT) Received: by 10.216.179.201 with HTTP; Mon, 30 Aug 2010 08:44:06 -0700 (PDT) Date: Mon, 30 Aug 2010 17:44:06 +0200 Message-ID: <AANLkTikisKWaZ8shWmBBfg_RbcPcv4uCJe_w2VScAJjO@mail.gmail.com> From: claudiu vasadi <claudiu.vasadi@gmail.com> To: FreeBSD <freebsd-questions@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: jail devfs.rules not loaded at boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 30 Aug 2010 15:44:08 -0000 Hello fellas, I have a 8.0-RELEASE, i386 box with 2 jails. Here is my rc.conf: jail_enable="YES" # Set to NO to disable starting of any jails jail_list="dns www" # Space separated list of names of jails jail_dns_rootdir="/jails/dns" # jail's root directory jail_dns_hostname="dns" # jail's hostname jail_dns_ip="192.168.0.254" # jail's IP address jail_dns_devfs_enable="YES" # mount devfs in the jail jail_dns_devfs_ruleset="dns_ruleset" # devfs ruleset to apply to jail jail_dns_exec_start="/bin/sh /etc/rc" # command to execute in jail for starting jail_dns_exec_stop="/bin/sh /etc/rc.shutdown" # command to execute in jail for stopping jail_www_rootdir="/jails/www" # jail's root directory jail_www_hostname="www" # jail's hostname jail_www_ip="192.168.0.253" # jail's IP address jail_www_devfs_enable="YES" # mount devfs in the jail jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail jail_www_exec_start="/bin/sh /etc/rc" # command to execute in jail for starting jail_www_exec_stop="/bin/sh /etc/rc.shutdown" # command to execute in jail for stopping /etc/devfs.rules: [www_ruleset=1] add hide add path null unhide add path zero unhide add path random unhide add path urandom unhide add path crypto unhide add path stdin unhide add path stdout unhide add path stderr unhide [dns_ruleset=2] add hide add path null unhide add path zero unhide add path random unhide add path urandom unhide add path crypto unhide add path stdin unhide add path stdout unhide add path stderr unhide df -h: devfs 1.0K 1.0K 0B 100% /jails/dns/dev devfs 1.0K 1.0K 0B 100% /jails/www/dev The problem: At boot, the devfs.rules rules are not loaded and if I drop into the jail and do a ls in /etc, I can see everything the host machine has. However, if I manually restart the jails, the devfs rules are loaded. I tried putting the rules in /etc/defaults/devfs.rules too (and removed them from /etc/devfs.rules) but didn't work. The behavior is the same. An I doing something wrong here ? -- Best regards, Claudiu Vasadi