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
|
WINEPREFIX="$HOME/.bubblewine" wineserver -k
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
xsocket="/tmp/.X11-unix/X${DISPLAY#:}"
|
||||||
|
|
||||||
bwrap \
|
bwrap \
|
||||||
--unshare-user \
|
--unshare-user \
|
||||||
--unshare-ipc \
|
--unshare-ipc \
|
||||||
--unshare-pid \
|
--unshare-pid \
|
||||||
|
--unshare-net \
|
||||||
--unshare-uts \
|
--unshare-uts \
|
||||||
--unshare-cgroup \
|
--unshare-cgroup \
|
||||||
--new-session \
|
--new-session \
|
||||||
|
@ -61,5 +64,6 @@ bwrap \
|
||||||
--proc /proc \
|
--proc /proc \
|
||||||
--tmpfs /tmp \
|
--tmpfs /tmp \
|
||||||
--bind "$HOME/.bubblewine" /wineprefix \
|
--bind "$HOME/.bubblewine" /wineprefix \
|
||||||
|
--bind "$xsocket" "$xsocket" \
|
||||||
--setenv WINEPREFIX /wineprefix \
|
--setenv WINEPREFIX /wineprefix \
|
||||||
wine "$@"
|
wine "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue