[GH-ISSUE #2300] Brave not saving settings #1533

Closed
opened 2026-05-05 08:11:38 -06:00 by gitea-mirror · 22 comments
Owner

Originally created by @qazip on GitHub (Dec 18, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2300

Brave has now a new browser (https://github.com/brave/brave-browser) and the firejail profile seems to not work well with this version.

When opening brave using the default firejail profile, we get the message: "You are using an unsupported command-line flag: --no-sandbox. Stability and security will suffer".

Also, while using firejail, the brave browser is not saving settings. Any idea how I could fix this?

Originally created by @qazip on GitHub (Dec 18, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2300 Brave has now a new browser (https://github.com/brave/brave-browser) and the firejail profile seems to not work well with this version. When opening brave using the default firejail profile, we get the message: "You are using an unsupported command-line flag: --no-sandbox. Stability and security will suffer". Also, while using firejail, the brave browser is not saving settings. Any idea how I could fix this?
gitea-mirror 2026-05-05 08:11:38 -06:00
Author
Owner

@rusty-snake commented on GitHub (Dec 18, 2018):

Works it with firejail --no-profile brave-browser?

<!-- gh-comment-id:448256282 --> @rusty-snake commented on GitHub (Dec 18, 2018): Works it with `firejail --no-profile brave-browser`?
Author
Owner

@qazip commented on GitHub (Dec 18, 2018):

firejail --noprofile brave seems to work..

<!-- gh-comment-id:448271750 --> @qazip commented on GitHub (Dec 18, 2018): `firejail --noprofile brave` seems to work..
Author
Owner

@Fred-Barclay commented on GitHub (Dec 18, 2018):

Hi @qazip
Please try this:

firejail --profile=/etc/firejail/brave.profile --whitelist=${HOME}/.config/BraveSoftware brave

Also, what version of firejail and Linux distro do you use?
Thanks!
Fred

<!-- gh-comment-id:448296046 --> @Fred-Barclay commented on GitHub (Dec 18, 2018): Hi @qazip Please try this: ``` firejail --profile=/etc/firejail/brave.profile --whitelist=${HOME}/.config/BraveSoftware brave ``` Also, what version of firejail and Linux distro do you use? Thanks! Fred
Author
Owner

@qazip commented on GitHub (Dec 18, 2018):

Hey @Fred-Barclay,

That doesn't seem to work. Settings are still not saved (and there's still that message in the browser).

firejail --version                                                                            
firejail version 0.9.56

Compile time support:
	- AppArmor support is disabled
	- AppImage support is enabled
	- chroot support is enabled
	- file and directory whitelisting support is enabled
	- file transfer support is enabled
	- networking support is enabled
	- overlayfs support is enabled
	- private-home support is enabled
	- seccomp-bpf support is enabled
	- user namespace support is enabled
	- X11 sandboxing support is enabled

Using antergos.

<!-- gh-comment-id:448357357 --> @qazip commented on GitHub (Dec 18, 2018): Hey @Fred-Barclay, That doesn't seem to work. Settings are still not saved (and there's still that message in the browser). ``` firejail --version firejail version 0.9.56 Compile time support: - AppArmor support is disabled - AppImage support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ``` Using antergos.
Author
Owner

@SkewedZeppelin commented on GitHub (Dec 18, 2018):

@qazip please try the following:

firejail --name=brave --private --profile=/etc/firejail/brave.profile brave

firejail --join=brave bash
$ tree # paste the output of this

that should show what the new paths are

<!-- gh-comment-id:448358513 --> @SkewedZeppelin commented on GitHub (Dec 18, 2018): @qazip please try the following: ``` firejail --name=brave --private --profile=/etc/firejail/brave.profile brave firejail --join=brave bash $ tree # paste the output of this ``` that should show what the new paths are
Author
Owner

@qazip commented on GitHub (Dec 19, 2018):

@SkewedZeppelin, first command doesn't save settings. Second command just outputs this:

Error: cannot find sandbox brave

<!-- gh-comment-id:448508197 --> @qazip commented on GitHub (Dec 19, 2018): @SkewedZeppelin, first command doesn't save settings. Second command just outputs this: `Error: cannot find sandbox brave`
Author
Owner

@rusty-snake commented on GitHub (Dec 19, 2018):

@qazip Did you execute the second command before the first one ended?

<!-- gh-comment-id:448570784 --> @rusty-snake commented on GitHub (Dec 19, 2018): @qazip Did you execute the second command before the first one ended?
Author
Owner

@qazip commented on GitHub (Dec 19, 2018):

I did it both ways. Separetely, I get the error I mentioned. Doing it while the previous command is running gives:

Switching to pid 17376, the first child process inside the sandbox

<!-- gh-comment-id:448572835 --> @qazip commented on GitHub (Dec 19, 2018): I did it both ways. Separetely, I get the error I mentioned. Doing it while the previous command is running gives: `Switching to pid 17376, the first child process inside the sandbox`
Author
Owner

@rusty-snake commented on GitHub (Dec 19, 2018):

When you see this output, you are in a shell in the sandbox, type tree and copy the output to here.
Example:

Switching to pid 7144, the first child process inside the sandbox
Child process initialized in 12.29 ms
[USER@host ~]$ tree
.
..
.config
[...]
5 directories, 2 files
<!-- gh-comment-id:448577673 --> @rusty-snake commented on GitHub (Dec 19, 2018): When you see this output, you are in a shell in the sandbox, type `tree` and copy the output to here. Example: ``` Switching to pid 7144, the first child process inside the sandbox Child process initialized in 12.29 ms [USER@host ~]$ tree . .. .config [...] 5 directories, 2 files ```
Author
Owner

@qazip commented on GitHub (Dec 19, 2018):

After installing tree and doing that:

.

0 directories, 0 files
<!-- gh-comment-id:448578775 --> @qazip commented on GitHub (Dec 19, 2018): After installing tree and doing that: ``` . 0 directories, 0 files ```
Author
Owner

@rusty-snake commented on GitHub (Dec 19, 2018):

But brave was still running? With this command firejail --name=brave --private --profile=/etc/firejail/brave.profile brave.

<!-- gh-comment-id:448607093 --> @rusty-snake commented on GitHub (Dec 19, 2018): But brave was still running? With this command `firejail --name=brave --private --profile=/etc/firejail/brave.profile brave`.
Author
Owner

@qazip commented on GitHub (Dec 19, 2018):

Yes, brave was still running..

<!-- gh-comment-id:448608477 --> @qazip commented on GitHub (Dec 19, 2018): Yes, brave was still running..
Author
Owner

@SkewedZeppelin commented on GitHub (Dec 19, 2018):

@qazip apologies, can you do tree -lha to show all the dotfiles

<!-- gh-comment-id:448739822 --> @SkewedZeppelin commented on GitHub (Dec 19, 2018): @qazip apologies, can you do `tree -lha` to show all the dotfiles
Author
Owner

@rusty-snake commented on GitHub (Dec 19, 2018):

@qazip general: You can hide it with creating a plain/text-file and use the "Attach files by dragging & dropping, selecting them, or pasting from the clipboard." field.

<!-- gh-comment-id:448743613 --> @rusty-snake commented on GitHub (Dec 19, 2018): @qazip general: You can hide it with creating a plain/text-file and use the "Attach files by dragging & dropping, selecting them, or pasting from the clipboard." field.
Author
Owner

@qazip commented on GitHub (Dec 19, 2018):

Sorry about that @rusty-snake, I thought I could hide it behind a tag somehow. I've deleted the comment. Please see attachment.

brave_firejail.txt

<!-- gh-comment-id:448744498 --> @qazip commented on GitHub (Dec 19, 2018): Sorry about that @rusty-snake, I thought I could hide it behind a tag somehow. I've deleted the comment. Please see attachment. [brave_firejail.txt](https://github.com/netblue30/firejail/files/2696492/brave_firejail.txt)
Author
Owner

@SkewedZeppelin commented on GitHub (Dec 19, 2018):

Hah @Fred-Barclay already fixed this issue a month ago. It just isn't in 0.9.56. See a41b2019e9

The command above probably didn't work for you because the directory didn't exist, so it still got deleted.

And GitHub does have spoiler support, see https://github.com/dear-github/dear-github/issues/166#issuecomment-236342209

<!-- gh-comment-id:448748193 --> @SkewedZeppelin commented on GitHub (Dec 19, 2018): Hah @Fred-Barclay already fixed this issue a month ago. It just isn't in 0.9.56. See a41b2019e9fa4e86bc3083fecc50ae015235065a The command above probably didn't work for you because the directory didn't exist, so it still got deleted. And GitHub does have spoiler support, see https://github.com/dear-github/dear-github/issues/166#issuecomment-236342209
Author
Owner

@qazip commented on GitHub (Dec 20, 2018):

Ah, ya, running brave once without firejail so the folder BraveSoftware gets created and then doing:

firejail --profile=/etc/firejail/brave.profile --whitelist=${HOME}/.config/BraveSoftware brave

does fix the issue. I am sorry I didn't notice sooner that BraveSoftware was not created, my bad. Hopefully the new version gets released soon.. Thank you guys.

<!-- gh-comment-id:448930378 --> @qazip commented on GitHub (Dec 20, 2018): Ah, ya, running brave once without firejail so the folder BraveSoftware gets created and then doing: `firejail --profile=/etc/firejail/brave.profile --whitelist=${HOME}/.config/BraveSoftware brave` does fix the issue. I am sorry I didn't notice sooner that BraveSoftware was not created, my bad. Hopefully the new version gets released soon.. Thank you guys.
Author
Owner

@Fred-Barclay commented on GitHub (Dec 25, 2018):

@SkewedZeppelin I've added the changes to /etc-fixes/0.9.56. Should we also push to the LTSbase branch?

<!-- gh-comment-id:449867136 --> @Fred-Barclay commented on GitHub (Dec 25, 2018): @SkewedZeppelin I've added the changes to /etc-fixes/0.9.56. Should we also push to the LTSbase branch?
Author
Owner

@SkewedZeppelin commented on GitHub (Dec 25, 2018):

@startx2017 do you have any guidelines for when we should push to LTSbase?

<!-- gh-comment-id:449867226 --> @SkewedZeppelin commented on GitHub (Dec 25, 2018): @startx2017 do you have any guidelines for when we should push to LTSbase?
Author
Owner

@Vincent43 commented on GitHub (Dec 26, 2018):

Is there a distro/project which uses our LTS?

<!-- gh-comment-id:449957906 --> @Vincent43 commented on GitHub (Dec 26, 2018): Is there a distro/project which uses our LTS?
Author
Owner

@Fred-Barclay commented on GitHub (Dec 27, 2018):

@Vincent43 I keep seeing people on Mint running 0.9.56LTS.

Not entirely sure where it's coming from (the version in the repos is 0.9.38 for Mint 18.x and 0.9.52 for Mint 19.x).

<!-- gh-comment-id:450062197 --> @Fred-Barclay commented on GitHub (Dec 27, 2018): @Vincent43 I keep seeing people on Mint running 0.9.56LTS. Not entirely sure where it's coming from (the version in the repos is 0.9.38 for Mint 18.x and 0.9.52 for Mint 19.x).
Author
Owner

@Vincent43 commented on GitHub (Dec 29, 2018):

It seems that users are getting it on their own from https://sourceforge.net/projects/firejail/files/LTS/

<!-- gh-comment-id:450446364 --> @Vincent43 commented on GitHub (Dec 29, 2018): It seems that users are getting it on their own from https://sourceforge.net/projects/firejail/files/LTS/
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1533
No description provided.