From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-8fa8.mail.infomaniak.ch (smtp-8fa8.mail.infomaniak.ch [83.166.143.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09AD3143C60 for ; Thu, 18 Jul 2024 16:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.166.143.168 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721319685; cv=none; b=CaVgzrorIiWk4Ke+uwUOdK7z/UJ8gXpNlD9ZNlA957xIJ0HImdR2dJj9IfrnvjkQ/GetQ2WfGOgIMryv836j1NswncSlr0hAY7MbWzwtE3NG//AMR6GsETgAA8znM/uyme+o0v1MxkrCKH+gdc41Bdb4U1dvbNM9+meGtNlLFkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721319685; c=relaxed/simple; bh=zg/TB+s/swO2+QzhdteQScL+2ZmFzIH3ab1lFl01ato=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Pyy/Uv9Yyi3bKls0TjKePLl7ORAYzUT3O7OnSOjsedqcY+WZzhjwiFJelqP5wcIX74JnBomwKhcGAdcoPIeqBeTZs7HMjcxBrifkZwtboQJTSfjSOguKSoUWJPPUfRHlmd2B0+w15DkadOKF18n9IcMR68W3AlqngDj3LWeWMhM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=cap6pZEi; arc=none smtp.client-ip=83.166.143.168 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="cap6pZEi" Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4WPyjQ6WBbzVjM; Thu, 18 Jul 2024 18:21:14 +0200 (CEST) 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= Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4WPyjQ0JnkzBbT; Thu, 18 Jul 2024 18:21:14 +0200 (CEST) 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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.