mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3793] running wine in firejail (--private option) #2393
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#2393
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 @Rosika2 on GitHub (Dec 7, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3793
Environment
Linux distribution and version: Lubuntu 18.04.5 LTS, 64 bit
Firejail version 0.9.64
not a bug, rather a question -
Hello altogether,
I´ve got a question concerning running wine in firejail:
As I sandbox almost everything I´d like to run WIN-programmes using wine within firejail as well.
On https://firejail.wordpress.com/documentation-2/basic-usage/ I found the following information:
For running e.g. notepad++ I run
firejail wine "C:\Program Files\Notepad++\notepad++.exe", which works fine.
Yet what I´d like to achieve is running wine in firejail with the private-option in a dedicated work-directory (for enhanced security).
Pretty much the same way I run my browser:
firejail --private=/home/rosika/Dokumente/work firefoxIs this possible with wine as well? And if so, how would I go about it?
My path for notepad++ is:
/home/rosika/.wine/drive_c/Program Files/Notepad++/notepad++.exeThanks a lot for your help in advance.
Many greetings.
Rosika
@rusty-snake commented on GitHub (Dec 7, 2020):
I don't use wine, but you can use
--privateas everywhere, you can't?@Rosika2 commented on GitHub (Dec 7, 2020):
@rusty-snake:
Hi and thanks a lot for your answer.
I did the following:
It worked fine. That´s really great.
One thing though I don´t quite understand. So just to learn something new:
Why were steps 1 and 2 necessary? (
mkdir WINE andmv .wine WINE)Many greetings.
Rosika
@rusty-snake commented on GitHub (Dec 7, 2020):
The first (
mkdir WINE) create the new dir which now acts as your private $HOME. You can use any path you want as long as you use the same in all the commands below.The second step moves your current wine configuration (which is
~/.wineby default, but can be customized by settingWINE_PREFIXIIRC) into the new private-$HOME.~/WINE/.winewill the show up as~/.wineinside the sandbox when started with--private=~/WINE.@Rosika2 commented on GitHub (Dec 7, 2020):
@rusty-snake:
Hi and thanks a lot for the explanation.
I think I understand now.
Without the first two steps a command like
$ firejail --private=/home/rosika wine "C:\Program Files\Notepad++\notepad++.exe"would have treated my whole home-directory as the private one instead of using a dedicated private directory for wine only.
Thanks a lot again for your help.
Many greetings.
Rosika