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 275C4C3DA63 for ; Thu, 18 Jul 2024 16:21:43 +0000 (UTC) Received: (qmail 30586 invoked by uid 550); 18 Jul 2024 16:21:23 -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 30558 invoked from network); 18 Jul 2024 16:21:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1721319674; bh=M+3Yoh5cYMc8D5M9gZ15CD0RTPe/f2BBnjb9c6H9rvU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cap6pZEiKXn1RU9fTx+Yo6v0BUHSTWCJS5tpiaoWBPry/FJev2m5rLi6mXU9q6QuC z87bUnjBE1Z9w9ADOsYdHd49b1XVKauOW8Dmvr09VCdjJsgFrPZvIJmgG9EVv7P4CI +3PWxO7BC6lNsOlLPGHoqi9wakqGFqMRQy84F+vg= Date: Thu, 18 Jul 2024 18:21:11 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Roberto Sassu Cc: James Bottomley , Mimi Zohar , Al Viro , Christian Brauner , Kees Cook , 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 , Nicolas Bouchinet , Scott Shell , Shuah Khan , Stephen Rothwell , Steve Dower , Steve Grubb , Thibaut Sautereau , Vincent Strubel , Xiaoming Ni , Yin Fengwei , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Elliott Hughes Subject: Re: [RFC PATCH v19 0/5] Script execution control (was O_MAYEXEC) Message-ID: <20240718.ZuXiejae2ohy@digikod.net> References: <20240704190137.696169-1-mic@digikod.net> <55b4f6291e8d83d420c7d08f4233b3d304ce683d.camel@linux.ibm.com> <20240709.AhJ7oTh1biej@digikod.net> <9e3df65c2bf060b5833558e9f8d82dcd2fe9325a.camel@huaweicloud.com> <20240716.leeV4ooveinu@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240716.leeV4ooveinu@digikod.net> X-Infomaniak-Routing: alpha On Tue, Jul 16, 2024 at 07:31:45PM +0200, Mickaël Salaün wrote: > On Tue, Jul 16, 2024 at 12:12:49PM -0400, James Bottomley wrote: > > On Tue, 2024-07-16 at 17:57 +0200, Roberto Sassu wrote: > > > But the Clip OS 4 patch does not cover the redirection case: > > > > > > # ./bash < /root/test.sh > > > Hello World > > > > > > Do you have a more recent patch for that? > > Bash was only partially restricted for CLIP OS because it was used for > administrative tasks (interactive shell). > > Python was also restricted for user commands though: > https://github.com/clipos-archive/clipos4_portage-overlay/blob/master/dev-lang/python/files/python-2.7.9-clip-mayexec.patch > > Steve and Christian could help with a better Python implementation. I'll include a toy interpreter in the next patch series. That should help for experiments.