NetBSD Problem Report #56483

From www@netbsd.org  Wed Nov  3 20:25:31 2021
Return-Path: <www@netbsd.org>
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 279931A9239
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  3 Nov 2021 20:25:31 +0000 (UTC)
Message-Id: <20211103202529.C135D1A923A@mollari.NetBSD.org>
Date: Wed,  3 Nov 2021 20:25:29 +0000 (UTC)
From: donaldcallen@gmail.com
Reply-To: donaldcallen@gmail.com
To: gnats-bugs@NetBSD.org
Subject: doas /sbin/reboot hangs
X-Send-Pr-Version: www-1.0

>Number:         56483
>Category:       pkg
>Synopsis:       doas /sbin/reboot hangs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    nikita
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 03 20:30:00 +0000 2021
>Last-Modified:  Thu Nov 04 10:03:37 +0000 2021
>Originator:     Don Allen
>Release:        9.2
>Organization:
Retired
>Environment:
NetBSD giovanni.allen.net 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
I have installed doas on a system running NetBSD 9.2. /usr/pkg/etc/doas.conf includes the line:

permit nopass dca as root cmd /sbin/reboot

If I do

doas /sbin/reboot

from a shell in my account, the system hangs and fails to reboot.

On the other hand, I also have sudo installed, with this line in the sudoers file:

dca     giovanni = NOPASSWD: /sbin/reboot

and I do

sudo /sbin/reboot

the system reboots properly.

I have used the identical doas.conf on openbsd and freebsd and 'doas /sbin/reboot' works properly.
>How-To-Repeat:
See full description.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->nikita
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Thu, 04 Nov 2021 10:03:37 +0000
Responsible-Changed-Why:
Over to maintainer


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.