From nobody Tue Dec 14 11:02:58 2021 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 C5AAB18DB078; Tue, 14 Dec 2021 11:02:58 +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 4JCwTG1rrJz3LnS; Tue, 14 Dec 2021 11:02:58 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 1F89827179; Tue, 14 Dec 2021 11:02:58 +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 1BEB2wwO039767; Tue, 14 Dec 2021 11:02:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEB2wQL039766; Tue, 14 Dec 2021 11:02:58 GMT (envelope-from git) Date: Tue, 14 Dec 2021 11:02:58 GMT Message-Id: <202112141102.1BEB2wQL039766@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mariusz Zaborski Subject: git: f45ca435bd2c - main - cap_net: fix verification of bind permission 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: oshogbo X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f45ca435bd2cba2ea6d9b79dbef275bc5ea4036a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639479778; 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=544LZfqXVel9xp780vYIrKVpeH0lVST53EBHjaP0eZU=; b=bshFf4Mb2VJYH+6YuZ6iCkeV9mQ1gstgUpn1lIjqmIPyRuoElPMwXzVnTH8dN7iqeAtadB DdWhns35EPURs6QtalZUhIoKxtPEcx7LjsAKqb7C7fA+IIYCDX5gG6Tt2S6JsqXI3/w+ZD r/PqfE29IXQFvL3W2quHz8ZeYCY0VlqmfNeK62lXpKXo7EOJRQE0o44Cn+dNDE6FNbaZNC EnNGqaiYs++4XUOtfFUW70Xsq4hlFFO/i/tijbGc5BrAdmOrR3b0hyp3RF7SzuB18r3KuK pu1g5k8xIE5j4YvEIslYq/n5oooopLmAQMCNgzWEO52qm8tt9+2xdpZgdIam6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639479778; a=rsa-sha256; cv=none; b=vZSZkYLNbB4KqYArz/ouqXYq4CPuzBx9UlR/9p3cQ9D3QIcPfEOGTh0SkeZxHEbET5tsKw urta00Gl9SJODlFJ4BXg05mBtbQemsfinXNITjjh6iHHfaAE5PuSW90GGfRCeC51Mp3ees CR9NExd/9ShWtcZwaYcI3/KUYEzHYUUOYeTUXijwqXo+pX4EdVRRl6fzlq6ZOvoTa4xw1v 98HWao/NhGk4xkbmnOnqtQG9wOV8l3QagrTjAR2hTR7R2SvEFqwK+NZh3CtIP0ZWUAWPUH M4p5zGpjuzEQZJC1aX+v7wIsIVT13hK2HY99TSynBoMBitvRbMeG8QcqO5eAtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=f45ca435bd2cba2ea6d9b79dbef275bc5ea4036a commit f45ca435bd2cba2ea6d9b79dbef275bc5ea4036a Author: Mariusz Zaborski AuthorDate: 2021-12-14 11:01:10 +0000 Commit: Mariusz Zaborski CommitDate: 2021-12-14 11:02:40 +0000 cap_net: fix verification of bind permission MFC after: 5 days --- lib/libcasper/services/cap_net/cap_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcasper/services/cap_net/cap_net.c b/lib/libcasper/services/cap_net/cap_net.c index 5e10714e3614..c6abaa69faf6 100644 --- a/lib/libcasper/services/cap_net/cap_net.c +++ b/lib/libcasper/services/cap_net/cap_net.c @@ -1382,7 +1382,7 @@ net_limit(const nvlist_t *oldlimits, const nvlist_t *newlimits) */ if (oldlimits == NULL) return (0); - if (!hasconnect && nvlist_exists(oldlimits, LIMIT_NV_BIND)) + if (!hasbind && nvlist_exists(oldlimits, LIMIT_NV_BIND)) return (ENOTCAPABLE); if (!hasconnect && nvlist_exists(oldlimits, LIMIT_NV_CONNECT)) return (ENOTCAPABLE);