-
Notifications
You must be signed in to change notification settings - Fork 570
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
mkdir in profile does not respect --private=<directory> #903
Comments
I can confirm the behaviour. Seems like a bug to me. |
Fixed, thanks for the bug. |
Although marked as fixed, I see the same behavior running firejail 0.9.44.8 with the dropbox profile. Am I missing something here? Thanks! |
I'll look into it, thanks. |
Are there any updates on this issue?? I'm having the same problem. |
Is this still an issue? If so, let's figure out what's going on :) |
Yes, this is still an issue. The question becomes the following: |
@netblue30 Is this intended behavior? If we use |
Sorry to dredge up so many old issues, but @netblue30, is this intended behavior? If so, we can close. Otherwise, we should fix this. |
@rusty-snake @chiraag-nataraj |
@matu3ba it's not about the private directory does not work. The mkdir does not respect it. Like this:
|
In fact,
|
To illustrate what probably was the reasoning behind this design, let's take Firefox. The profile uses One possible solution is to create needed files and directories beforehand as the user in the real file system, so that The downside is that some profiles create quite a clutter in the file system, which is also not so nice. As a workaround you can add
to |
FTR: #4285 |
Maybe we could postpone |
And the workaround suggested by @smitsohu[1] and @rusty-snake[2]. Relates to netblue30#903 netblue30#5048. [1] netblue30#903 (comment) [2] netblue30#5048 (comment)
Changes: * comment `include whitelist-common.inc` when using `private` * drop `private` on profiles that access files in `${HOME}` * use `#` in comments Relates to netblue30#903.
Changes: * comment `include whitelist-common.inc` when using `private` * drop `private` on profiles that access files in `${HOME}` * use `#` in comments Relates to #903.
hi. i don't know that this issue has any actual security consequences, but it is extremely disconcerting to see your home directory littered with directories related to something you launched with the promise that it'd be contained to a directory you specified. if nothing else, it's a violation of what |
Latest stable firejail: 0.9.44
The command line option
--private=<directory>
states that firejail uses the given directory as a new home.This works fine, and all whitelist and blacklist commands work as expected with respect to the private directory. However, using mkdir in a profile incorrectly creates the directory in the real home.
You can observe this in the shipped Dropbox profile for example, which makes calls to mkdir in its profile:
You can observe similar errors in the shipped firefox profile.
You will see that a Dropbox folder will be created in the actual home directory, instead of the private home at ~/dropboxtesting. You will also see the firefox directories like ~/.mozilla being created in the real home. I would expect that mkdir will respect the private home directory just as whitelist and blacklist do, so I believe this behavior to be a bug.
The text was updated successfully, but these errors were encountered: