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

allowing fscrypt files #3185

Closed
reinerh opened this issue Jan 25, 2020 · 5 comments
Closed

allowing fscrypt files #3185

reinerh opened this issue Jan 25, 2020 · 5 comments
Labels
enhancement New feature request

Comments

@reinerh
Copy link
Collaborator

reinerh commented Jan 25, 2020

A Debian user reported probems with whitelisting and accessing fscrypt-related files from within firejail.
Especially /home/.fscrypt seems to be a problem, because only the user's home directory is available in /home, not any other directories/files.

Does anyone have an idea how this could be fixed?

@rusty-snake
Copy link
Collaborator

unsure whether helpful

--allusers
All directories under /home are visible inside the sandbox. By default, only current user home directory is visible.

@reinerh
Copy link
Collaborator Author

reinerh commented Jan 25, 2020

Thanks, that works for me. I'll forward your suggestion and ask if that solves their problem.

@reinerh
Copy link
Collaborator Author

reinerh commented Jan 25, 2020

It looks like they are also using --private, and it's currently not possible to combine this with --allusers (Warning: allusers option disabled by private or whitelist option).
Do you know of any workaround for that?

@rusty-snake
Copy link
Collaborator

  • firejail --allusers --private -> Warning: allusers option disabled by private or whitelist option
  • firejail --allusers --private=/some/where -> works
#!/bin/bash
private_home="$(mktemp -dt private-firejail-home.XXXXXX)"
firejail --allusers --private="$private_home" <program>
rm -rf "$private_home"

NOTE: $private_home is visible for other programs (except firejail --private-tmp).

@reinerh
Copy link
Collaborator Author

reinerh commented Jan 31, 2020

Looks like the problem is actually with --whitelist, not with --private:

$ firejail --profile=/etc/firejail/firefox.profile /bin/bash

With --allusers its not possible to see the hidden files in /home.
Do you have another idea how to get access there with e.g. the firefox profile?

@smitsohu smitsohu added in testing A bugfix that is being tested enhancement New feature request labels Apr 20, 2020
@smitsohu smitsohu closed this as completed Sep 2, 2020
@rusty-snake rusty-snake removed the in testing A bugfix that is being tested label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request
Projects
None yet
Development

No branches or pull requests

3 participants