-
Notifications
You must be signed in to change notification settings - Fork 400
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
Ensure Ricochet works on SubgraphOS in oz without special PaX flags #389
Comments
I've updated the oz profile:
It doesn't need a watchdog and really, we could remove audio - but someone might want a beep. I've removed the microphone from my laptop physically, so I don't care about exposing audio as an allowed permission. |
Here is my default SubgraphOS environment where I didn't need paxflags to run
One of the above environment variables (or absence) may change the default behavior of QT - which in turn enables some (QML? PCRE? Another?) JIT along the way. This causes PaX to kill ricochet inside of OZ but not when running in an environment lacking one of those flags. Any ideas? |
As a general update - oz also blocks incoming connections (from system Tor's configured HS) - so we'll need to implement a unix socket listener and pass that file into oz. That is one major difference between inside and outside of oz... |
The PaX exception is caused by rwx allocations in the software opengl implementation. When not running under oz, we're using hardware acceleration and don't need it. From a quick search, |
#367 is the right answer here. As long as the qtquick 2d renderer plugin is available, it should be used and avoid any OpenGL issues at all. Most likely it doesn't exist on subgraph now, but it's hopefully not hard to add. If that isn't possible, subgraph should be setting Nothing for Ricochet to do here, seems like we've taken care of the rwx problems on this end. |
Once we close #387 we'll want to improve how ricochet works inside of OZ. Strangely, we do not need special flags for PaX when running ricochet outside of OZ - I suspect this is due to the environment where ricochet runs.
A basic setup of ricochet from git tip should build on SubgraphOS and run without issues. To run it within oz, we'll need a basic profile:
Then we'll need to enable it:
Try running ricochet - does it work for you? If so, you're a winner and we're done. I trust it will run for a moment and then you'll see PaX exceptions in
dmesg
. If so, you'll need to set some exceptions:In an ideal world, we'll spot the difference between running inside and outside of oz. That will allow us to never need special pax exceptions.
The text was updated successfully, but these errors were encountered: