Re: [RFC PATCH v19 0/5] Script execution control (was O_MAYEXEC)

From: Mickaël Salaün
Date: Thu Jul 18 2024 - 12:21:32 EST


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.