LOG: Arch Linux Conftest Failed on nvidia-dkms and No Sandbox issues on linux-hardened
gcc 15.x^ make things weird for compiling nvidia-dkms. You at least must disable the conftest by making a patch for it or downgrade gcc to at least 14.2. The fix was simple, just install the downgrade package by doing so:
> sudo pacman -S downgrade
> sudo downgrade gcc gcc-libs
# match both gcc and gcc-libs version
# since they both depend on each other
# then do recompile nvidia modules
And then one issues where you cannot launch electron apps “[Bug]: The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now.” This was unclear, because I was really uninformed that linux-hardened was limiting userspace, harden security by limiting stuff. I thought it was the same like lts version. So yeah, basically the fix was to lift the restriction for apps to use sandboxes:
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
But it will bring even more security issues, if you even care about that. So the solution was switching to different kernel that is not “hardened”.