From nobody Tue Sep 20 14:18:44 2022 X-Original-To: bugs@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 4MX3Yx4fsqz4cMDZ 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 4MX3Yx3cLRz3bJD 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 4MX3Yx2h8vzl6Z 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 28KEIjV7001056 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 28KEIjba001055 for bugs@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: bugs@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: AssignedTo 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@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=tX3nHHdStdoPS4pLPpOs+g+MXGKanKB7tTeEmHVHGJk=; b=CGFcITL6LZaJI1NUvRYhKyQiJfKIbqYOjpo1cBAKt9laAPKnsXVfvK9+zv4/L0QHe1psoy VkZ9pFthOZWEUNt449QeMz56A4WHca7CP/hnuxeh3oY7EZCV6wVjc+UJXxmRL9eJas2x21 +0o3J7/Z9q75yu9m20oCtcU4ZhhDcfdAKF5HHnkFHXk318s5Xvi388HWZqZ7Yksc8LgJxF JS7B44QGyxsj265rRFRyoMaR+kASRRNa92IIXLtJPh/QoWVR3zyvZE4Zzw+TBvhDlxvUHD 657kjy1c+GcS0Klh5laI+sqihj8z1qiQfonvlnU/E+b2Zm8vS8enbKhqTRcuxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663683525; a=rsa-sha256; cv=none; b=iKCFqn4HAkTgl0tZ+Ce1NrbUN6Ry31zbEoTVA3CtgNRu6geTBkHY+2tJu47Y0GBlRUASSZ 7mPhObMZ1RtJIt3i0K7Yxf9qzhAWXpW5xwq9OApY6YKsQrHSOLRFQzeDuzm435QnOYZZ6l 9cdTgfDl7a2broUs2NMiHIYzFnFmpIqaad53UCUzahe3EAU9XDZyYq5QO0vE6n4ZXi5rlg dbM8ZLwzbIwE9JSQuxIwFCdwcvhjHbaEgWbuV/B+Np8qhCwFVElPjKqGpOPlBPD4nohQbs toP2b/RkZW19RacmiVczHlF3QyMrgYuwhs6uGPTiwkI6BBeO2KYcSsCxMG2GVg== 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 the assignee for the bug.=