mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2605] Slack now performs log in only via browser #1652
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1652
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @viq on GitHub (Mar 18, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2605
Slack just changed how their application works, and you can log in to Slack only via browser, either requiring opening browser from Slack or opening Slack from browser.
I don't know yet what would be a good way to approach this.
@chiraag-nataraj commented on GitHub (May 20, 2019):
Do they provide a URL to click? Or is it a "Click this button" kind of thing?
@viq commented on GitHub (May 25, 2019):
It's a click this button that does xdg-open, you can't right click to get
URL
On Mon, 20 May 2019, 17:31 ಚಿರಾಗ್ ನಟರಾಜ್, notifications@github.com wrote:
@ghost commented on GitHub (May 25, 2019):
@viq The slack profile uses
private-bin slack,locale.Have you tried adding xdg-open to private-bin yet? Either in a slack.local file or from the command-line via --private-bin=xdg-open.
@chiraag-nataraj commented on GitHub (May 28, 2019):
^ I would second @glitsj16. I suspect adding
xdg-opento theprivate-bininvocation should help (although you probably need to have your browser already running, since starting the browser inside theslacksandbox would require loosening it a lot). @viq, can you try and report back? I would, but I exclusively use the webapp.@chiraag-nataraj commented on GitHub (Jun 4, 2019):
@viq Did @glitsj16's suggestion work?
@wellsaid commented on GitHub (Jun 4, 2019):
I can confirm the same problem on my system.
I have tried @glitsj16 suggestion by adding xdg-open to /etc/firejail/slack.profile
But it didn't solved the problem for me
@ghost commented on GitHub (Jun 5, 2019):
After some experimenting I could open slack's login in an
already running firefoxby adding the below in /etc/firejail/slack.local (or ~/.config/firejail/slack.local). Making itstarta new browser session would require crippling the profile to the point ofinsecurity, which is obviously advised against.As one can deduce from the added comments, this will take some adjusting when your default web browser is not firefox and you happen to run another desktop environment. Make sure you both noblacklist/whitelist needed
configuration pathsfor your default browser and replace 'firefox' with your appropriatebrowser commandin theprivate-binoption.If one peeks inside xdg-open, you'll notice it relies on quite a wide array of commands to find the default handler for opening URL's. This makes it rather complex to create a well-balanced firejail profile that works under all possible environments for an application that relies on another application for login purposes. IMHO this goes against the grain of sandboxing by default, be it via firejail or via similar tools. It would make sense (at least it does for me) if we dropped
private-binhere to avoid this fine mess.@chiraag-nataraj commented on GitHub (Jun 5, 2019):
Honestly, it feels better to run it unsandboxed just for initial login if it means we can tighten the sandbox for normal usage.