From owner-freebsd-arch Fri Jun 15 7: 9:31 2001 Delivered-To: freebsd-arch@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id CBE7A37B406 for ; Fri, 15 Jun 2001 07:09:24 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 34596 invoked by uid 1000); 15 Jun 2001 14:08:00 -0000 Date: Fri, 15 Jun 2001 17:08:00 +0300 From: Peter Pentchev To: Dag-Erling Smorgrav Cc: audit@FreeBSD.ORG, arch@FreeBSD.ORG Subject: Re: new kldpath(8): display/modify the module search path Message-ID: <20010615170800.I94445@ringworld.oblivion.bg> Mail-Followup-To: Dag-Erling Smorgrav , audit@FreeBSD.ORG, arch@FreeBSD.ORG References: <20010615150639.D94445@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Fri, Jun 15, 2001 at 03:36:00PM +0200 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 15, 2001 at 03:36:00PM +0200, Dag-Erling Smorgrav wrote: > Peter Pentchev writes: > > Comments? Objections? Flames? > > I think it's a good idea, especially if it does additional checking > (like checking that the directory exists, and that it's owned by root > and isn't world-writeable). It currently only checks that the directory exists, and this check can be overridden by specifying an -f flag, just in case a startup script is adding a directory that is to be mounted later. But yes, the root-owned and !world-writable checks are a nice idea. Maybe kldpath should go ldconfig's way: check everything by default, and have an -i (insecure) option? > BTW, we should use : instead of ; as separators. This change wouldn't be too difficult to make - a one-line change to src/sys/kern/kern_linker.c - but that file has the following comment: * The search path can be manipulated via sysctl. Note that we use the ';' * character as a separator to be consistent with the bootloader. So, it could be a problem.. G'luck, Peter -- Hey, out there - is it *you* reading me, or is it someone else? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message