From nobody Wed Oct 07 14:47:38 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4j0GFD0Rnnz6w1NV for ; Wed, 07 Oct 2026 14:47:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4j0GFC75pWz4G7y for ; Wed, 07 Oct 2026 14:47:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791384464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YzBOYzG60VJf0B7GiybWt8s+5AKB5t9p/DfOJR1mWhc=; b=tFyzvVBgyAaTCuQW8qJYxCrQJGj8nzhIqrrzjH7SSQ6xdW46Du1DcPeU14bTkU2mVUcbnw cwmEP1bKzT4WUX6VjqaBNsVALp0cM1+ain/tjfJB5TYLRPT1lF8DMLKLHcbaI8iaLtzv8P XE4EB75IBjb0oda5ixGeBUNxTrLQ7fsGALJmWHeXojexpilozUq/72cNwlxZ0vMYsnZbC9 tUfHsDD8UcMk4uNjLLZCgu3dl2ifB34PS+id5Hv89647a9Z0wDA9aDXn3UDNCHz7NYoHMJ St4h3r72JTSKCcm9Kz349pCC7UNmbtD5eQS+SW7vq3LUAUoUnoi3Tgwg9dKzVQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791384464; b=rdaILWPBtNup4sooSecGKq+GlgQAZ5BxAmd/+txCzagPeTF25NHJq+JZFifIlrfLGD9ZyT eqr9E+rzvY4rSXI2DFH4DDat911wfS+kxddX6EY74HPEWNnMawRhv9kHH9LMlqBal+ZHGE PaOLZO6gbFyBzIjpbvpvIRVc2nU1Uj47IEwQyA7ISa7Qa8DjHEjCnoY0+g9q4/Y6Dd5SZ4 HM9jkBxiJqwmPTpnPiamYOibTGrSp5ZAYX8yjtmhg2TY3C5sbe9NdaNdq4MZ0jS/boQi9q TkQCZWo5XF4JHzsJ6DANE+u5OsX508uzXKpqis954enR8BRjMkeFFNc/Wu94dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791384464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YzBOYzG60VJf0B7GiybWt8s+5AKB5t9p/DfOJR1mWhc=; b=d/wlf5jineSkrIC3AUtywfAiMqrwF3AwhV7KRG2UkjSSZfQEqofoEShtapoyftLkMXXiAv huxQsHc9cwdHhcH7mJPwxFKp1gWKA9zmGgg6f/omHJ4RbmFg1qNIP61Z7sY/M1gtIcIzHi gDPmckaNDfh5cV5l7yFnrxjx8ZihGfKYhEj+gEW4JHf6M+AgckqeOUrZ94VG8fJQzfgbJM leRpTsHI7ULlwTmshWU6HQDmq6UnH5inkwbqCtea1WyPsqgCjFCc51qHrvejXdN7UgvC1/ 3tEejhth4FTIMfXHFbMCAYqtTIRlFC9xIHJqd2ZrwoijwwNpbAlodj4EXWVWQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4j0GFC69Xnzxx6 for ; Wed, 07 Oct 2026 14:47:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20312 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 07 Oct 2026 14:47:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: b6a573aa771e - main - dwatch(1): Use mdo(1) instead of sudo(8) when configured List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b6a573aa771e4a4b239a7bfeb074d1d25e811c1b Auto-Submitted: auto-generated Date: Wed, 07 Oct 2026 14:47:38 +0000 Message-Id: <6ac65b8a.20312.4b180561@gitrepo.freebsd.org> The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=b6a573aa771e4a4b239a7bfeb074d1d25e811c1b commit b6a573aa771e4a4b239a7bfeb074d1d25e811c1b Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2026-10-06 14:02:42 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2026-10-07 14:43:49 +0000 dwatch(1): Use mdo(1) instead of sudo(8) when configured Reviewed by: dteske, olce Approved by: christos (mentor) MFC after: 1 week Sponsored by: fme AG Differential Revision: https://reviews.freebsd.org/D60408 --- cddl/usr.sbin/dwatch/dwatch | 3 ++- cddl/usr.sbin/dwatch/dwatch.1 | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cddl/usr.sbin/dwatch/dwatch b/cddl/usr.sbin/dwatch/dwatch index c9af8258f4ac..f3bdb3afe585 100755 --- a/cddl/usr.sbin/dwatch/dwatch +++ b/cddl/usr.sbin/dwatch/dwatch @@ -717,8 +717,9 @@ pproc_dump() ############################################################ MAIN -# If we're running as root, no need for sudo(8) +# If we're running as root, no need for mdo(1) or sudo(8) [ "$( id -u )" != 0 ] && type sudo > /dev/null 2>&1 && SUDO=sudo +[ "$( id -u )" != 0 ] && mdo true > /dev/null 2>&1 && SUDO=mdo # # Process command-line options diff --git a/cddl/usr.sbin/dwatch/dwatch.1 b/cddl/usr.sbin/dwatch/dwatch.1 index 8c201d970620..9dc13f87b555 100644 --- a/cddl/usr.sbin/dwatch/dwatch.1 +++ b/cddl/usr.sbin/dwatch/dwatch.1 @@ -22,7 +22,7 @@ .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 4, 2026 +.Dd October 6, 2026 .Dt DWATCH 1 .Os .Sh NAME @@ -65,7 +65,9 @@ The utility uses .Xr dtrace 1 to display process info when a given DTrace probe point is triggered. -Only the root user or users with +Only the root user or users with either +.Xr mdo 1 +or .Xr sudo 8 Pq Pa ports/security/sudo access can run this command. .Pp