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

Remove --no-sandbox as soon as possible #59

Closed
Toniob opened this issue Aug 6, 2019 · 11 comments
Closed

Remove --no-sandbox as soon as possible #59

Toniob opened this issue Aug 6, 2019 · 11 comments
Labels

Comments

@Toniob
Copy link

Toniob commented Aug 6, 2019

I've just updated riot via flathub this morning. I can't start it anymore since :

[3:0806/091941.599709:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /app/Riot/chrome-sandbox is owned by root and has mode 4755.

@SISheogorath
Copy link
Collaborator

Seems like we introduced this with the last update. I'll do a roll back and see what Riot upstream has to say about that.

@SISheogorath
Copy link
Collaborator

Done by 91bfc5a

@viccuad
Copy link

viccuad commented Aug 6, 2019

I was unfortunate to update to the new version, so I can't use it anymore.
I cannot uninstall and install again because I would lose the riot keys, and the verified keys of people I talk with.

Is there any workaround for an already installed 1.3.2?

Will I get an automatic update if you re-release 1.3.2, meanwhile I have it already installed?

Also, thanks for looking into this, and reacting so fast.

@SISheogorath
Copy link
Collaborator

@viccuad You can run sudo flatpak --system update im.riot.Riot --commit=8304f2966327bda5864945b19459050f046e75c98ab67cd6a730e9022c80a3eb to make a rollback to the last release of Riot.

But yes, you will get an update as soon as flathub is rolling it (might takes until tomorrow). No matter if the Riot version number changed or not :)

@SISheogorath
Copy link
Collaborator

Seems like we are not the only ones: flatpak/flatpak#3044

@SISheogorath
Copy link
Collaborator

In the long term perspective this will be hopefully solved, in the mean time, I would still like to be able to ship new Riot Versions. Any objections about running Riot in Flatpak with --no-sandbox?

@gasinvein
Copy link
Member

@SISheogorath Well, --no-sandbox is clearly decreasing security. But is would make Riot as insecure as it was before electron 5. Maybe we should somehow harden flatpak permissions to compensate this.
Also I've heard @refi64 is working on a good solution for this.

@SISheogorath
Copy link
Collaborator

@gasinvein Definitely, and I look forward to that, but AFAIK it's not even in a PR yet and until this gets merged and reviewed and Riot updates electron, there will be some time in-between.

So I guess we need something until those changes made it into the upstream project.

@SISheogorath
Copy link
Collaborator

I think while we wait for the flatpak general solution to this topic, we should deploy the --no-sandbox parameter. Right now, from a sandbox perspective we can't remote that much more. We only mount xdg-download and the rest of the provided parameters are required for features to work properly.

  • x11 to display anything
  • devices=all to allow video conferences
  • notifications and keyring to let chromium/electron store secrets and send notifications/display tray icons
  • pulseaudio for sound

@SISheogorath SISheogorath changed the title Can't start riot anymore Remove --no-sandbox as soon as possible Sep 20, 2019
@Erick555
Copy link
Contributor

Erick555 commented Mar 2, 2020

@SISheogorath this was fixed by #88

@SISheogorath
Copy link
Collaborator

Great, @Erick555!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants