Use a separate network namespace
This commit is contained in:
parent
ae429be907
commit
0e04e6eda5
1 changed files with 4 additions and 0 deletions
|
@ -36,10 +36,13 @@ if [ ! -d "$HOME/.bubblewine" ]; then
|
|||
WINEPREFIX="$HOME/.bubblewine" wineserver -k
|
||||
fi
|
||||
|
||||
xsocket="/tmp/.X11-unix/X${DISPLAY#:}"
|
||||
|
||||
bwrap \
|
||||
--unshare-user \
|
||||
--unshare-ipc \
|
||||
--unshare-pid \
|
||||
--unshare-net \
|
||||
--unshare-uts \
|
||||
--unshare-cgroup \
|
||||
--new-session \
|
||||
|
@ -61,5 +64,6 @@ bwrap \
|
|||
--proc /proc \
|
||||
--tmpfs /tmp \
|
||||
--bind "$HOME/.bubblewine" /wineprefix \
|
||||
--bind "$xsocket" "$xsocket" \
|
||||
--setenv WINEPREFIX /wineprefix \
|
||||
wine "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue