-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slack does not work with kernelPackages set to linuxPackages_latest_hardened #91973
Comments
Are you using the hardened profile as well as the hardened kernel? This looks related to my issue #89599. |
What is hardened profile? I don't know about that one, but I am using the hardened kernel. I also see the same issue with Google Chrome, I think you are correct that it is the same kind of issue. |
Ah, just happened to read the documentation and found what you mean with the profile, so my answer is no, I do not. For those curious: |
Of note, this also happens on a Debian OS using nix for package management to install Slack. |
I marked this as stale due to inactivity. → More info |
If this also occurs on a Debian host it seems to me the problem is not related to the hardened kernel provided by NixPkgs. I suggest closing the issue or at least renaming it. |
Closing this for now. Nix strips setuid bits from any binary installed to the Store, so you need to patch the software to use a suid stub installed outside the Store (setuid wrappers in NixOS, for example). I believe chromium will make use of unprivileged user namespaces instead of setuid stubs, if possible. It may be that your host disables unprivileged user namespaces and that the software falls back to suid stub, which then fails because it is located in the Store (and hence lacks the requisite bits). |
My fix for #89599 might help Slack too, though I don't use that or any other Electron application. |
Describe the bug
If
boot.kernelPackages
is set topkgs.linuxPackages_latest_hardened
,slack
will refuse to launch due to the following error:To Reproduce
Steps to reproduce the behavior:
boot.kernelPackages = pkgs.linuxPackages_latest_hardened
Expected behavior
Slack should launch successfully.
Additional context
Add any other context about the problem here.
Notify maintainers
@NeQuissimus
Metadata
"x86_64-linux"
Linux 5.6.19-hardened, NixOS, 20.09.20200630.b3251e0 (Nightingale)
yes
yes
nix-env (Nix) 2.4pre20200622_334e26b
"nixos-20.03.1950.48723f48ab9"
""
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: