From nobody Mon Jan 22 09:39:29 2024 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 4TJQD13TYpz57X1j; Mon, 22 Jan 2024 09:39:29 +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 4TJQD12xmdz4MmN; Mon, 22 Jan 2024 09:39:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705916369; 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=m6eaaEU9VGmDiw4oPDBDNir0VP1vRPM8q/wDdViSkO4=; b=tWDjbuZLESMir6oeeWylMbiiDHiTaSSXmBuzSw15jAyOkJM7HPgZrJUdGpuJ7jibYmeQZH oXh/Zl5cT8xYtscBccQ8FnyuwNrdE5c8ZD0TDVLxI4jI3ckNRUNp8ZhXxXW6zGHUYKnxQ0 G1uvVgRsEbxijIk+TliZpaKE0d7AKkXg36Z26/Y2JeeXQLRRtIphb4QOEDigI/JSHBBWPG usH+l5MAkpuL0idenp00h7n8sFbneOwDOq6Pw+KYhvmnluDVhMRZYq0jdvoV2wdiOT5Gw0 Hmc9i8ic8wmvt5jTNTfoxomhlPn+3frv5ddM00wvxDGPeUgWwQpAevgfbai1iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705916369; 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=m6eaaEU9VGmDiw4oPDBDNir0VP1vRPM8q/wDdViSkO4=; b=FORR9KPxEnwfqWrsuW3oykWLq24BK/QbMX/fe4494o7+Y1+9ml8yrvsnT+8H4i3jx91V5k 3FX3lhfs488WfZ5TRv6/Fag0syZDHxPqH3ZYqZMtuKWLTKJKXmA1Ae2zuiBDk6F4uN5KGC MCwLDeXK6pIBzoFdtQ7fdczC7VMv3KgchZ3mehfdRMnWaVkLC8VSQbuEgxjEWqdjKulJ6G P3oe1NZKMWLAUF95y1haBu8FDjwj6JAtmcG4kP+CTRDp68UcXGiSx/EDbO2bunOaojriGV uw+89tu394Ysrl0Vr1/41jAQn47rPu1bxkhYx/i2Kz9H5fLQY2Z1bzQOrlf1sg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705916369; a=rsa-sha256; cv=none; b=nOpnQM3+RVezy/siEAGA+8b6oMWxeEKxI4OT0ygsZ8ZXwo7JGCehIa6GWFuACMmxL18Orc zWcH/XG6O25nK7cqZQCp6ID9+IXbwGys5BVoiWkgGgij65fEsTA9QrNGG2BFYurnSPCscK SE5JY0Lhx6pG2JnJPMq4OoqtezimTvXuvQNi84YVJyrA3hNKxCp3oYGiiti9qFPTRyiRxx yzkjncaEzlNjBvmLEqTGmnaFnDZ71BTRjRe+ItXLg1IwrgIlqgAQVS4RgZISRQM/J3vC34 RAkFXXbtdNesZQMsGlQCBljCaj6weA0pQktONu+kAyhX2bv26FBwe4bz1FuDLw== 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 4TJQD11pRFzwrY; Mon, 22 Jan 2024 09:39:29 +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 40M9dTSu010652; Mon, 22 Jan 2024 09:39:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40M9dTxi010649; Mon, 22 Jan 2024 09:39:29 GMT (envelope-from git) Date: Mon, 22 Jan 2024 09:39:29 GMT Message-Id: <202401220939.40M9dTxi010649@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: d1fdafc789df - stable/14 - jail: add security.jail.mlock_allowed 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: bapt X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d1fdafc789dfd6c9ad4145ca0bcfde87b1ca818e Auto-Submitted: auto-generated The branch stable/14 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=d1fdafc789dfd6c9ad4145ca0bcfde87b1ca818e commit d1fdafc789dfd6c9ad4145ca0bcfde87b1ca818e Author: Baptiste Daroussin AuthorDate: 2024-01-04 14:09:44 +0000 Commit: Baptiste Daroussin CommitDate: 2024-01-22 09:39:16 +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 (cherry picked from commit 9fd978680db6495180a4d46f76529d344b003c80) --- 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 e95008be42e8..91466c46bc62 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -4393,6 +4393,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)