Using Landlock to Sandbox GNU Make
justine.lol
Using Landlock to Sandbox GNU Make
1–10 of 80 posts
Re: Using Landlock to Sandbox GNU Make
#2Re: Using Landlock to Sandbox GNU Make
#3Re: Using Landlock to Sandbox GNU Make
#4I wonder why there was no mention of simply contributing these 200 lines to GNU make proper instead of forking. Super cool though.
Also please consider that GNU Make supports so many ancient platforms, like DOS, QDOS, Amiga, Windows 3.1. When I forked GNU Make, the first thing I did was delete all that support for ancient defunct platforms to give me enough room to think about how to approach implementing this feature. I don't think I could have done this if I had to wade through all that code from the start. I'm doing this work just for fun and to help out, and coding is only fun when the code is clean.
Re: Using Landlock to Sandbox GNU Make
#5Until something like this works on Windows, it won't get wide adoption. And it is possible to do something like this on Windows.
And personally, I would want to avoid the use of GNU make.
Nevertheless, this is a step forward for those who have to use GNU make.
Re: Using Landlock to Sandbox GNU Make
#6> Landlock Make can build code five times faster than Bazel, while offering the same advantages in terms of safety. In other words, you get all the benefits of a big corporation build system, in a tiny lightweight binary that any indie developer can love.
In terms of safety, maybe almost (bazel can check if the source files changed during the build, this (afaict) can not). But bazel also provides a lot more (caching, remote builds, ...). So, while cool, read more on it and evaluate it in depth before deciding to replace bazel with this.
Re: Using Landlock to Sandbox GNU Make
#7Not really sure why that even bothers me.
Re: Using Landlock to Sandbox GNU Make
#8This is definitely interesting and cool, however: > Landlock Make can build code five times faster than Bazel, while offering the same advantages in terms of safety. In other words, you get all the benefits of a big corporation build system, in a tiny lightweight binary that any indie developer can love. In terms of safety, maybe almost (bazel can check if the source files changed during the build, this (afaict) can…
What I'd recommend for anyone really, is to just do what Google did. For the first six years of Google's lifecycle, they got along just fine with GNU Make. Then they switched to the huge scalable thing once they actually reached that inflection point. I'm obviously not there since I'm just a scrappy open source coder. So for me I'm quite happy to be working with GNU Make and I can foresee myself getting many additional years of use out of it.
Re: Using Landlock to Sandbox GNU Make
#9Re: Using Landlock to Sandbox GNU Make
#10I wonder why there was no mention of simply contributing these 200 lines to GNU make proper instead of forking. Super cool though.
That 200 lines doesn't include our pledge() implementation, which Make assumes is provided by the C library. Right now only Cosmopolitan Libc and OpenBSD have an unveil() implementation. It would take some thought to decide what the best approach would be for incorporating something like that into GNU Make. So I'm waiting on more feedback from the community and the GNU developers. Because upstreaming is totally somet…
I wish I could upvote this more than one time.