Subject: bin/14248: security.conf:pkgdb_dir is superfluous
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 10/15/2001 19:25:27
>Number:         14248
>Category:       bin
>Synopsis:       security.conf:pkgdb_dir is superfluous
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 15 02:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     matthew green
>Release:        <NetBSD-current source date>
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
	
System: NetBSD madrugada.eterna.com.au 1.5X NetBSD 1.5X (_madrugada_) #100: Fri Sep 14 18:22:33 EST 2001 mrg@madrugada.eterna.com.au:/var/_madrugada_ alpha
Architecture: alpha
Machine: alpha
>Description:

	the new check_packages feature in /etc/security has one flaw.  it
	require the user to set $pkgdb_dir when if this has been changed
	from the default, it is probably somewhere like /etc/mk.conf..

>How-To-Repeat:

	set PKGDB_DIR=/usr/pkg/etc/pkg in /etc/mk.conf and have the new
	check_packages not work for you until you also set the path in
	security.conf (with a different name).

>Fix:

	make the default pkgdb_dir for security.conf derived from some
	make(1) magic that reads <bsd.own.mk> and defaults to /var/db/pkg.
	(it's probably impossible to guess where pkgsrc is installed (if
	at all) to include <bsd.pkg.mk> to get the real definition of
	${PKGDB_DIR})
>Release-Note:
>Audit-Trail:
>Unformatted: