-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Linux] Mumble should hint towards the need of ptrace_scope for positional audio #5711
Comments
Plugins could just use the Mumble API to inform the user about the problem themselves. Just use the |
But that would end up in a mess, if we would have to duplicate the same |
There's a problem: when the game runs through firejail, you still cannot access the memory even if See #4506. |
What itches me a bit about doing this in Mumble itself is that this would shift work that should really be the plugin's responsibility (after all it is the only authority to actually know whether this is required) to Mumble. Remember that the with the new plugin framework, not all plugins are positional data plugins and not even all of those require to peek into a process's memory. Admittedly though, the vast majority of plugins that currently exist are positional data ones that do in fact require memory peeking. But still, this feels like it was overstepping a responsibility separation... I guess we could just create a base class for positional data plugins that contains the logic to handle the check and the potential notification of the user and then simply let every other positional data plugin inherit from that. This way we'd still only have to maintain a single implementation but still the task is performed on the plugin's side. 🤔 |
Good idea, something like Alternatively, we can just implement the check into |
Context
Right now, on pretty much all reasonable distributions, the ptrace_scope is set to
1 ("restricted ptrace")
, which means that positional audio plugins that require peeking into the game's memory pages, can't do that (unless theoretically mumble is a parent process of the game's process, but that is never the case).Users need to set the
ptrace_scope
to0 ("classic ptrace permissions")
, so that those plugins can work. This can easily be done with the following command:Description
It is bad UX for Mumble to just expect that the user knows about
ptrace_scope
. The user might not know at all aboutptrace
and may not understand why positional audio is not working.There are a few solutions possible:
ptrace_scope
Mumble component
Client
OS-specific?
Yes, Linux
My opinion
I am in favor of the second solution, that is plugins should return a special permission error and Mumble could then show a warning.
The text was updated successfully, but these errors were encountered: