From nobody Thu Dec 15 19:27:08 2022 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 4NY2L43PWTz4V4yQ; Thu, 15 Dec 2022 19:27:08 +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 4NY2L42xd6z4387; Thu, 15 Dec 2022 19:27:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671132428; 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=6VcsbCkycS3XKuFHtTzPJST6Df16Y+QYmuv44qjd3qc=; b=H/eO/ot43wY790MgbYG2+jlFmPdrVbmjHqOaE7yoNuPO64B6/5npCW9RtQyBTNhbjhA1lM O8IVK8TVMbA1wslOhDjjRyg6u+9Gn339XGNrwP+gwGuuZQLPTcAis6pyn+YmTT92HIYIoY v6qrzc3MAakfF3dFk42Z7C4AAJgbqrU0233uCLdojbLfVE9hBxUtcPEAmbYVJVj5bqKwCS FkyxFrW5ZHhWaSUwisYCQ+w6zgRTFwaJgNd+4vgnoK/OnIYmD5JMy6PmfIToqz2trBekW3 F5qBj5tYIPvTdlsD29L4xaFYfdIBcgylS3B6lwNUTTA9EuQy5B0weOse0Jpb4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671132428; 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=6VcsbCkycS3XKuFHtTzPJST6Df16Y+QYmuv44qjd3qc=; b=dxOiSbaLsrbZmnCEi3NgGV3thTZ5vuEUKeu9ZuuBuZYSKdZiNQ0PhAUGs/5X3AuVm1Q8s6 S0RwSHBpie1YfCbe7rzpgmjDytmjWeFVLm29jr+XdAkcJGU9m/6/t19dO8FUu8zLMypcL1 omzxhf23PAUutXU0aUIqeSy3N79M/jEERfgYDq//VYqqB0AANRjl2NV4RXsvZCj8cXGlqz +NKuDVyNqwzI5PQPRIyoZnXkQBLE5e7oa0Ki0WHoRV1YK0YGEAd94lQf+5qfZE0T8aqlyx 8YbwjYhNrXuTGxrsCfN/GOaYRvVi+WWUMryZldVHnHu8waK5tlFMNbyQrrDpbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671132428; a=rsa-sha256; cv=none; b=gHKBfvC4JbtUX8loJAqqD5D3fKn1KP17F6Wgu8tFKNgqeZd9mScpYz9rZGCnCJOz95UiEh MrPS2g7wnOi9oNLvKF8Jg4Q5kgIXe/SHmre+E7jowBXaZKcH6rU/2Fo1G9ha9tYRnkLszU gkILUkVEGlbN3ahlcBRtar+qtQLrSRQ17ZUOXmVr/TNghSDXbgJYPVmIcHnZ/VjZkepAmI T+/C2Ej5iXtwHgtEuD0nIW0d7IfEKyLD6pE9/tvdMUg6R/filTMmnx2GrkJwe4GdxRwN5F 3FZZ+c/uZUf4xyjdCGJpWCgaDC+5clMXLR33SS7DoLo8Fs1eGoOwxMB12NuhKA== 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 4NY2L422VGzl6q; Thu, 15 Dec 2022 19:27:08 +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 2BFJR85O071191; Thu, 15 Dec 2022 19:27:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BFJR8PN071190; Thu, 15 Dec 2022 19:27:08 GMT (envelope-from git) Date: Thu, 15 Dec 2022 19:27:08 GMT Message-Id: <202212151927.2BFJR8PN071190@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 120eff994aeb - main - ptrace.2: Fix warnings from igor. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 120eff994aeb31671c144a1835c62d9d8789a5a0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=120eff994aeb31671c144a1835c62d9d8789a5a0 commit 120eff994aeb31671c144a1835c62d9d8789a5a0 Author: John Baldwin AuthorDate: 2022-12-15 19:25:27 +0000 Commit: John Baldwin CommitDate: 2022-12-15 19:26:57 +0000 ptrace.2: Fix warnings from igor. Reviewed by: pauamma, imp Differential Revision: https://reviews.freebsd.org/D37689 --- 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 cceb0d0d05c8..4589fac92d26 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 @@ -132,7 +132,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. @@ -431,11 +431,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