mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #783] Add copy command to Filesystem category in profile #530
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#530
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 @graywolf on GitHub (Sep 15, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/783
I'm using browser with
private ~/.firejails/palemoon. It would be nice to have ability to copy config files into that home automatically.@manevich commented on GitHub (Sep 15, 2016):
Maybe
--private-homethat brought back in 0.9.42 is what you need?@chiraag-nataraj commented on GitHub (Sep 15, 2016):
Yup, that's exactly what
--private-homeis for. Also, though, you can use--whitelistto only keep certain files and directories,--blacklistto hide certain files and directories, or, if the config files are unique to that application, you can give that application its own home directory and use--private=/path/to/dir. I used to use--private=, but realized--whitelistworked better for my purposes.@graywolf commented on GitHub (Sep 15, 2016):
That means that all changes are thrown away right? Than it's not what I need.. or can I combine it like this?
@chiraag-nataraj I tried to use
whitelistbut it doesn't seem to propage the whitelisted files insideprivate:/@manevich commented on GitHub (Sep 15, 2016):
Why no to copy all vim configs into
~/.firejails/palemoonthen?@chiraag-nataraj commented on GitHub (Sep 16, 2016):
@graywolf I think you can only use one or the other between
whitelistandprivate, sincewhitelistmounts atmpfson top of your home andprivatemounts the specified directory on top of home. You can't use them both!What exactly is in
~/.firejails/palemoon? Why not just move palemoon's config files back to your main home directory, whitelist whatever configs you need, and whitelist a directory for file transfer (~/Downloadsis a useful one)?@graywolf commented on GitHub (Sep 16, 2016):
~/.firejails/palemoonis just home directory with palemoon user profile in it. I'm using three different profiles (home/work/etc..) so it seemed easiest to just have separate virtual homes for each one.Hm I guess, I've kinda just migrated my setup from docker to firejail, so like this it was easiest, but that should probably work. Will try it.
@graywolf commented on GitHub (Sep 16, 2016):
Seems to work fine :) but still, copy command would be nice.
@graywolf commented on GitHub (Sep 16, 2016):
@manevich mainly to prevent maintance overhead. if I copied it manually, I would have original and 3 copies. and I woudl have to remember to update them all :/
@chiraag-nataraj commented on GitHub (Sep 16, 2016):
@graywolf @manevich Instead of copying, you can do hardlinks (which work well with individual files) or bind-mounts (which work well with directories). I used to do this before switching to whitelisting - I had a setup script that ran at login that bind-mounted a couple of directories (had to provide password of course).
@netblue30 commented on GitHub (Sep 16, 2016):
The easiest way is to build a small script to start your program:
@graywolf commented on GitHub (Sep 19, 2016):
I guess :) still, would be nice to be able to keep just the symlink
ln -s /usr/bin/firejail /usr/local/bin/palemoonwithout a need to make a script there. But if you think this doesn't belong into firejail just close it.