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

firefox: permissive access to /etc #5518

Closed
Boruch-Baum opened this issue Dec 9, 2022 · 8 comments
Closed

firefox: permissive access to /etc #5518

Boruch-Baum opened this issue Dec 9, 2022 · 8 comments

Comments

@Boruch-Baum
Copy link

Running firejail for firefox-esr in debian allows me to read any file under /etc using keybinding C-o. That seems needlessly permissive to me. I created a firefox-esr.local file with the following contents that seem to fix the issue for me personally without any noticeable undesirable side-effects so far, but you may want to consider it for universal use

whitelist /etc/firefox-esr
whitelist /etc/mailcap*
blacklist /etc

@rusty-snake
Copy link
Collaborator

  1. Why do you whitelist stuff in /etc if you blacklist entire /etc?
  2. What about resolv.conf
  3. There's a comment in firefox.profile about private-etc, if you test on all distros with all possible configurations, we can enabled it.

@Boruch-Baum
Copy link
Author

Boruch-Baum commented Dec 9, 2022 via email

@rusty-snake
Copy link
Collaborator

Because those two sub-folders are used by firefox

But how can firejail use them if it can not access them?

@Boruch-Baum
Copy link
Author

Boruch-Baum commented Dec 9, 2022 via email

@Boruch-Baum
Copy link
Author

I've been using a custom firefox-esr.local file for about a week now, and I can report that the following works fine for me:

private-etc firefox-esr,fonts,mailcap,mime.types

Note that I needed to add 'fonts' to my original proposal, and also that I did not test using firefox without mailcap or mime.types

@layderv
Copy link
Contributor

layderv commented Jan 11, 2023

I've been using a custom firefox-esr.local file for about a week now, and I can report that the following works fine for me:

private-etc firefox-esr,fonts,mailcap,mime.types

Note that I needed to add 'fonts' to my original proposal, and also that I did not test using firefox without mailcap or mime.types

Did you have to edit settings in Firefox? With a default profile, I need to allow resolv.conf too

@Boruch-Baum
Copy link
Author

Boruch-Baum commented Jan 12, 2023 via email

@kmk3 kmk3 changed the title firefox permissive access to /etc firefox: permissive access to /etc Aug 23, 2024
@kmk3
Copy link
Collaborator

kmk3 commented Aug 23, 2024

private-etc is now enabled in firefox-common:

Closing as resolved.

Feel free to open a new issue for bugs or improvements.

@kmk3 kmk3 closed this as completed Aug 23, 2024
@github-project-automation github-project-automation bot moved this to In progress in Release 0.9.74 Aug 28, 2024
kmk3 added a commit that referenced this issue Oct 5, 2024
kmk3 added a commit to kmk3/firejail that referenced this issue Oct 24, 2024
This path is apparently used on Debian.

Relates to netblue30#5518 netblue30#6400 netblue30#6435.

Reported-by: @Boruch-Baum
kmk3 added a commit that referenced this issue Oct 25, 2024
This path is apparently used on Debian.

Relates to #5518 #6400 #6435.

Reported-by: @Boruch-Baum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (on RELNOTES)
Development

No branches or pull requests

4 participants