Skip to content

Fix/linux sandbox permissions#29

Merged
matt1398 merged 2 commits intodevfrom
fix/linux-sandbox-permissions
Feb 19, 2026
Merged

Fix/linux sandbox permissions#29
matt1398 merged 2 commits intodevfrom
fix/linux-sandbox-permissions

Conversation

@matt1398
Copy link
Owner

No description provided.

- Updated package.json to include an afterInstall script that adjusts permissions for the chrome-sandbox on Linux.
- Added new afterInstall.sh script to ensure proper ownership and permissions for the sandbox file, enhancing security and functionality.
- Introduced a new "deb" section in package.json to specify post-installation scripts for Debian packages.
- Enhanced the package configuration for better support of Linux distributions.
@matt1398 matt1398 merged commit 7574d0d into dev Feb 19, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 736408e437

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# Fix chrome-sandbox permissions for SUID sandbox on Linux
# See: https://github.com/electron/electron/issues/17972

SANDBOX_PATH="/opt/${productFilename}/chrome-sandbox"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use a defined install path in afterInstall script

resources/afterInstall.sh builds SANDBOX_PATH from ${productFilename}, but that shell variable is never defined in the script and is not a standard dpkg maintainer-script environment variable, so on install it expands to /opt//chrome-sandbox. In Debian installs this makes the -f check fail and skips chown/chmod, leaving chrome-sandbox permissions unchanged and the intended Linux sandbox fix ineffective.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant