NetBSD Problem Report #36746

From martin@duskware.de  Tue Aug  7 13:40:49 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 6B10B63BAB3
	for <gnats-bugs@gnats.netbsd.org>; Tue,  7 Aug 2007 13:40:49 +0000 (UTC)
Message-Id: <20070807133001.9EB7E63BAB3@narn.NetBSD.org>
Date: Tue,  7 Aug 2007 13:30:01 +0000 (UTC)
From: j.keil@gmx.de
Reply-To: j.keil@gmx.de
To: netbsd-bugs-owner@NetBSD.org
Subject: security can't use pkg_info
X-Send-Pr-Version: www-1.0

>Number:         36746
>Category:       security
>Synopsis:       security can't use pkg_info
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    adrianp
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 07 13:45:00 +0000 2007
>Closed-Date:    Mon Sep 17 20:15:16 +0000 2007
>Last-Modified:  Mon Sep 17 20:30:01 +0000 2007
>Originator:     Jochen Keil
>Release:        NetBSD 4.0_BETA2
>Organization:
>Environment:
NetBSD columbus 4.0_BETA2 NetBSD 4.0_BETA2 (COLUMBUS) #4: Thu Aug  2 15:30:13 CEST 2007  jochen@columbus:/home/jochen/netbsd-4/obj.dir/sys/arch/i386/compile/COLUMBUS.MP i386
>Description:
PATH definition in /etc/security:
PATH=/sbin:/usr/sbin:/bin:/usr/bin

# grep -n pkg_info /etc/security
883:            pkg_info | sort

Location of pkg_info after updating the pkg_install package with pkg_add -fu:

/usr/pkg/sbin/pkg_info
>How-To-Repeat:
Enable security checks for the daily mail output.
>Fix:
Either one of the following:

Add /usr/local/pkg/sbin to PATH;
Copy the pkg_* binarys to their according locations in /usr;
Symlink them;
Use pkg_add -p /usr;

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: security-officer->adrianp
Responsible-Changed-By: adrianp@netbsd.org
Responsible-Changed-When: Mon, 27 Aug 2007 16:35:49 +0000
Responsible-Changed-Why:
I'll grab this


From: Adrian Portelli <adrianp@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36746 CVS commit: src/etc
Date: Mon, 27 Aug 2007 19:57:02 +0000 (UTC)

 Module Name:	src
 Committed By:	adrianp
 Date:		Mon Aug 27 19:57:02 UTC 2007

 Modified Files:
 	src/etc: security
 	src/etc/defaults: security.conf

 Log Message:
 The location of the pkg_info binary can now be specified in /etc/security.conf.
 The default remains as /usr/sbin/pkg_info.  This should fix PR# 36746.


 To generate a diff of this commit:
 cvs rdiff -r1.103 -r1.104 src/etc/security
 cvs rdiff -r1.19 -r1.20 src/etc/defaults/security.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Adrian Portelli <adrianp@stindustries.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: security/36746: security can't use pkg_info
Date: Sun, 16 Sep 2007 17:34:10 +0100

 The following pullups have been submitted to fix this PR in the netbsd
 4, 3 and 2 branches:

 [pullup-4 #883]
 [pullup-3 #1841]
 [pullup-2-0 #11367]

 adrian.

From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36746 CVS commit: [netbsd-2] src/etc
Date: Mon, 17 Sep 2007 19:57:11 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Mon Sep 17 19:57:10 UTC 2007

 Modified Files:
 	src/etc [netbsd-2]: security
 	src/etc/defaults [netbsd-2]: security.conf

 Log Message:
 Pull up following revision(s) (requested by adrianp in ticket #11367):
 	etc/defaults/security.conf: revision 1.20
 	etc/security: revision 1.104
 The location of the pkg_info binary can now be specified in
 /etc/security.conf.
 The default remains as /usr/sbin/pkg_info.  This should fix PR# 36746.


 To generate a diff of this commit:
 cvs rdiff -r1.88.4.1 -r1.88.4.2 src/etc/security
 cvs rdiff -r1.12 -r1.12.4.1 src/etc/defaults/security.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36746 CVS commit: [netbsd-2-0] src/etc
Date: Mon, 17 Sep 2007 19:58:49 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Mon Sep 17 19:58:48 UTC 2007

 Modified Files:
 	src/etc [netbsd-2-0]: security
 	src/etc/defaults [netbsd-2-0]: security.conf

 Log Message:
 Pull up following revision(s) (requested by adrianp in ticket #11367):
 	etc/defaults/security.conf: revision 1.20
 	etc/security: revision 1.104
 The location of the pkg_info binary can now be specified in
 /etc/security.conf.
 The default remains as /usr/sbin/pkg_info.  This should fix PR# 36746.


 To generate a diff of this commit:
 cvs rdiff -r1.88.2.1 -r1.88.2.2 src/etc/security
 cvs rdiff -r1.12 -r1.12.2.1 src/etc/defaults/security.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36746 CVS commit: [netbsd-2-1] src/etc
Date: Mon, 17 Sep 2007 20:00:07 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Mon Sep 17 20:00:07 UTC 2007

 Modified Files:
 	src/etc [netbsd-2-1]: security
 	src/etc/defaults [netbsd-2-1]: security.conf

 Log Message:
 Pull up following revision(s) (requested by adrianp in ticket #11367):
 	etc/defaults/security.conf: revision 1.20
 	etc/security: revision 1.104
 The location of the pkg_info binary can now be specified in
 /etc/security.conf.
 The default remains as /usr/sbin/pkg_info.  This should fix PR# 36746.


 To generate a diff of this commit:
 cvs rdiff -r1.88.6.1 -r1.88.6.2 src/etc/security
 cvs rdiff -r1.12 -r1.12.6.1 src/etc/defaults/security.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36746 CVS commit: [netbsd-3] src/etc
Date: Mon, 17 Sep 2007 20:05:08 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Mon Sep 17 20:05:07 UTC 2007

 Modified Files:
 	src/etc [netbsd-3]: security
 	src/etc/defaults [netbsd-3]: security.conf

 Log Message:
 Pull up following revision(s) (requested by adrianp in ticket #1841):
 	etc/defaults/security.conf: revision 1.20
 	etc/security: revision 1.104
 The location of the pkg_info binary can now be specified in
 /etc/security.conf.
 The default remains as /usr/sbin/pkg_info.  This should fix PR# 36746.


 To generate a diff of this commit:
 cvs rdiff -r1.94.2.5 -r1.94.2.6 src/etc/security
 cvs rdiff -r1.14.2.2 -r1.14.2.3 src/etc/defaults/security.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36746 CVS commit: [netbsd-3-0] src/etc
Date: Mon, 17 Sep 2007 20:07:17 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Mon Sep 17 20:07:16 UTC 2007

 Modified Files:
 	src/etc [netbsd-3-0]: security
 	src/etc/defaults [netbsd-3-0]: security.conf

 Log Message:
 Pull up following revision(s) (requested by adrianp in ticket #1841):
 	etc/defaults/security.conf: revision 1.20
 	etc/security: revision 1.104
 The location of the pkg_info binary can now be specified in
 /etc/security.conf.
 The default remains as /usr/sbin/pkg_info.  This should fix PR# 36746.


 To generate a diff of this commit:
 cvs rdiff -r1.94.2.1.2.2 -r1.94.2.1.2.3 src/etc/security
 cvs rdiff -r1.14.2.1 -r1.14.2.1.2.1 src/etc/defaults/security.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36746 CVS commit: [netbsd-3-1] src/etc
Date: Mon, 17 Sep 2007 20:08:22 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Mon Sep 17 20:08:22 UTC 2007

 Modified Files:
 	src/etc [netbsd-3-1]: security
 	src/etc/defaults [netbsd-3-1]: security.conf

 Log Message:
 Pull up following revision(s) (requested by adrianp in ticket #1841):
 	etc/defaults/security.conf: revision 1.20
 	etc/security: revision 1.104
 The location of the pkg_info binary can now be specified in
 /etc/security.conf.
 The default remains as /usr/sbin/pkg_info.  This should fix PR# 36746.


 To generate a diff of this commit:
 cvs rdiff -r1.94.2.3.2.2 -r1.94.2.3.2.3 src/etc/security
 cvs rdiff -r1.14.2.2 -r1.14.2.2.2.1 src/etc/defaults/security.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: adrianp@netbsd.org
State-Changed-When: Mon, 17 Sep 2007 20:15:16 +0000
State-Changed-Why:
A fix has been pulled up into all NetBSD branches that allow users to set the full path of pkg_info in security.conf.


From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36746 CVS commit: [netbsd-4] src/etc
Date: Mon, 17 Sep 2007 20:27:17 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Mon Sep 17 20:27:17 UTC 2007

 Modified Files:
 	src/etc [netbsd-4]: security
 	src/etc/defaults [netbsd-4]: security.conf

 Log Message:
 Pull up following revision(s) (requested by adrianp in ticket #883):
 	etc/defaults/security.conf: revision 1.20
 	etc/security: revision 1.104
 The location of the pkg_info binary can now be specified in
 /etc/security.conf.
 The default remains as /usr/sbin/pkg_info.  This should fix PR# 36746.


 To generate a diff of this commit:
 cvs rdiff -r1.100.2.3 -r1.100.2.4 src/etc/security
 cvs rdiff -r1.18.4.1 -r1.18.4.2 src/etc/defaults/security.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.