From owner-cvs-all@FreeBSD.ORG Wed Mar 2 16:35:49 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3AADB16A4CE; Wed, 2 Mar 2005 16:35:49 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF05043D5D; Wed, 2 Mar 2005 16:35:48 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j22GZmDo031505; Wed, 2 Mar 2005 08:35:48 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j22GZmQm031504; Wed, 2 Mar 2005 08:35:48 -0800 Date: Wed, 2 Mar 2005 08:35:48 -0800 From: Brooks Davis To: Ruslan Ermilov Message-ID: <20050302163548.GB30001@odin.ac.hmc.edu> References: <200503020044.j220idvx011665@repoman.freebsd.org> <20050302072224.GB45034@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH" Content-Disposition: inline In-Reply-To: <20050302072224.GB45034@ip.net.ua> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 16:35:49 -0000 --i9LlY+UWpKt15+FH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 02, 2005 at 09:22:24AM +0200, Ruslan Ermilov wrote: > Hi Brooks, >=20 > On Wed, Mar 02, 2005 at 12:44:39AM +0000, Brooks Davis wrote: > > brooks 2005-03-02 00:44:39 UTC > >=20 > > FreeBSD src repository > >=20 > > Modified files: > > etc Makefile=20 > > Log: > > Remove a number of entries from the distribution target that are > > automaticly created at boot. There's no need to maintain a list of > > files and permissions in multiple places. This also means binary > > updates won't stomp on log files. > > =20 > > For the record, utmp is created in etc/rc.d/cleanvar, wtmp and lastlog > > in etc/rc.d/var, and the reset via etc/rc.d/newsyslog. > > =20 > > Revision Changes Path > > 1.341 +0 -26 src/etc/Makefile > >=20 > Has setting up jail(8) been considered (as per manpage)? In truth, I didn't think about it much. That said, it looks like we're mostly OK because var isn't marked nojail so it will be run and these files will be created. It looks like there might be an issue for jails that run a single application directly rather then running etc/rc, but only if they use these files (certantly the syslog logs won't be used). Someone more familiar with the jail(8) manpage might want add some notes to this effect. I don't want to add them to the main scriptlet because they aren't necessicary if running a full blown system so I'm not sure where in the flow they belong. Basicly what needs to be done to restore the previous state is after the "cd $D" do: logs=3D"var/run/utmp var/log/wtmp var/log/lastlog" touch $logs chmod 644 $logs newsyslog -d $D -f etc/newsyslog.conf -CN -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --i9LlY+UWpKt15+FH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCJetjXY6L6fI4GtQRAoe+AKDIQwmH3l8GPSRsJJ/Rmi5LuRtY1wCgyHct EjvWoykRnoyhphRarfEC8BA= =RcsK -----END PGP SIGNATURE----- --i9LlY+UWpKt15+FH--