CrewLink
CrewLink copied to clipboard
Can you launch Among Us to prevent ptrace security getting in the way?
In the README you state that CrewLink does not start Among Us which forces us to disable ptrace security.
So the obvious question would be: Can you actually make CrewLink start Among Us? Or worst case start Steam from CrewLink so Among Us is a child of CrewLink.
Not the Author, but I tried doing this on my branch, I couldn't launch it with steam, the steam command to launch it will be a steam://.... which seems to be disowning the process it launches, it might be possible if we try to use the proton launcher instead but i didn't try that.
But you could launch steam from CrewLink and then Among Us from steam?
https://github.com/ghaith/CrewLink I pushed that here, didn't want to push it to the current PR (#5) since it's not direcly related but is based on it anyway, i'll do a new PR once the original is accepted. You still need to copy the uiohook from your system on that branch to run it.
The differences between my master branch and zbank's is that I started from upstream directly and didn't update the readme yet.
The easiest way would be to use Steam Launch Options.
Steam Launch Options would be set to /path/to/crewlink -- %command%
(Steam expands %command%
to the original command used to launch the game) and then crewlink would just spawn a subprocess specified by the args after the --
.
I went digging through my system files at /etc/sysctl.d/10-ptrace.conf
and found a reference to a ptrace override:
# For applications launching crash handlers that need PTRACE, exceptions can
# be registered by the debugee by declaring in the segfault handler
# specifically which process will be using PTRACE on the debugee:
# prctl(PR_SET_PTRACER, debugger_pid, 0, 0, 0);
I have yet to figure out how to use it. Looking at documentation at https://linux.die.net/man/2/prctl, I can't tell if it's a launch option or something that needs to be specified at compile time.
I went digging through my system files at
/etc/sysctl.d/10-ptrace.conf
and found a reference to a ptrace override:# For applications launching crash handlers that need PTRACE, exceptions can # be registered by the debugee by declaring in the segfault handler # specifically which process will be using PTRACE on the debugee: # prctl(PR_SET_PTRACER, debugger_pid, 0, 0, 0);
I have yet to figure out how to use it. Looking at documentation at https://linux.die.net/man/2/prctl, I can't tell if it's a launch option or something that needs to be specified at compile time.
Wine would have to call that, not crewlink. That's probably a no go.
Another way around the problem would be to setcap CAP_SYS_PTRACE
the electron/crewlink binaries. That has side effects like ignoring LD_LIBRARY_PATH that I'm not sure electron would be happy with. The ideal way is just to launch amongus.
Is this project dead? I may end up looking into running the original from the same prefix or something.
I think there's another fork of a more recent version of CrewLink
Where should I look? There are too many forks to search individually, and hardly any say they support Linux. Furthermore, how do I tell if it will be compatible with the root branch?
Where should I look? There are too many forks to search individually, and hardly any say they support Linux. Furthermore, how do I tell if it will be compatible with the root branch?
https://github.com/TheGreatMcPain/CrewLink
Thanks.