You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or how to use portable hard disks in chroots? I'm on Debian bullseye, firejail version 0.9.64.4.
I tried whitelist /media and whitelist /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/sdb together with its partitions, so it seems it could see the hard disk. I tried mount -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 user me in 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 invoke mount as a regular user due to permission. I guess this might be chroot in play, but I don't quite understand this behavior.
This discussion was converted from issue #5620 on January 26, 2023 18:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Or how to use portable hard disks in chroots? I'm on Debian bullseye,
firejail version 0.9.64.4
.I tried
whitelist /media
andwhitelist /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/sdb
together 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 userme
in 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 invokemount
as a regular user due to permission. I guess this might be chroot in play, but I don't quite understand this behavior.Beta Was this translation helpful? Give feedback.
All reactions