From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by smtp.lore.kernel.org (Postfix) with SMTP id 80429C2BD09 for ; Sat, 6 Jul 2024 12:46:23 +0000 (UTC) Received: (qmail 30633 invoked by uid 550); 6 Jul 2024 12:46:09 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Received: (qmail 22406 invoked from network); 5 Jul 2024 22:22:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720218138; bh=ENklnaGwg7gbVoxwnNN9rxnZRVBjkNfp1WlAFtAN+BM=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=R82FvL6Jp535Akx7VaoouTVyo3yZ0oGQHmxMZDd8FwAEPKBkSuOcmyJ9yJToPi+f9 UFyV7ns+xPCXVNrONu4MLRJ+og/16DTLW2nn8UuBAWcIEwgWrhiYRfAE6UC5NF6fEW o8fn/hy3aBZgrLuJfjcZ5BJ5x9sR4unHadsjfrLzWnrBoQTX8zJnvSwCMdcBdRTRiw TXzP3JsHskW93BnEtYnD2cSp6iB3K3VR7Tey1BRNlrZeD9ilvydyOdUhlnBqXbDmwD sGTt5wEsH8n14WZh+M/G2uVc89lBBgwL/9yNfZMoGxCPo4ph3osIyWc0IRFrCqyTX9 C3W/JiomT1p3A== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 06 Jul 2024 01:22:06 +0300 Message-Id: Subject: Re: [RFC PATCH v19 2/5] security: Add new SHOULD_EXEC_CHECK and SHOULD_EXEC_RESTRICT securebits From: "Jarkko Sakkinen" To: "Kees Cook" , =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= Cc: "Al Viro" , "Christian Brauner" , "Linus Torvalds" , "Paul Moore" , "Theodore Ts'o" , "Alejandro Colomar" , "Aleksa Sarai" , "Andrew Morton" , "Andy Lutomirski" , "Arnd Bergmann" , "Casey Schaufler" , "Christian Heimes" , "Dmitry Vyukov" , "Eric Biggers" , "Eric Chiang" , "Fan Wu" , "Florian Weimer" , "Geert Uytterhoeven" , "James Morris" , "Jan Kara" , "Jann Horn" , "Jeff Xu" , "Jonathan Corbet" , "Jordan R Abrahams" , "Lakshmi Ramasubramanian" , "Luca Boccassi" , "Luis Chamberlain" , "Madhavan T . Venkataraman" , "Matt Bobrowski" , "Matthew Garrett" , "Matthew Wilcox" , "Miklos Szeredi" , "Mimi Zohar" , "Nicolas Bouchinet" , "Scott Shell" , "Shuah Khan" , "Stephen Rothwell" , "Steve Dower" , "Steve Grubb" , "Thibaut Sautereau" , "Vincent Strubel" , "Xiaoming Ni" , "Yin Fengwei" , , , , , , X-Mailer: aerc 0.17.0 References: <20240704190137.696169-1-mic@digikod.net> <20240704190137.696169-3-mic@digikod.net> <202407041711.B7CD16B2@keescook> <20240705.IeTheequ7Ooj@digikod.net> <202407051425.32AF9D2@keescook> In-Reply-To: <202407051425.32AF9D2@keescook> On Sat Jul 6, 2024 at 12:44 AM EEST, Kees Cook wrote: > > As explained in the UAPI comments, all parent processes need to be > > trusted. This meeans that their code is trusted, their seccomp filters > > are trusted, and that they are patched, if needed, to check file > > executability. > > But we have launchers that apply arbitrary seccomp policy, e.g. minijail > on Chrome OS, or even systemd on regular distros. In theory, this should > be handled via other ACLs. Or a regular web browser? AFAIK seccomp filtering was the tool to make secure browser tabs in the first place. BR, Jarkko