NetBSD Problem Report #57242

From martin@duskware.de  Wed Feb 22 12:01:59 2023
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5AD581A9239
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 22 Feb 2023 12:01:59 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: unbound rc.d script does not work with chrooted unbound
X-Send-Pr-Version: 3.95

>Number:         57242
>Category:       bin
>Synopsis:       unbound rc.d script does not work with chrooted unbound
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    hannken
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 22 12:05:00 +0000 2023
>Closed-Date:    Sun May 28 13:39:03 +0000 2023
>Last-Modified:  Sun May 28 13:39:03 +0000 2023
>Originator:     Martin Husemann
>Release:        NetBSD 10.0_BETA
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD plug.duskware.de 10.0_BETA NetBSD 10.0_BETA (GENERIC64) #7: Fri Feb 10 14:39:45 CET 2023 martin@seven-days-to-the-wolves.aprisoft.de:/work/src-10/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:

In a build with MKUNBOUND=yes the /etc/rc.d/unbound script does not properly
work. Unbound is started in a chroot but the pid file path is not properly
adjusted in the script.

>How-To-Repeat:

Install a MKUNBOUND=yes build and configure unbound to run, then query
its status and try to restart it.

 - add "unbound=YES to" /etc/rc.conf
 - /etc/rc.d/unbound start
 - pgrep unbound (note the pid)
 - /etc/rc.d/unbound status (claims it is not running)
 - /etc/rc.d/unbound restart
 - pgrep unbound (note the pid has not changed)

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: "Juergen Hannken-Illjes" <hannken@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57242 CVS commit: src/external/bsd/unbound/include
Date: Tue, 23 May 2023 20:07:21 +0000

 Module Name:	src
 Committed By:	hannken
 Date:		Tue May 23 20:07:21 UTC 2023

 Modified Files:
 	src/external/bsd/unbound/include: config.h

 Log Message:
 Set PID path back to "/var/run/unbound.pid" so rc scripts work again.

 Ok: Christos Zoulas

 PR bin/57242 unbound rc.d script does not work with chrooted unbound


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 src/external/bsd/unbound/include/config.h

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

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57242 CVS commit: [netbsd-10] src/external/bsd/unbound/include
Date: Sun, 28 May 2023 10:00:53 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun May 28 10:00:53 UTC 2023

 Modified Files:
 	src/external/bsd/unbound/include [netbsd-10]: config.h

 Log Message:
 Pull up following revision(s) (requested by hannken in ticket #179):

 	external/bsd/unbound/include/config.h: revision 1.11

 Set PID path back to "/var/run/unbound.pid" so rc scripts work again.
 Ok: Christos Zoulas

 PR bin/57242 unbound rc.d script does not work with chrooted unbound


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.10.2.1 src/external/bsd/unbound/include/config.h

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

Responsible-Changed-From-To: bin-bug-people->hannken
Responsible-Changed-By: hannken@NetBSD.org
Responsible-Changed-When: Sun, 28 May 2023 13:39:03 +0000
Responsible-Changed-Why:
Take.


State-Changed-From-To: open->closed
State-Changed-By: hannken@NetBSD.org
State-Changed-When: Sun, 28 May 2023 13:39:03 +0000
State-Changed-Why:
Fixed in head -- pullup to -10 complete.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.