News for hackers. Stuff that matters.
Re:Picking Glibc Versions at Runtime by ChocolateGod on Tuesday September 24, 2024 @06:22AM (#41635035)
> In particular, if you need to replace not just glibc, but also a bunch of system libraries (pretty common case for complex apps), it's often easier to unshare(CLONE_NEWNS), followed by bind-mounting over new /lib64 and /usr/lib to override specific directories. This is much lighter than full-on containers

This is basically what Flatpak does.

Re:Picking Glibc Versions at Runtime by synergy20 on Tuesday September 24, 2024 @09:02AM (#41636037)
is flatpak mainly designed for desktop gui? wish there are cli tools to help to develop non gui program with unshare
Re:Picking Glibc Versions at Runtime by ChocolateGod on Tuesday September 24, 2024 @09:48AM (#41636417)
Yeh, exclusively.

For non-gui the closest thing is Docker/Podman.

Re:Picking Glibc Versions at Runtime by voidbert on Tuesday September 24, 2024 @01:23PM (#41638832)
You can use bubblewrap, the sandbox Flatpak uses. However, the command lines will get pretty long.