-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hello,
little issue I noticed, after Updating to 1.3.0, TriOS doesn't start any more on my System (openSUSE Tumbleweed - Linux) with this error:
./TriOS: error while loading shared libraries: libsentry.so: cannot enable executable stack as shared object requires: Permission denied
Turns out, the Stack for libsentry.so requires exec Permissions for this latest release (as seen with readelf). I've marked the line in this screenshot:
As you can see, the Permission bits for the Stack are set to RWE.
After using execstack -c on the lib to clear the exec Permission, the Execute Bit is gone:
And TriOS launches without any Issues.
Background: Execution permissions on the Stack is a Security issue, which is why modern Linux distributions don't allow you to run Executables or Libraries with this bit set.
The same issue also applies to the crashpad_handler, but since this apparently isn't a required import, TriOS launches without it:
So it might probably be a good idea to ship Libraries without the exec Permission on the Stack. I checked all other Executables and Libraries for TriOS, and only libsentry and crashpad_handler have this issue.
Metadata
Metadata
Assignees
Labels
Projects
Status