Skip to content
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

set filemode for chrome-sandbox executable during package #254

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

shiftkey
Copy link
Owner

@shiftkey shiftkey commented Apr 14, 2020

A partial fix for #222, but as we've uncovered in that issue the full fix requires:

  • sudo sysctl kernel.unprivileged_userns_clone=1 to enable unprivileged user namespaces (specifically disabled in Debian and other distros), or
  • passing --no-sandbox when launching the app (which effectively disables some of Chromium's security features)

This change will be applied for both deb and rpm packages, but I think it's low risk. Will verify in a test at some stage.

  • test RPM on Fedora and confirm defaults work as expected

@jfgordon2
Copy link

If you want to compare your solution to electron's builder, check out updateSandboxHelperPermissions

@shiftkey
Copy link
Owner Author

If you want to compare your solution to electron's builder, check out updateSandboxHelperPermissions

@jfgordon2 yep, that's the one I used for inspiration for this change

@shiftkey shiftkey marked this pull request as ready for review April 16, 2020 16:42
@shiftkey
Copy link
Owner Author

Looks like electron-builder was already setting this for the current RPM release, so I think this is good to merge.

@shiftkey shiftkey merged commit afaf073 into linux Apr 16, 2020
@shiftkey shiftkey deleted the set-file-mode-for-sandbox branch April 16, 2020 16:45
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.

2 participants