From nobody Fri Jan 05 12:55:21 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 4T63Mt0mhpz5730n; Fri, 5 Jan 2024 12:55:22 +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 4T63Mt0HZMz4WkY; Fri, 5 Jan 2024 12:55:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704459322; 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=CRRO7W7iqKcfYa4/m80SPS/6LEuIAtboU69xfLzE5LI=; b=ZX3o3pgZUkn3ESlFwoB2/xB520OD+FoExzsAohxDW6m8X+/p746xbrn9zGD1RkaJop7fjX hwWXFmx8gXx+7z7HeJtQWtZ9pcwX78OK6pUDzlcaan3aElOQcfb2L8W9imgjU9+slAs9H2 F2zpd6Zmc5LL5Ky4WRjxRhy2vaN0Rbsm0H05mBi+IKpMs+vxlbZQNxWFht+nqsFdqehLPh G0I2eQ0ZKYS5McDVpmPzBgGr8ouCsjn3NfnLvZEJeCgI9HEs+CIvdZ2EsDi3bsd5vCWKu0 6+wHI6qR43DzJGI3tROblT9X2kw2m5y0tpnkrFl0Im2ERzz/5rdSfGrTfsiJXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704459322; 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=CRRO7W7iqKcfYa4/m80SPS/6LEuIAtboU69xfLzE5LI=; b=MvNjEvUw6K46OgpXgwk0xz0P5Kv6GyXOkG80zePM5wuyhnqMvYS0O/DtexnTHnNj7PvECx Uflytg/alv0mDgWNksW9o9ZlzuG9lFJnx2+WoOpl2FzUUeFSyd8qOASfyp9YoN/ZTqlzGt Ze8W2NBIs1oPzf6OlU+5wHu1DgpSc/0j1R3MlgjU6XBxkvbGnMmlrqN+CTBLGcGixsgRhP ZyuWuv0W9xMqQsX61hhc0nswuyTyNSliCSdFg7Q3Vc1Be8Mx/om3QJeibSFZkthrhWfI3U sHs8Ghdk7ydiKxuXl0lcD1U9I0J85K0p/HhTQc70QpKp3XdJnJidLU1F5EcZyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704459322; a=rsa-sha256; cv=none; b=xvNAZkRARDTghxqUMPEl+lgnJZEeiJNF4MV3Ig/n6wvhu9KFkbaJq5H4TPU9m/PUevfDL4 S1SnEXlEckzfgLWIq5Jna3f+IOOF+t7N/kEfIU3UOXjcD3ao4aX2DvjyVMwTgsOfgS4vD9 rJ9oj7Lqw1MCOXsU5uF9FfEyjyEFa5qZJuMLF26UOP87lbUrK4ioYbLTNZOmenXDgiLmdk MLbBmR/ieZXw5yfaRZjRRsbsHAdO5ZnivA4nPjjb//OJNRpns+qdgphIz3ZiJ3AZPVQNRm CKpps1oUXGlMkrwHBrgGdZJNQdZAbSjzHV+OCEkGvf16ZHfjCuFZZ1U98iXabg== 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 4T63Ms6SLqzyHl; Fri, 5 Jan 2024 12:55:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 405CtLx5084594; Fri, 5 Jan 2024 12:55:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 405CtLfm084591; Fri, 5 Jan 2024 12:55:21 GMT (envelope-from git) Date: Fri, 5 Jan 2024 12:55:21 GMT Message-Id: <202401051255.405CtLfm084591@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 9fd978680db6 - main - jail: add security.jail.mlock_allowed 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9fd978680db6495180a4d46f76529d344b003c80 Auto-Submitted: auto-generated The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=9fd978680db6495180a4d46f76529d344b003c80 commit 9fd978680db6495180a4d46f76529d344b003c80 Author: Baptiste Daroussin AuthorDate: 2024-01-04 14:09:44 +0000 Commit: Baptiste Daroussin CommitDate: 2024-01-05 12:53:57 +0000 jail: add security.jail.mlock_allowed when the parameter allow.mlock was added a way for jails to check if the parameter was set or now has not been added, this change covers it. MFC After: 3 days Reviewed by: jamie@ Differential Revision: https://reviews.freebsd.org/D43314 --- sys/kern/kern_jail.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index abecc9ac8072..0ae1d9a02f60 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -4436,6 +4436,10 @@ SYSCTL_PROC(_security_jail, OID_AUTO, mount_allowed, CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, NULL, PR_ALLOW_MOUNT, sysctl_jail_default_allow, "I", "Processes in jail can mount/unmount jail-friendly file systems (deprecated)"); +SYSCTL_PROC(_security_jail, OID_AUTO, mlock_allowed, + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, + NULL, PR_ALLOW_MLOCK, sysctl_jail_default_allow, "I", + "Processes in jail can lock/unlock physical pages in memory"); static int sysctl_jail_default_level(SYSCTL_HANDLER_ARGS)