mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3198] nano [ magic_load() failed: No such file or directory ] #2001
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#2001
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 @ghost on GitHub (Jan 30, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3198
When using the nano profile I noticed that the application shows the below error message on each start:
[ magic_load() failed: No such file or directory ]Not sure if this negatively affects usage, but it can be confusing. Looks like this is caused by wusc, more specifically by not whitelisting /usr/share/file. That directory - on Arch at least - has /usr/share/file/misc/magic.mgc, which nano tries to get at.
@rusty-snake commented on GitHub (Jan 30, 2020):
We have
/usr/share/misc(Fedora has/usr/share/misc/magic.mgcand/usr/share/misc/magicthere. If/usr/share/fileis just the Arch path for this, we should consider to add it into wusc.@ghost commented on GitHub (Jan 30, 2020):
@rusty-snake Just checked 2 Arch machines. On both /usr/share/misc is an empty dir and stat shows birth dating back to 2015 and 2017. To me that looks like somewhere along the way packages used to put files there, stopped doing so and maintainers forgot to use !emptydirs (which is a makepkg configuration option to remove empty directories from a package). I agree we better add /usr/share/file to wusc as you suggest. Will take care of it shortly.