mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6018] firejail hangs trying to mount nfs-shares when offline #3158
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#3158
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 @kettenbruch on GitHub (Sep 23, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6018
Description
firejail tries to mount nfs directories, even when
--net=noneis supplied, causing it to hang on startup when the system is offline.In my case, my system always has a nfs-shared pacman cache mounted at /var/cache/pacman/pkg,
on every invocation, firejail tries to mount that share for the sandbox as well, when the system is offline, firejail will hang until the system reconnects to the network.
Steps to Reproduce
mount -t nfs servername:/... /var/cache/pacman/pkgnmcli con down wlan0LC_ALL=C firejail --debug --net=none --noprofile /bin/bashExpected behavior
let the mount fail, or provide an option to prevent firejail from mounting nfs shares / netdevs in general.
Actual behavior
firejail hangs without ever starting the executable, produces no output without supplying
--debug(except for parent and child pids).Behavior without a profile
Same behavior with and without profile (tested for bash).
Additional context
--blacklisting /var/cache/pacman/pkg has no effect on the mount at the filesystem level.--private-xxxoptions don't exist forvar,Is there a way to customize the mount procedure at startup that I have overlooked ?
Environment
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail --debug /path/to/program