From nobody Thu Dec 7 01:55:28 2023 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 4Sly6325d6z53N5Z; Thu, 7 Dec 2023 01:55:39 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sly631ZjPz4YcQ; Thu, 7 Dec 2023 01:55:39 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701914139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=opgnACh7pk8LdzDRjEz+XnF703M1S58CB3MkPr19/Ks=; b=oGg80Axf9y2ahOyIoi/Ut31qD6cLp+bQcs5yPqRIkGnLr8tWVW33dS7EWA/lSu5JIkEPWw gG5S/+Yj+z8TMVqtfdg3slCQb+e2msgfTE1M8b/wwsfnqiFb78px8GK9ASSxIUazvQmEjt nsMR+aqwOIXQ0hWs9CG1/RMtrR2+06jljP3UMGjhy2rh8TmmV3ph9pck3Al0RRvltzmnnB X9lrRJmyRvgcBljFcgr2Cz+Hk9/sE3Mer6uUC/V9YPC6PzFCWHDRHZfeuNatuWJkbtEd+q znASmTpjcMKcAxqTXKW5bAbeuuiZfB1xwE0Q3ZdguoFw6fQR7beCVPfzuEYRVw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701914139; a=rsa-sha256; cv=none; b=ha3+WXNBwD5apO/k92mdxNaNUP62Biigd+FujfrmTaDN+3y1cFSPQpKaHXvJuxVYwF1izh YCF92XNrDAvKEV4zxUuPsBWSIIH4KDQBwTY/1hE+7q8L1lKcNbqKAqCxsK8ScPxvuLcoM/ zj7L96n+ZSfaAkelC/NkWDy1bcKgV4m+1mD3zNQrcXiNFfB5Mp48cSuPw2w49neKc4GQHZ 6+OiL9eo3hlfol13lMgs405eIty63V+gJG2j2Vyq6ODAyB2yVmZ8Y58uUqttXU4B6r6F3O ne/9qanifjxkWGyuN/v4hA6lovu+1VY2Kv0BoTmTpOCmaI+8veR5B9zlzEjI4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701914139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=opgnACh7pk8LdzDRjEz+XnF703M1S58CB3MkPr19/Ks=; b=J8l2xS/KjIeWUCHSIzk3rtkakJq70hVvAC3Bx+eZ8cehWncoWRNaW7rPtRqVRZ1hPARIX8 A731Gkf6RJoAoe33BVJyJsBIolm9XAYlk8ryH2YS7GKwSsoQqamLUOAi7LHJLFU0YMrlDH 79Gp9eYsE3za4vXrKYV1pB3EBdmLFjAbuxGJtOecZ/R3caylIL8DKRE2350r0wounJN5gw l2wuGnMFM+faQJZaTKXKdSXrs+cdiOszC97PppdErh+WMnUJB7+ptWHeF5yVLfwCIMv80h 3kHN9DaINS+vf8gsQHMYZjb+1svHoZfa/V1fD1efJlodvBABdZ3x+8M7mzrFTQ== Received: from smtpclient.apple (unknown [IPv6:2001:19f0:6001:9db:98f0:9fe0:3545:10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Sly606914z1NCW; Thu, 7 Dec 2023 01:55:36 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: git: 6b96125afdf2 - main - cap_net.3: remove a copypasta From: Zhenlei Huang In-Reply-To: <202312061652.3B6GqOuf068349@gitrepo.freebsd.org> Date: Thu, 7 Dec 2023 09:55:28 +0800 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" , li-Wen Hsu Content-Transfer-Encoding: quoted-printable Message-Id: <44E8C9F3-84DD-4E51-B2A4-FB56E2A08F30@FreeBSD.org> References: <202312061652.3B6GqOuf068349@gitrepo.freebsd.org> To: Alan Somers X-Mailer: Apple Mail (2.3696.120.41.1.4) > On Dec 7, 2023, at 12:52 AM, Alan Somers wrote: >=20 > The branch main has been updated by asomers: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3D6b96125afdf245ae61dd82b59891ad0d= 6aab0066 >=20 > commit 6b96125afdf245ae61dd82b59891ad0d6aab0066 > Author: Alan Somers > AuthorDate: 2023-12-05 23:23:29 +0000 > Commit: Alan Somers > CommitDate: 2023-12-06 16:51:37 +0000 >=20 > cap_net.3: remove a copypasta >=20 > This line appears to have been copied from cap_sysctl.3. While I'm > here, reorder and reword the description of cap_net_limit a bit. >=20 > [skip ci] I guess we can 'skip ci' implicitly for document or typo changes. >=20 > MFC after: 2 weeks > Sponsored by: Axcient > Reviewed by: oshogbo > Differential Revision: https://reviews.freebsd.org/D42919 > --- > lib/libcasper/services/cap_net/cap_net.3 | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) >=20 > diff --git a/lib/libcasper/services/cap_net/cap_net.3 = b/lib/libcasper/services/cap_net/cap_net.3 > index 97a044e3f950..534d28c2ef7c 100644 > --- a/lib/libcasper/services/cap_net/cap_net.3 > +++ b/lib/libcasper/services/cap_net/cap_net.3 > @@ -21,7 +21,7 @@ > .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE = POSSIBILITY OF > .\" SUCH DAMAGE. > .\" > -.Dd November 15, 2021 > +.Dd December 5, 2023 > .Dt CAP_NET 3 > .Os > .Sh NAME > @@ -188,17 +188,14 @@ any port will be accepted in the > .Fn cap_connect > function. > .Pp > +The > .Fn cap_net_limit > -applies a set of sysctl limits to the capability, denying access to = sysctl > -variables not belonging to the set. > +will consume and apply the limits. > .Pp > Once a set of limits is applied, subsequent calls to > .Fn cap_net_limit > will fail unless the new set is a subset of the current set. > .Pp > -The > -.Fn cap_net_limit > -will consume the limits. > If the > .Fn cap_net_limit > was not called the rights may be freed using