[GH-ISSUE #619] single files binding #432

Closed
opened 2026-05-05 05:50:49 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @eadmaster on GitHub (Jul 6, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/619

is it possible to setup single files binding like i used to do with proot?

For instance

proot -b $APPBASEDIR/App/usr/share/pixmaps/app.png:/usr/share/pixmaps/app.png $CMDLINE
Originally created by @eadmaster on GitHub (Jul 6, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/619 is it possible to setup single files binding like i used to do with [proot](https://github.com/proot-me/PRoot/)? For instance ``` proot -b $APPBASEDIR/App/usr/share/pixmaps/app.png:/usr/share/pixmaps/app.png $CMDLINE ```
gitea-mirror 2026-05-05 05:50:49 -06:00
Author
Owner

@netblue30 commented on GitHub (Jul 6, 2016):

It is supported, but you need to be root to do it:

      --bind=filename1,filename2
              Mount-bind  filename1  on  top of filename2. This option is only
              available when running as root.

              Example:
              # firejail --bind=/config/etc/passwd,/etc/passwd
<!-- gh-comment-id:230915990 --> @netblue30 commented on GitHub (Jul 6, 2016): It is supported, but you need to be root to do it: ``` --bind=filename1,filename2 Mount-bind filename1 on top of filename2. This option is only available when running as root. Example: # firejail --bind=/config/etc/passwd,/etc/passwd ```
Author
Owner

@eadmaster commented on GitHub (Jul 7, 2016):

Alternatively, if i have to bind a lot of files, can i have an unionfs-like behavior? (merge the contents of 2 dirs instead of mounting one over another).
example:
firejail --???=App/usr/share/pixmaps,/usr/share/pixmaps

<!-- gh-comment-id:231175361 --> @eadmaster commented on GitHub (Jul 7, 2016): Alternatively, if i have to bind a lot of files, can i have an unionfs-like behavior? (merge the contents of 2 dirs instead of mounting one over another). example: `firejail --???=App/usr/share/pixmaps,/usr/share/pixmaps`
Author
Owner

@netblue30 commented on GitHub (Jul 8, 2016):

I'll keep it in mind, however, you will still need to be root to do it.

<!-- gh-comment-id:231341767 --> @netblue30 commented on GitHub (Jul 8, 2016): I'll keep it in mind, however, you will still need to be root to do it.
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#432
No description provided.