Summary: | net-im/discord-bin-0.0.10: Discord fails to start due to missing SUID bit on /opt/discord/chrome-sandbox | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | seraph <seraph> |
Component: | Current packages | Assignee: | Johannes Huber (RETIRED) <johu> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | andrewammerlaan, chris, jstein, redblade7 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
seraph@xs4all.nl
2020-02-29 13:31:52 UTC
Works fine here without this SUID bit. Do you have CAP_SYS_USER_NS on in your kernel ? From ⁽¹⁾ : > CONFIG_USER_NS=y enables the user namespaces feature, but they're still > restricted to privileged users by default. This suggests sysctl > kernel.unprivileged_userns_clone=1 1. https://github.com/electron/electron/issues/17972#issuecomment-486927073 Had this error. Enabled CONFIG_USER_NS, rebooted. Discord runs now. I will try this solution as soon as I have some spare time to recompile my kernel. If this is the solution though, there should be a check and warning about this. It's also new to this version, all previous versions worked fine. For what it's worth, Chrome browser says it needs this kernel option enabled, but it runs just fine without it, discord just straight up says "no". Encountered this problem in the 0.0.11 ebuild as well, fixed by enabling the kernel config option as suggested above. Might I suggest adding the variable: CONFIG_CHECK="CONFIG_USER_NS" from the linux-info eclass to the ebuild. That should alert users if the config option is missing from the kernel configuration file. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47f6a0a6e1e53b0a9dae028cb65a90ae78168e85 commit 47f6a0a6e1e53b0a9dae028cb65a90ae78168e85 Author: Sam James <sam@gentoo.org> AuthorDate: 2020-09-12 01:05:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-09-12 01:05:36 +0000 net-im/discord-bin: add CONFIG_USER_NS check Closes: https://bugs.gentoo.org/711094 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James <sam@gentoo.org> net-im/discord-bin/discord-bin-0.0.12.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) |