mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2282] Can't access /mnt despite ignore disable-mnt and whitelists #1521
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#1521
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 @seonwoolee on GitHub (Nov 29, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2282
I'm trying to set up Firejail for VLC. I have media files under /mnt/NAS that I want it to access.
Here's the profile I created:
I get the following output when I use
--debug-whitelistsI don't know why VLC still can't access /mnt/NAS (it can access /mnt, shown as an empty directory).
If it matters, /mnt/NAS is shared over NFS
@SkewedZeppelin commented on GitHub (Nov 29, 2018):
Version? Distro? Full command? Full profile?
also you do not need these
@seonwoolee commented on GitHub (Nov 29, 2018):
Firejail version 0.9.56
Arch Linux
Full command is
firejail vlc --debug-whitelistsIf I don't include
then I can't even access /mnt
@smitsohu commented on GitHub (Dec 2, 2018):
Is /mnt a mountpoint (what does
mountpoint /mntsay?)If it is, could you share some more information about it? For example something like
findmnt | grep /mnt | grep -v /mnt/@seonwoolee commented on GitHub (Dec 2, 2018):
No it is not.
/mnt/NASis though.Output of
findmnt | grep /mnt/NAS | grep -v /mnt/NAS/@smitsohu commented on GitHub (Dec 2, 2018):
Maybe related to #2114.Scratch that.
@smitsohu commented on GitHub (Dec 2, 2018):
I don't know much about NFS, so this is kind of speculative, but if you mount the NFS with
no_root_squashoption, would it fix the issue?Note however that this option has own security implications.
@seonwoolee commented on GitHub (Dec 2, 2018):
Trying
sudo mount 192.168.1.2:/mnt/master /mnt/NAS -t nfs4 -o no_root_squashresults inmount.nfs4: an incorrect mount option was specified@smitsohu commented on GitHub (Dec 2, 2018):
It seems it has to go into /etc/exports
@seonwoolee commented on GitHub (Dec 2, 2018):
Ahhh gotcha.
Nope, that didn't change anything.
@chiraag-nataraj commented on GitHub (May 19, 2019):
Is this still an issue? If so, can you check if you have
disable-mntenabled in/etc/firejail/firejail.config?@seonwoolee commented on GitHub (May 21, 2019):
Yes,
disable-mntis enabled in/etc/firejail/firejail.config. But despite havingignore disable-mntinvlc.profile, I still can't access/mnt/NASwhen I open VLC with firejail.If I disable
disable-mntin/etc/firejail/firejail.configthen it works, but as I understand itignore disable-mntinvlc.profileshould be taking care of that.@rusty-snake commented on GitHub (May 21, 2019):
@seonwoolee nope, if you set this in firejail.config you can not ignore it by
ignore, you need to revert this infirejail.configand adddisable-mntto yourglobals.local, because then you can doignore disable-mntin yourvlc.local.I think we should add that
--ignorealso didn't work.@seonwoolee commented on GitHub (May 21, 2019):
Gotcha. Thanks.
@rusty-snake commented on GitHub (May 21, 2019):
done via
903adee.