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

Host file managers cannot find files in sandbox /proc with --private #6487

Open
bingmatv opened this issue Sep 26, 2024 · 3 comments
Open

Host file managers cannot find files in sandbox /proc with --private #6487

bingmatv opened this issue Sep 26, 2024 · 3 comments
Labels
file-transfer Transfering, sharing and mounting files and directories from outside of the sandbox needinfo More information is needed from the issue author

Comments

@bingmatv
Copy link

While using --private --noprofile parameters, any downloaded files in sandbox are invisible for Host file managers

find /proc|grep filename

can't find the file.

@rusty-snake
Copy link
Collaborator

rusty-snake commented Sep 26, 2024

Your post lists a few facts, but no question or request. So what do you want?

While using --private --noprofile parameters, any downloaded files in sandbox are invisible for Host file managers

Expected.

can't find the file.

procfs and magic symlinks are a crazy, confusing thing. If you think find / grep has a bug, report it to them.

Also where do you expect the file to be found in proc? In /proc/<pid>/fd? In /proc/<pid>/fdinfo?

@rusty-snake rusty-snake added the needinfo More information is needed from the issue author label Sep 26, 2024
@kmk3 kmk3 changed the title Grep /proc by filename can't find downloaded file Host file managers cannot find files in sandbox /proc with --private Sep 26, 2024
@kmk3
Copy link
Collaborator

kmk3 commented Sep 26, 2024

Basic debugging information is missing; please follow the bug report template:

@kmk3 kmk3 added the file-transfer Transfering, sharing and mounting files and directories from outside of the sandbox label Sep 26, 2024
@kmk3
Copy link
Collaborator

kmk3 commented Sep 26, 2024

While using --private --noprofile parameters, any downloaded files in sandbox
are invisible for Host file managers

This is the expected behavior of --private.

To transfer files from the sandbox, see --get= and FILE TRANSFER in man firejail.

Alternatively, use --private=foo or whitelist the paths that you need instead
of using --private.

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
file-transfer Transfering, sharing and mounting files and directories from outside of the sandbox needinfo More information is needed from the issue author
Projects
None yet
Development

No branches or pull requests

3 participants