Skip to content
This repository was archived by the owner on Nov 8, 2025. It is now read-only.
This repository was archived by the owner on Nov 8, 2025. It is now read-only.

Can the executable not load code from /tmp? #42

@bnjbvr

Description

@bnjbvr

I'm using a system where /tmp is mounted with the noexec flag, meaning it's illegal to run code for a file in /tmp.

Whenever I try to start Saturn, I get the following error:

error: Unhandled Exception: Error: /tmp/.org.chromium.Chromium.BbmfTe: failed to map segment from shared object
Stack: Error: /tmp/.org.chromium.Chromium.BbmfTe: failed to map segment from shared object
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
    at Module._extensions..node (node:internal/modules/cjs/loader:1203:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:5:2039)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at bindings (/home/work/code/tmp/saturn-1.1.3/resources/app.asar/node_modules/bindings/bindings.js:112:48)
    at Object.<anonymous> (/home/work/code/tmp/saturn-1.1.3/resources/app.asar/node_modules/nodeezcryptor/decryptor.js:1:38)

which really looks like it's trying to load some code (shared object) from /tmp. When I re-mount /tmp with exec rights, I can start it fine.

Is there a way to avoid doing this? Or allow defining a custom temporary directory, in place of /tmp? (even as a global variable would be fine)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions