From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 6 11:19:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 874881065672 for ; Sat, 6 Sep 2008 11:19:02 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 10DDA8FC22 for ; Sat, 6 Sep 2008 11:19:01 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.2) with ESMTP id m86BIeXS046901; Sat, 6 Sep 2008 12:18:52 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.1 smtp.infracaninophile.co.uk m86BIeXS046901 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1220699932; bh=v+6fzYuYTJlnpS JAyHyXyK8UMIa6Hzd3kM5u5UZnpE0=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<48C2670A.9000808@infracaninophile.co.uk>|Date:=20Sat,=2 006=20Sep=202008=2012:18:34=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.16=20(X11/20080726)|MIME-Version:=201 .0|To:=20Joshua=20Piccari=20|CC:=20freebsd-h ackers@freebsd.org|Subject:=20Re:=20Temp=20files=20in=20/etc|Refere nces:=20<15d3bc360809051940t70f0b884mb9a80132acc50b45@mail.gmail.co m>=09<20080906063113.GB77307@icarus.home.lan>=20<15d3bc360809052349 t4e90e719tf82c5002a2d9e2d@mail.gmail.com>|In-Reply-To:=20<15d3bc360 809052349t4e90e719tf82c5002a2d9e2d@mail.gmail.com>|X-Enigmail-Versi on:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha 256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20bo undary=3D"------------enigD941CFB25FBFB773B8539A91"; b=GBF97Z4TTQRa NIyHa/ZLWke7dMmIQr+oARJK6NP6Pjj4lzFT7tgOu83BlAb91/SlvXywC3ZJqLizHZe dboBi0AxB6IccOcQChuRxsxvWpG1x2JLIjalxQBVGQqCtQ7yAg3ZQf4QIpik9P+ZPDV +nA2QeLfx1m+fmliqesx3zqg8= Message-ID: <48C2670A.9000808@infracaninophile.co.uk> Date: Sat, 06 Sep 2008 12:18:34 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: Joshua Piccari References: <15d3bc360809051940t70f0b884mb9a80132acc50b45@mail.gmail.com> <20080906063113.GB77307@icarus.home.lan> <15d3bc360809052349t4e90e719tf82c5002a2d9e2d@mail.gmail.com> In-Reply-To: <15d3bc360809052349t4e90e719tf82c5002a2d9e2d@mail.gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigD941CFB25FBFB773B8539A91" X-Virus-Scanned: ClamAV 0.93.3/8173/Sat Sep 6 10:24:00 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-hackers@freebsd.org Subject: Re: Temp files in /etc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2008 11:19:02 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD941CFB25FBFB773B8539A91 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Joshua Piccari wrote: > I have a shared /etc folder that is mounted read-only to the different = jails > that share it. Some of the configuration files which need to be dynamic= from > jail to jail are replaced with symbolic links to the jails /usr/local/e= tc > folder. The reason for mount /etc as read-only is to ensure that none o= f the > jails accidentally modify the configurations for all the jails sharing = these > configurations. However, there is an issue with creating temp files on = a > read-only system which means I will have to work around this somehow. I= > thought about setting the schg flag on all the files in the shared /etc= > folder but I don't want one jail to be able to add a rc.d script for ev= ery > jail. Can't you use a unionfs to achieve what you want? Abstract out all the common data to filesystem that you mount read-only, and then use unionfs = to mount a per-jail read/write overlay on top of that? Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigD941CFB25FBFB773B8539A91 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkjCZxAACgkQ8Mjk52CukIyRwQCfVcg2mCHuk4OexHijg0bLZITf NoYAnR8GmCeIatCpd+JPQjcPyI40bjkP =Jo0p -----END PGP SIGNATURE----- --------------enigD941CFB25FBFB773B8539A91--