From nobody Mon Dec 16 14:45:49 2024 X-Original-To: dev-commits-src-main@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 4YBjRf53zzz5hWLV; Mon, 16 Dec 2024 14:45:50 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBjRf0ytbz4db9; Mon, 16 Dec 2024 14:45:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734360350; 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=Rjab6T+sbbuvgz0LJGARhfKP8XWZEjrr1fXvqwL4YLA=; b=ktkmBYqQpeSzOue6+pOK0gVEKGxbudgmEx63RuaHLPUg9202Lnnh+OoBCpo2F5Cusrfzd7 a200WpaaYt5QH4TD9G5KcCzktg8CoMAvFd4A5VROVFd2tuPe/fwxLQcMfzQLITL2HXdoBB StANgzE/X/2HWzCmp7qWrkA5qEP0dR+0tq+XxYbG6HA2MVyyGAdMBW1AXR/VstFDTQSYvo /qupvsUF4r2IERmgyjrNklnn5nlnRq1MTfRx5v38yPLrsk+LbnG7pPu8UGvBPKE+fv7POO bPOaD2V0a+L4FOqcrwctx7V9dkVDUfYDL1R8MJV575fo/dp5qhQYBbmi4qkHzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734360350; 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=Rjab6T+sbbuvgz0LJGARhfKP8XWZEjrr1fXvqwL4YLA=; b=jJunsER7LOv7MtEHBRZy81COBrFHO3ZDWwXA0fGfN9l/DWvT7PJOYBsMhpa5ZlmYj9oBnY bi5vQXFKOvkczC9mYYewC7NIBPqrhrbW+RUP/qE8sVi3pd9GJocu7vCpJJGgVoD2nrA4A3 XayvnlzI7OSngQ6hpLvR+J4rc7BrReA8i/s3+xZvnXbR6jnptydE3luoMzdvpe9LfLiZ/r j5kwGrHs3knGZBCceW2RVD9pAnzqYl3IdQS4DVEKgOu6wc5tQIKhWi8SDMzUgd+rgYSIpj T7WHMDY8Pm5hUoxd35LP8tH6FV0LZH8ze0t6DzSR9KOI1CVw/TFk/h/fhyA5EA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734360350; a=rsa-sha256; cv=none; b=gbdttolzleFYmSzdBMLLIHPa+0hO1UYZMntrsxSE5dYnDB9nC7Rp6gN32ivlCdzzRFYsue RnEYoH6IwPg3CH4+ClZvcTJm7H+CdCe100wx7pa+SUi3xtsc/pAs0Rt96ue8z7+HNzXlgy GHWw6rhRtt/tD2IJLSYlPCkl0ltg0mKmqo0PKAdMVQfRSsDBtxs/1E9xSZlG3Sx7FJcmuU JabET2dZBuIv0mkntBgJcnQcBo1s13Bh8tWqVfltF3GKe+DZC3lwgG4/Q1y5e3gGQifenl jvhSEEWDPIU/s5eft8ty629hVWbCmPju8WVgywA40paUvIaPIX6i/fb4ZlO+hw== 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 4YBjRf0ZlPzxkd; Mon, 16 Dec 2024 14:45:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BGEjnox053015; Mon, 16 Dec 2024 14:45:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BGEjnvp053012; Mon, 16 Dec 2024 14:45:49 GMT (envelope-from git) Date: Mon, 16 Dec 2024 14:45:49 GMT Message-Id: <202412161445.4BGEjnvp053012@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: b3f93680e39b - main - MAC/do: Enable changing 'security.mac.do.rules' from a jail List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b3f93680e39b90c02ddabdaf98f9c9a669d24c00 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=b3f93680e39b90c02ddabdaf98f9c9a669d24c00 commit b3f93680e39b90c02ddabdaf98f9c9a669d24c00 Author: Olivier Certner AuthorDate: 2024-07-03 13:49:51 +0000 Commit: Olivier Certner CommitDate: 2024-12-16 14:42:35 +0000 MAC/do: Enable changing 'security.mac.do.rules' from a jail Now that sysctl_rules() has been fixed to behave. Reviewed by: bapt Approved by: markj (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47602 --- sys/security/mac_do/mac_do.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/security/mac_do/mac_do.c b/sys/security/mac_do/mac_do.c index 98bace7052f6..787790cb2b34 100644 --- a/sys/security/mac_do/mac_do.c +++ b/sys/security/mac_do/mac_do.c @@ -331,7 +331,7 @@ out: } SYSCTL_PROC(_security_mac_do, OID_AUTO, rules, - CTLTYPE_STRING|CTLFLAG_RW|CTLFLAG_MPSAFE, + CTLTYPE_STRING|CTLFLAG_RW|CTLFLAG_PRISON|CTLFLAG_MPSAFE, 0, 0, sysctl_rules, "A", "Rules");