From nobody Wed Feb 22 21:22:44 2023 X-Original-To: dev-commits-src-branches@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 4PMTdc4l2Zz3sCxy; Wed, 22 Feb 2023 21:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PMTdc4D1Mz3NWK; Wed, 22 Feb 2023 21:22:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677100964; 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=9R23zo62Hq/I+zzVB1FJD958oNhY2MEASl8Uog7tzG0=; b=i+S9s6ia1hQkaQ+V03Dk0WmaZIDfQ+pOZ0eyWgXHNNw3h57tApatpruP4PN8Bu4jEVaDPB 20jpBdPCQxLJlg5XzF9T9oihWqBs98QV9RWjScGCH/liBjP2h4jFkvExrtWjeCcWtE2VLk 9vNJd/MyT5VReg2TMkNffbR0JNha57bBnzIuNbiovUGZWyXG9JRkyjW6VLbxfZYQ9l3e9Z gcQdVTSzREtn9udrIh/tgEPNUR1er1qIM9Vu9PfnX0Bb7yrp9ihCgpk8N6rTNCvmL1A29s Cv7J6lkKP40jwgIFPePjL4L+4+fsDqlt5slgCQa0sGk7Pi+ezXu1nqnO5IYYNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677100964; 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=9R23zo62Hq/I+zzVB1FJD958oNhY2MEASl8Uog7tzG0=; b=qEgd08IHiJsHa6TK5cknF4349hfHJjSmSlQH/Ab8CzrpctFZ3VadeNwl3+aXq+IWn9pIoi DV668qe/CZc593VUYVixaC9R/hZkHmtACULJpng08ElwRputHZxC2KAd0cvNzZvKrfBbUt fCE2TI8Jwc54CjnLVyTcrEtrenFv/VOl32m8azxena+CrUDoWSE3bFPhnDkkEGCa4XClAs RUmCG1ZfCcfpBnFP/i0fsEF/Tqq+ngeN1z2LP3fXrn/i4lIDeVsH9sFEU8P34BdJMQShLA PujYZVk0d9xUhR+FZEYqLXGCT3AkQV6gD16bBGq4Wcogj2jpzX/qMzZWwp2fzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677100964; a=rsa-sha256; cv=none; b=bdWyO/INn3LOMTIlnTt3BhfLJrjztf0ziVhjIJUzJ0thYWpHDZKgSIL1P/eqc5+uvqILBX y02WCqxOU2jsItU+wc0QUdb+9SGFZ2YtUtNnKORiO9kcFg11arGVODCwuv4W09i19uEt5F FXSObjeojW+0U6o4hlssoX95elJx8l1iQrihAvuy5dQx8jCxvIcflFLOWUocB7x8swQN3H wa+7+waPD7Ao2yNxecrBnTybzcs4XY1e3xociZYCqnBRJvy4mEn1Z5Ss441Qm6j4w0Aub1 gzIuCrUCxkTg2Y/0mNa2w1MLf33a3ona63pTahgSZcYGF1FcmSi1v3XYxwB8rw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PMTdc3HS8zGcx; Wed, 22 Feb 2023 21:22:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31MLMiUs014897; Wed, 22 Feb 2023 21:22:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31MLMiZw014896; Wed, 22 Feb 2023 21:22:44 GMT (envelope-from git) Date: Wed, 22 Feb 2023 21:22:44 GMT Message-Id: <202302222122.31MLMiZw014896@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: df2b1d059158 - stable/13 - ptrace.2: Fix warnings from igor. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: df2b1d0591584d9e63456349080357d00ccb94d8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=df2b1d0591584d9e63456349080357d00ccb94d8 commit df2b1d0591584d9e63456349080357d00ccb94d8 Author: John Baldwin AuthorDate: 2022-12-15 19:25:27 +0000 Commit: John Baldwin CommitDate: 2023-02-22 20:43:39 +0000 ptrace.2: Fix warnings from igor. Reviewed by: pauamma, imp Differential Revision: https://reviews.freebsd.org/D37689 (cherry picked from commit 120eff994aeb31671c144a1835c62d9d8789a5a0) --- lib/libc/sys/ptrace.2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index a5e67c745422..06c427419c41 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -2,7 +2,7 @@ .\" $NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $ .\" .\" This file is in the public domain. -.Dd January 27, 2022 +.Dd December 15, 2022 .Dt PTRACE 2 .Os .Sh NAME @@ -151,7 +151,7 @@ The following controls are provided for this: .Bl -tag -width security.bsd.unprivileged_proc_debug .It Dv security.bsd.allow_ptrace Setting this sysctl to zero value makes -.Xr ptrace 2 +.Nm return .Er ENOSYS always as if the syscall is not implemented by the kernel. @@ -450,11 +450,11 @@ given as the signal to be delivered. .It Dv PT_ATTACH This request allows a process to gain control of an otherwise unrelated process and begin tracing it. -It does not need any cooperation from the to-be-traced process. +It does not need any cooperation from the process to trace. In this case, .Fa pid -specifies the process ID of the to-be-traced process, and the other +specifies the process ID of the process to trace, and the other two arguments are ignored. This request requires that the target process must have the same real UID as the tracing process, and that it must not be executing a setuid