@lkundrak @vegard getting rid of /dev was at least dead easy:
+# Debootstrap populates `/dev/{null,zero,full,random,urandom,tty}`, meaning that
+# mounting devtmpfs to `/dev` is not required.
sudo unshare \
--mount \
--uts \
--root "$ROOTFS" \
sh -c "
- mkdir -p /proc
- mkdir -p /sys
- mkdir -p /dev
- mount -t sysfs /sys /sys
mount -t proc /proc /proc
- mount -t devtmpfs /dev /dev
mount -t devpts /dev /dev/pts
hostname $MACHINE
# ...
I think I can iterate from this :-) E.g, proc-mount can be probably (I’d guess) made unprivileged with “–fork –pid” i.e., creating PID namespace.
Here’s an example:
sudo unshare \
--mount \
--uts \
--root "$ROOTFS" \
sh -c "
mkdir -p /proc
mkdir -p /sys
mkdir -p /dev
mount -t sysfs /sys /sys
mount -t proc /proc /proc
mount -t devtmpfs /dev /dev
mount -t devpts /dev /dev/pts
hostname $MACHINE
su -c '$CMDLINE' $USER
"
If I took sudo away, the mounts would fail on permission error, even with --map-root-user
.
It’s even expected outcome, because if such tweak would work, it would be a privilege escalation i.e., a security vulnerability.
Still wondering what is the magic dust Podman uses here :-)
Check out our own Ryan Goodfellow’s fantastic InfoQ talk on how we're innovating rack-scale computing with P4! From programmable fabrics to debugging tools, Ry shares how to turn theory into production-ready systems. https://www.infoq.com/presentations/tofino-2/
curl bans “AI” security reports as Zuckberg claims we’ll all have more “AI” friends than real ones
Daniel Stenberg, creator and maintainer of curl, has had enough of the neverending torrent of "AI"-generated security reports the curl project has to deal with.
That's it. I've had it. I'm putting my foot down on this craziness.
(Almost) the last embarrasing GNOME website revamped! Big shoutout to @felipeborges
Looking for a new laptop that runs Linux out of the box? Get a ThinkPad!
Lenovo has been offering ThinkPads with Fedora and @ubuntu preinstalled for a few years now. The more people who shop for these devices, the more attention they can give to this business!
Here's an article of someone discovering Lenovo's Linux program: https://news.itsfoss.com/lenovo-cuts-windows-tax/
In my opinion the title screen for the Mac release of Wizardry was very, very good.