mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6703] Missing files when whitelisting /var/log (--writable-var-log) #3344
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#3344
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 @alopatindev on GitHub (Apr 7, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6703
Looks like #698 is still there: I can't seem to open
/var/log/*using any program:Output of
sudo LC_ALL=C firejail --debug --noprofile --noblacklist=/var/log --whitelist=/var/log --read-write=/var/log/messages /bin/tail /var/log/messages | grep -vE '(nvidia|docker|clang|llvm|gcc)'Same with any profile:
Output of
sudo LC_ALL=C firejail --debug --noblacklist=/var/log --whitelist=/var/log --read-write=/var/log/messages xxd /var/log/messages | grep -vE '(nvidia|docker|clang|llvm|gcc)'@netblue30 commented on GitHub (Apr 8, 2025):
/var/log gets some special treatment. By default it is a brand-new temporary (tmpfs) directory. You can read or write to it if you have enough permissions.
To keep the original /var/log in place use --writable-var-log:
@alopatindev commented on GitHub (Apr 9, 2025):
It works, thanks!