mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #183] Pentadactylrc file is emptied #128
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#128
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 @timokau on GitHub (Dec 4, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/183
Whenever I launch firejail with the firefox profile, my ~/.pentadacylrc file gets emptied (even if I just launch a shell instead of firefox). So for example:
As far as I can tell this happens only with the pentadactylrc file. If I create a file called ~/testfile with some text in it and include it in the whitelist of the profile, that file doesn't get emptied.
I know this probably isn't enough info to tell what's causing this, but this is such a weired behaviour and I don't know what else might be helpful.
@netblue30 commented on GitHub (Dec 4, 2015):
I think I have it fixed on the master branch. You need to add the following two lines to your firefox.profile file:
@timokau commented on GitHub (Dec 4, 2015):
Those lines are already there. Here's the complete profile (it should be pretty much identical with the default one):
I haven't testet it withe the version from the master branch yet though (I'm running version 0.9.34). I'll do that tomorrow.
@timokau commented on GitHub (Dec 5, 2015):
It still happens on the latest git version. The same profile, the same pentadactylrc, still empty.
@netblue30 commented on GitHub (Dec 6, 2015):
I am not able to reproduce it:
@timokau commented on GitHub (Dec 8, 2015):
For me, nothing has changed. I tried using the default firefox profile (the only thing I had changed was commenting out the Downloads directory, because it is symlinked to another hdd and firejail complains), but that gives the same results. Executing the exact same commands as you do after a fresh git build (firejail-git from the AUR):
Interestingly, even if I write something in the pentadactylrc file when in the firejail, it stays empty:(See the edit below)EDIT: Forget that, I must've made a typo. When trying to reproduce, changes made inside the firejail DO persists:
Is there anything else I can do to clarify the problem?
@netblue30 commented on GitHub (Dec 8, 2015):
If ~/.pentadactylrc does not exist before you start the sandbox, the file will not get whitelisted. Files not whitelisted, or files in directories not whitelisted will be discarded when you exit the sandbox. I would say run firefox without the sandbox, so it will create ~/.pentadactylrc, and next time when you start the sandbox the file will be preserved.
@timokau commented on GitHub (Dec 9, 2015):
But the file does exists. I'm typing this in firefox with pentadactyl. And as I wrote in my previous posts, I even tried creating a dummy pentadactylrc (
echo test > ~/.pentdadactylrc) before starting the sandbox (because I thought my pentadactylrc being symlinked might be the problem, which it apparently is not).@netblue30 commented on GitHub (Dec 10, 2015):
I'll have to look into it, so far I couldn't reproduce it. Thanks.
@netblue30 commented on GitHub (Dec 29, 2015):
Can you please retest it on version 0.9.36. Thanks!
@netblue30 commented on GitHub (Dec 29, 2015):
I'll reopen the bug if necessary.
@timokau commented on GitHub (Dec 30, 2015):
The first frew tries didn't work. But I can't reproduce that so I guess I must have made a mistake.
But now it works fine, thank you :)
The remaining problem (its not really a problem for me, but I guess it isn't intentional) is:
When I symlink my
.pentadactylrcto another filesymlinkand whitelist both files, the pentadactylrc still gets emptied. However when I just whitelist one of the files it works.Thats not the same problem as before, because before it didn't work at all (even without symlinks).
Also not sure if it is intended but I think its a bit odd that symlinks inside whitelisted directories have to be whitelisted sperately in order to work. But that could as well be intended, I just wanted to point that out in case it isn't.
Thanks for your work!