From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-8fae.mail.infomaniak.ch (smtp-8fae.mail.infomaniak.ch [83.166.143.174]) (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 7B18314375A for ; Thu, 18 Jul 2024 16:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.166.143.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721319679; cv=none; b=qfbE8+mLZUod2xCMKunrc0V15DM1wzaDOYJlEJNTxQKwbuw5skVHjNqcJ4XBJ70jPQzLOasgYmA7kS1FexsnYijkYTm/yIa12MaXLXrMq5KPs2pfgsbhG77Sdq4HSRW3hZMF87ga4GieZ/sM+6To6/HP3PmJGS3yNrBEAcUzmdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721319679; 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=gE2Sq8qup65v5uxDGtWig/33zYDipTVBtRi//o8f1+Jn+I7Lv10sFHRLWDC7qzzwPLMjAQdgLkTdIWRuSq8yi0BweeANnJDudsWoy5IVEXQNy3ee7fqb1xOh58oi5bDtFQXCQF3jH3J6wukmS7zcs/w9no+aWBMZSZ1mO1zQxTw= 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.174 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 4WPyjQ6RzNzVjL; 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-api@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.