mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5620] How to use /media in --chroot? #3046
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3046
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @azurvii on GitHub (Jan 26, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5620
Or how to use portable hard disks in chroots? I'm on Debian bullseye,
firejail version 0.9.64.4.I tried
whitelist /mediaandwhitelist /media/*in the chroot profile, but it did not seem to have the expected effect in the chroot. In chroot it's empty while in host it contains the mounted portable disk partitions.In a different try, I was able to find the device in the chroot's
/dev/sdbtogether with its partitions, so it seems it could see the hard disk. I triedmount -o ro -t ntfs /dev/sdb1 /home/me/mnt/as root, and it did get mounted. However, this path/home/me/mnt/is only mounted for the user root. If I use the regular usermein chroot, the exact same path/home/me/mnt/is not mounted (no content, with the folder's user and group as me:me, as it was created). I cannot invokemountas a regular user due to permission. I guess this might be chroot in play, but I don't quite understand this behavior.