From nobody Tue Sep 20 14:18:44 2022 X-Original-To: arch@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 4MX3Yx54Ddz4cMJP for ; Tue, 20 Sep 2022 14:18:45 +0000 (UTC) (envelope-from bugzilla-noreply@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 4MX3Yx43glz3Zys for ; Tue, 20 Sep 2022 14:18:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4MX3Yx37DWzl6b for ; Tue, 20 Sep 2022 14:18:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 28KEIjmj001060 for ; Tue, 20 Sep 2022 14:18:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28KEIjOu001059 for arch@FreeBSD.org; Tue, 20 Sep 2022 14:18:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: arch@FreeBSD.org Subject: [Bug 121073] [kernel] [patch] run chroot as an unprivileged user Date: Tue, 20 Sep 2022 14:18:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 8.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663683525; 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: in-reply-to:in-reply-to:references:references; bh=/2wBAeSlbuUuC4HIIq7c9AQ/ItoJpknpwfWRzkGLb3o=; b=gxwP2kX5p80iKMe4x50KW+oD7FE7F1ptBjAGgptveMlDgxuoTCd3xTKVTWKdGrK1xmSu2z VnqerEiWd6JPimiEN3kQXS0xiWSpmWhS5l9aXJgRXg0uBlDR+6ma53dFjie7OxBMpIZTgo 9HYnPN8M8zsvWMFyNfSy4BYfOetT2gI+44fdh/6GIKojDY+fqvJLBOW74ylx6VaoxVFf5j uVnWJk0jC30F3QkNctm9RU4mTVEAZk6Vaw0kUsfCYZXM6igdT2PmcpQ/jaazd81cskKMhc R9vicMexNGukU77wPSgh1zN1lw+zPU5nmGCUlPNWD1edfj+Z3RC2KDaQGEquKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663683525; a=rsa-sha256; cv=none; b=X4i+WpnYa11uNog89HWvYc6xeD4Pa/8WTJGsgxMMNoYBw1f79iXrncTAotc9koDEwDv6kl zQnqotprkELXc9/L+fT5DKnqlog3nmcAMmZFnTegr/RsJlrugd74zalrQuB1AjPZhswOHA 5Zvc8tbQOk8p4NgAh7VVQ2qpEzK/9OZu4DaKxLZoNNR/Yr1ZJR4w2KYMTMXeGDgtzr4lAO lA1hzQzq3aO9d8am6f7xaPWm4Hh9KDmABo5rkiaRqL+6xEgLIohJlPV8qMgYl7hJqEa63m nIN6uGV9o1hDOlsMlnBbIq7S2FE8S+IiV4rdLjzRxMVAYMFrOouitq2hT99Sgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D121073 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |Overcome By Events --- Comment #13 from Ed Maste --- Implemented in: commit a40cf4175c90142442d0c6515f6c83956336699b Author: Edward Tomasz Napierala Date: Tue Jul 20 08:56:04 2021 +0000 Implement unprivileged chroot This builds on recently introduced NO_NEW_PRIVS flag to implement unprivileged chroot, enabled by `security.bsd.unprivileged_chroot`. It allows non-root processes to chroot(2), provided they have the NO_NEW_PRIVS flag set. The chroot(8) utility gets a new flag, -n, which sets NO_NEW_PRIVS before chrooting. Reviewed By: kib Sponsored By: EPSRC Relnotes: yes Differential Revision: https://reviews.freebsd.org/D30130 --=20 You are receiving this mail because: You are on the CC list for the bug.=