From owner-freebsd-questions@freebsd.org Thu Oct 15 18:34:22 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8D3BA15EF7 for ; Thu, 15 Oct 2015 18:34:22 +0000 (UTC) (envelope-from emorrasg@yahoo.es) Received: from nm30-vm5.bullet.mail.ir2.yahoo.com (nm30-vm5.bullet.mail.ir2.yahoo.com [212.82.97.83]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45D707A4 for ; Thu, 15 Oct 2015 18:34:21 +0000 (UTC) (envelope-from emorrasg@yahoo.es) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1444933855; bh=6vOY3Cvp+FhpiKzZ5DsxOcF3bAr5urVaRee4BOY354Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From:Subject; b=ODgNTLmOPNYCA4aEHUvlo9MPoL+vZoSJo6iNtHdJ4JO+z4DLisLgRujaSgxkD1ZICNr1fDMaM7jV4Cwb8KipcMshEUpn8vcaheaWEStMH3/UrqAW7yrJbGLIjpm4htasDXpGtqj+SsmTY0WNN7/BjUiR8xCHKmKXMCZpEggGChL4fQsNhnAkBshDrRVgskeaNYLJqzK1j411MRTo+Fl9UGOQEZPnZfARl5Iw2wr98nHCuDcjqANVhdfjWPc5Q7Vc+DefVMF2V71jGwR67Qigw1LECWk8Bbb8G7cUcezX6KSoGWBo0xV/Mlu5h0mCb9dP3N2EKo1wF7G8f7i7MLv4DA== Received: from [212.82.98.125] by nm30.bullet.mail.ir2.yahoo.com with NNFMP; 15 Oct 2015 18:30:55 -0000 Received: from [46.228.39.101] by tm18.bullet.mail.ir2.yahoo.com with NNFMP; 15 Oct 2015 18:30:55 -0000 Received: from [127.0.0.1] by smtp138.mail.ir2.yahoo.com with NNFMP; 15 Oct 2015 18:30:55 -0000 X-Yahoo-Newman-Id: 760319.21776.bm@smtp138.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: vLIORHsVM1mQOAlt1oMmt5cWwOesTlq0gElNjSXpBNBRhDC sWmXBT4nrpScIVUA4VPpOfRSbeR6sNrGndx03zHmkgbM7P89pAHbhqcWU56O dJJglU3SvzJqyQN9IOAY_eV8CO8xdaZMAEYBX9DM1IYCnQLH3zl6dQn._1Su 1a5DQch02wzKgkbw8QvfbawVclOxRngJYpxeqULn0YGZccwnJnKB5HiwxdYF 1UsES0gnY0oWhPh3rtJxS1WHt6yRIwuJEsRC18W_4mMt8YoFXPlP9gJ.nsmK 19nJKKUU7XSyxzkdBZVWB9ZjOGCQLhJQSaXpsxvb4gY.4X9saoiv3.aSMZiq 7ghJSPNlmq16rMEA9yn4egpmH0URJZHEo8pZmVtb4HJcubRpk5SwfMwoFlJ5 TahvBT5j5GMw6I.6St3gPh.oMXddojTbY5pxQy0L3Ns5M_252dDdV27nKRVz 5sgIQ4DmZgXxshV5LJAwTKr2iXxFbSkVX0CVi8Z38mocqH9KbvgHDZcxAIVr 5cwVlislV260zhjHqso4BF9OWSv2rREy9huu4aEU- X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR Date: Thu, 15 Oct 2015 20:31:19 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Cc: gyliamos@gmail.com Subject: Re: creating devices under a regular file system Message-Id: <20151015203119.7d46c4f14904f28ae41356db@yahoo.es> In-Reply-To: References: X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Thu, 15 Oct 2015 18:34:23 -0000 On Wed, 14 Oct 2015 23:29:50 +0000 (UTC) Will Parsons wrote: > I would like to know how to create a few selected devices > (viz. dev/null and dev/urandom) under a regular directory tree using > devfs. > > The background for this is the following: > > I use the fossil SCM system for various projects of mine, and keep the > repositories under ~/FOSSIL. Fossil provides a web interface, which I > employ using inetd, using the following line in /etc/inetd.conf: > > http stream tcp nowait root /usr/local/bin/fossil fossil > http /home//FOSSIL > > This works, but I get a warning message "can't open /dev/null and > /dev/urandom", because fossil does a chroot into ~/FOSSIL, where of > course the referenced devices do not exist. I asked about this on the > fossil mailing list and got the reply that the preferred method of > avoiding the warning message was to create these devices in the > chrooted environment. > > I presume that this can be done somehow via devfs, but am failing to > discern how. > I use fossil since its inception and never seen that warning. Is your user on wheel group? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" --- --- Eduardo Morras