lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251230202324.GC4062669@ax162>
Date: Tue, 30 Dec 2025 13:23:24 -0700
From: Nathan Chancellor <nathan@...nel.org>
To: Guillaume Tucker <gtucker@...cker.io>
Cc: Miguel Ojeda <ojeda@...nel.org>, David Gow <davidgow@...gle.com>,
	Onur Özkan <work@...rozkan.dev>,
	Arnd Bergmann <arnd@...db.de>, linux-kernel@...r.kernel.org,
	rust-for-linux@...r.kernel.org, linux-kbuild@...r.kernel.org,
	automated-testing@...ts.yoctoproject.org, workflows@...r.kernel.org,
	llvm@...ts.linux.dev
Subject: Re: [PATCH v2 1/2] scripts: add tool to run containerized builds

On Sun, Dec 21, 2025 at 09:09:17PM +0100, Guillaume Tucker wrote:
> On 19/12/2025 10:27 pm, Nathan Chancellor wrote:
> > On Thu, Dec 18, 2025 at 01:49:52PM +0100, Guillaume Tucker wrote:
> > ...
> > > +    def __init__(self, args, logger):
> > Adding something like
> > 
> >      self._args = [
> >          '--rm',
> >          '--tty',
> >          '--volume', f'{os.getcwd()}:/src',
> >          '--workdir', '/src',
> >      ]
> > 
> > here then adding an __init__() in the subclasses to append the runtime
> > specific arguments would allow _do_run() to be moved into
> > ContainerRuntime(). Otherwise, this looks pretty good and extensible.
> 
> Yes, I left these very similar parts as-is on purpose to make it very
> clear what the command line arguments are for each container runtime.
> It's a good idea to refactor this though as you mention, and I'll add
> a debug log message to print the command line instead.
> 
> I'm also anticipating that other runtimes will be quite different,
> Podman and Docker just so happen to have many options in common.
> Things like runc or containerd are very different beasts so I don't
> want to over-generalise.  But this is straightforward enough for now.

Yeah, I had figured that might have been the reason for keeping these
things separate, which does make sense. At the same time, I would rather
keep things simple and shared now since we can with no other runtimes
supported. If we want to add new runtimes in the future, undoing this
should be simple enough and make it obvious to see why the separation is
happening.

> So I'll rework this a bit in a v3.

Thanks a lot!

Cheers,
Nathan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ