From owner-freebsd-rc@FreeBSD.ORG Mon Oct 18 11:02:06 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAF7A16A4E4 for ; Mon, 18 Oct 2004 11:02:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E06BB43D2F for ; Mon, 18 Oct 2004 11:02:06 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9IB26qe048142 for ; Mon, 18 Oct 2004 11:02:06 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9IB26Vb048136 for freebsd-rc@freebsd.org; Mon, 18 Oct 2004 11:02:06 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 18 Oct 2004 11:02:06 GMT Message-Id: <200410181102.i9IB26Vb048136@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 11:02:07 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- a [2004/03/09] kern/63954 rc devfs loses permissions 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/08/29] conf/56144 rc [PATCH] /etc/rc.d/ipmon, /etc/rc.d/ipfilt o [2004/06/30] conf/68525 rc Loader's verbose boot mode has rc.d/local o [2004/07/07] conf/68745 rc /etc/rc.d/devfs runs after ntpd so links 3 problems total. From owner-freebsd-rc@FreeBSD.ORG Thu Oct 21 15:19:18 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5B4516A4CE; Thu, 21 Oct 2004 15:19:17 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF43743D3F; Thu, 21 Oct 2004 15:19:17 +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 i9LFJEn0002677; Thu, 21 Oct 2004 08:19:14 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i9LFJEWn002676; Thu, 21 Oct 2004 08:19:14 -0700 Date: Thu, 21 Oct 2004 08:19:14 -0700 From: Brooks Davis To: Kevin Oberman Message-ID: <20041021151914.GB31030@odin.ac.hmc.edu> References: <4176E837.90402@telia.com> <20041021132145.65F415D04@ptavv.es.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wq9mPyueHGvFACwf" Content-Disposition: inline In-Reply-To: <20041021132145.65F415D04@ptavv.es.net> 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: freebsd-current@freebsd.org cc: freebsd-rc@freebsd.org cc: Pawel Worach Subject: Re: RCng/NTP Catch-22 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 15:19:18 -0000 --wq9mPyueHGvFACwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [-rc added to the CC list.] On Thu, Oct 21, 2004 at 06:21:45AM -0700, Kevin Oberman wrote: > > Date: Thu, 21 Oct 2004 00:35:35 +0200 > > From: Pawel Worach > >=20 > > Kevin Oberman wrote: > > >>Date: Thu, 21 Oct 2004 00:07:08 +0200 > > >>From: Pawel Worach > > > Pawel, > > >=20 > > > Thanks, but you missed the point. /etc/rc.d/devfs is always executed > > > AFTER ntpd. So putting the links into devfs.conf does not help. It's = too > > > late. > >=20 > > Sorry, missed the patch I'm using. > >=20 > > --- /usr/src/etc/rc.d/NETWORKING Fri Oct 8 01:49:33 2004 > > +++ NETWORKING Thu Oct 21 00:30:39 2004 > > @@ -6,7 +6,7 @@ > >=20 > > # PROVIDE: NETWORKING NETWORK > > # REQUIRE: dhclient netif routing network_ipv6 isdnd ppp-user > > -# REQUIRE: routed mrouted route6d mroute6d > > +# REQUIRE: routed mrouted route6d mroute6d devfs > >=20 > > # This is a dummy dependency, for services which require network= ing > > # to be operational before starting. > > --- /usr/src/etc/rc.d/devfs Fri Oct 8 01:49:33 2004 > > +++ devfs Thu Oct 21 00:31:52 2004 > > @@ -4,7 +4,6 @@ > > # > >=20 > > # PROVIDE: devfs > > -# REQUIRE: LOGIN > > # BEFORE: securelevel > > # KEYWORD: nojail >=20 > Thanks. This does the trick, but allows devfs to start at any time > before securelevel. I'm not sure if this might bite me somewhere down > the line. Why does devfs require LOGIN? I assume three was a reason, but > I have no idea if it was a good one or just a convenient choice. >=20 > In any case, this does get things started, but a solution really needs > to be incorporated into the distribution system. People installing and > maintaining systems should not have to patch startup files to make ntpd > work. The requiement of LOGIN is bogus. Things that configure important features like /dev must come before users might try to use them. The current setup is extra nonsensical because devd is already running when rc.d/devfs starts beating on things in /dev. I'll commit the following patch soon if there are no objections. -- Brooks Index: devfs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/etc/rc.d/devfs,v retrieving revision 1.9 diff -u -p -r1.9 devfs --- devfs 7 Oct 2004 13:55:25 -0000 1.9 +++ devfs 21 Oct 2004 15:12:52 -0000 @@ -4,8 +4,7 @@ # =20 # PROVIDE: devfs -# REQUIRE: LOGIN -# BEFORE: securelevel +# BEFORE: NETWORKING securelevel # KEYWORD: nojail =20 . /etc/rc.subr --=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 --wq9mPyueHGvFACwf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBd9NyXY6L6fI4GtQRAhfVAJ4lRKQbv0aAk+fxdN/RqDiOaMcYBQCcDsbl Lk8IyY0DzM0RH4pdOF+1xh8= =16AP -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf-- From owner-freebsd-rc@FreeBSD.ORG Thu Oct 21 15:29:53 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F20E16A4CE; Thu, 21 Oct 2004 15:29:53 +0000 (GMT) Received: from telecom.net.et (sparrow.telecom.net.et [213.55.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 627AC43D2F; Thu, 21 Oct 2004 15:29:50 +0000 (GMT) (envelope-from mtm@identd.net) Received: from [213.55.68.46] (HELO rogue.acs.lan) by telecom.net.et (CommuniGate Pro SMTP 3.4.8) with ESMTP id 60734198; Thu, 21 Oct 2004 18:22:40 +0300 Received: by rogue.acs.lan (Postfix, from userid 1000) id A4086B830; Thu, 21 Oct 2004 18:29:20 +0300 (EAT) Date: Thu, 21 Oct 2004 18:29:20 +0300 From: Mike Makonnen To: Brooks Davis Message-ID: <20041021152920.GB1811@rogue.acs.lan> References: <4176E837.90402@telia.com> <20041021132145.65F415D04@ptavv.es.net> <20041021151914.GB31030@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041021151914.GB31030@odin.ac.hmc.edu> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD/6.0-CURRENT (i386) cc: freebsd-current@freebsd.org cc: freebsd-rc@freebsd.org cc: Pawel Worach cc: Kevin Oberman Subject: Re: RCng/NTP Catch-22 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 15:29:53 -0000 On Thu, Oct 21, 2004 at 08:19:14AM -0700, Brooks Davis wrote: > The requiement of LOGIN is bogus. Things that configure important > features like /dev must come before users might try to use them. > The current setup is extra nonsensical because devd is already > running when rc.d/devfs starts beating on things in /dev. > > I'll commit the following patch soon if there are no objections. > > -- Brooks > > Index: devfs > =================================================================== > RCS file: /home/ncvs/src/etc/rc.d/devfs,v > retrieving revision 1.9 > diff -u -p -r1.9 devfs > --- devfs 7 Oct 2004 13:55:25 -0000 1.9 > +++ devfs 21 Oct 2004 15:12:52 -0000 > @@ -4,8 +4,7 @@ > # > > # PROVIDE: devfs > -# REQUIRE: LOGIN > -# BEFORE: securelevel > +# BEFORE: NETWORKING securelevel > # KEYWORD: nojail > > . /etc/rc.subr When I was workin on this 'way back when..' I tried to keep the general order in /etc/rc because I didn't know if someone had a reason I didn't know about for having something before or after something else. So I kept the general order in /etc/rc and figured we would fix things as they were reveiwed. This seems to be one of those. Your patch is missing a requirement for rcconf and mountcrit remote. devfs can't be run before NETWORKING because it depends on at least one binary in /usr/sbin. See my patch and reply to Andre. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon ! From owner-freebsd-rc@FreeBSD.ORG Thu Oct 21 21:08:08 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E487A16A4CE; Thu, 21 Oct 2004 21:08:08 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CEA443D54; Thu, 21 Oct 2004 21:08:07 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id i9LL62rE024168; Thu, 21 Oct 2004 15:06:12 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 21 Oct 2004 15:06:23 -0600 (MDT) Message-Id: <20041021.150623.04864669.imp@bsdimp.com> To: mtm@identd.net From: "M. Warner Losh" In-Reply-To: <20041021152920.GB1811@rogue.acs.lan> References: <20041021132145.65F415D04@ptavv.es.net> <20041021151914.GB31030@odin.ac.hmc.edu> <20041021152920.GB1811@rogue.acs.lan> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: freebsd-rc@freebsd.org Subject: Re: RCng/NTP Catch-22 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 21:08:09 -0000 In message: <20041021152920.GB1811@rogue.acs.lan> Mike Makonnen writes: : devfs can't be : run before NETWORKING because it depends on at least one binary in : /usr/sbin. See my patch and reply to Andre. which one? devfs is in /sbin. Warner From owner-freebsd-rc@FreeBSD.ORG Thu Oct 21 22:17:20 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F1C516A4CE; Thu, 21 Oct 2004 22:17:20 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F7BF43D46; Thu, 21 Oct 2004 22:17:20 +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 i9LMHGPf006226; Thu, 21 Oct 2004 15:17:16 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i9LMHFfb006224; Thu, 21 Oct 2004 15:17:15 -0700 Date: Thu, 21 Oct 2004 15:17:15 -0700 From: Brooks Davis To: "M. Warner Losh" Message-ID: <20041021221715.GA4730@odin.ac.hmc.edu> References: <20041021132145.65F415D04@ptavv.es.net> <20041021151914.GB31030@odin.ac.hmc.edu> <20041021152920.GB1811@rogue.acs.lan> <20041021.150623.04864669.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <20041021.150623.04864669.imp@bsdimp.com> 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: freebsd-current@freebsd.org cc: freebsd-rc@freebsd.org Subject: Re: RCng/NTP Catch-22 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 22:17:20 -0000 --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 21, 2004 at 03:06:23PM -0600, M. Warner Losh wrote: > In message: <20041021152920.GB1811@rogue.acs.lan> > Mike Makonnen writes: > : devfs can't be > : run before NETWORKING because it depends on at least one binary in > : /usr/sbin. See my patch and reply to Andre. >=20 > which one? devfs is in /sbin. It looks like chown. That one always suprises me even though I've hit it a number of times. I think this is because you can't safely do anything involving user names before you have working directory services and you can't be sure you have those before you have user. Hmm, I wonder what happens if you try to use chown when you have nss configured to use a directory, but don't have /usr mountd. -- 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 --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBeDVrXY6L6fI4GtQRAt+LAKDMbFYIt6X3/oGQdwWJkP/hCnML/ACcCp2Z hnM4BDZnAvx4SX7BeGCKCMU= =spuJ -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3-- From owner-freebsd-rc@FreeBSD.ORG Thu Oct 21 22:53:16 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 447FA16A4CE; Thu, 21 Oct 2004 22:53:16 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA02A43D48; Thu, 21 Oct 2004 22:53:15 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id i9LMogZ1025830; Thu, 21 Oct 2004 16:50:43 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 21 Oct 2004 16:51:04 -0600 (MDT) Message-Id: <20041021.165104.59582131.imp@bsdimp.com> To: brooks@one-eyed-alien.net From: "M. Warner Losh" In-Reply-To: <20041021221715.GA4730@odin.ac.hmc.edu> References: <20041021152920.GB1811@rogue.acs.lan> <20041021.150623.04864669.imp@bsdimp.com> <20041021221715.GA4730@odin.ac.hmc.edu> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: freebsd-rc@freebsd.org Subject: Re: RCng/NTP Catch-22 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 22:53:16 -0000 In message: <20041021221715.GA4730@odin.ac.hmc.edu> Brooks Davis writes: : On Thu, Oct 21, 2004 at 03:06:23PM -0600, M. Warner Losh wrote: : > In message: <20041021152920.GB1811@rogue.acs.lan> : > Mike Makonnen writes: : > : devfs can't be : > : run before NETWORKING because it depends on at least one binary in : > : /usr/sbin. See my patch and reply to Andre. : > : > which one? devfs is in /sbin. : : It looks like chown. That one always suprises me even though I've hit : it a number of times. I think this is because you can't safely do : anything involving user names before you have working directory services : and you can't be sure you have those before you have user. Hmm, I : wonder what happens if you try to use chown when you have nss configured : to use a directory, but don't have /usr mountd. Maybe that's why the LOGIN thing was there before :-( Warner From owner-freebsd-rc@FreeBSD.ORG Thu Oct 21 22:58:28 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF1E316A4CE; Thu, 21 Oct 2004 22:58:28 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95C5643D1F; Thu, 21 Oct 2004 22:58:28 +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 i9LMwTB6012388; Thu, 21 Oct 2004 15:58:29 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i9LMwS1c012387; Thu, 21 Oct 2004 15:58:28 -0700 Date: Thu, 21 Oct 2004 15:58:28 -0700 From: Brooks Davis To: "M. Warner Losh" Message-ID: <20041021225828.GA11669@odin.ac.hmc.edu> References: <20041021152920.GB1811@rogue.acs.lan> <20041021.150623.04864669.imp@bsdimp.com> <20041021221715.GA4730@odin.ac.hmc.edu> <20041021.165104.59582131.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20041021.165104.59582131.imp@bsdimp.com> 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: freebsd-current@freebsd.org cc: freebsd-rc@freebsd.org Subject: Re: RCng/NTP Catch-22 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 22:58:28 -0000 --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 21, 2004 at 04:51:04PM -0600, M. Warner Losh wrote: > In message: <20041021221715.GA4730@odin.ac.hmc.edu> > Brooks Davis writes: > : On Thu, Oct 21, 2004 at 03:06:23PM -0600, M. Warner Losh wrote: > : > In message: <20041021152920.GB1811@rogue.acs.lan> > : > Mike Makonnen writes: > : > : devfs can't be > : > : run before NETWORKING because it depends on at least one binary in > : > : /usr/sbin. See my patch and reply to Andre. > : >=20 > : > which one? devfs is in /sbin. > :=20 > : It looks like chown. That one always suprises me even though I've hit > : it a number of times. I think this is because you can't safely do > : anything involving user names before you have working directory services > : and you can't be sure you have those before you have user. Hmm, I > : wonder what happens if you try to use chown when you have nss configured > : to use a directory, but don't have /usr mountd. >=20 > Maybe that's why the LOGIN thing was there before :-( mountcritremote should be sufficent. LOGIN is way later then needed. A quick test on a 6.x machine with some users in /etc/password and some in NIS indicates that chown behaves reasionably in single user mode without /usr mounted. I could change a file to operator since it's in /etc/passwd, but not to brooks since I'm only in the NIS database. I got an invalid argument error when I tried. -- 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 --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBeD8UXY6L6fI4GtQRAtuUAKDn1iO1UIrtcauAk8PVww5RdtCHNwCeKtq4 KfE60cX62VxMUx1vXW+FLqk= =bqgm -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV-- From owner-freebsd-rc@FreeBSD.ORG Sat Oct 23 22:15:59 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B05FF16A4CE for ; Sat, 23 Oct 2004 22:15:59 +0000 (GMT) Received: from mail.trippynames.com (mail.trippynames.com [38.113.223.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C5C043D41 for ; Sat, 23 Oct 2004 22:15:59 +0000 (GMT) (envelope-from sean@chittenden.org) Received: from localhost (localhost [127.0.0.1]) by mail.trippynames.com (Postfix) with ESMTP id 31CA6A1F77 for ; Sat, 23 Oct 2004 15:15:59 -0700 (PDT) Received: from mail.trippynames.com ([127.0.0.1]) by localhost (rand.nxad.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 59870-10 for ; Sat, 23 Oct 2004 15:15:57 -0700 (PDT) Received: from [216.143.148.184] (unknown [216.143.148.184]) by mail.trippynames.com (Postfix) with ESMTP id CD98FA132C for ; Sat, 23 Oct 2004 15:15:57 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619) To: rc@FreeBSD.org Message-Id: <1B7E7779-2541-11D9-B8F6-000A95C705DC@chittenden.org> Content-Type: multipart/mixed; boundary=Apple-Mail-1-3470619 From: Sean Chittenden Date: Sat, 23 Oct 2004 15:15:54 -0700 X-Mailer: Apple Mail (2.619) Subject: rc.d/sshd entropy seeded detection not correct... X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Oct 2004 22:15:59 -0000 --Apple-Mail-1-3470619 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Simple patch, just wondering if this was intentional. Looks like a bug to me and causes a headache/5min delay for startup on fresh installs. I'd like to get this into RELENG_5, maybe 5_3 if people agree its a bug. I think it is and caused me quite a panic when the box didn't come up in a timely manner. -sc --Apple-Mail-1-3470619 Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name="patch.txt" Content-Disposition: attachment; filename=patch.txt Index: sshd =================================================================== RCS file: /home/ncvs/src/etc/rc.d/sshd,v retrieving revision 1.7 diff -u -r1.7 sshd --- sshd 7 Oct 2004 13:55:26 -0000 1.7 +++ sshd 23 Oct 2004 21:47:12 -0000 @@ -22,7 +22,7 @@ { ( seeded=`sysctl -n kern.random.sys.seeded 2>/dev/null` - if [ "${seeded}" != "" ] ; then + if [ "${seeded}" != "1" ] ; then warn "Setting entropy source to blocking mode." echo "====================================================" echo "Type a full screenful of random junk to unblock" --Apple-Mail-1-3470619 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed -- Sean Chittenden --Apple-Mail-1-3470619--